Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sub_103475F0    proc near               ; DATA XREF: sub_100351F0↑o
  2. .text:103475F0
  3. .text:103475F0 var_14          = dword ptr -14h
  4. .text:103475F0 var_8           = dword ptr -8
  5. .text:103475F0 arg_0           = dword ptr  8
  6. .text:103475F0
  7. .text:103475F0                 push    ebp
  8. .text:103475F1                 mov     ebp, esp
  9. .text:103475F3                 and     esp, 0FFFFFFF8h
  10. .text:103475F6                 sub     esp, 0Ch
  11. .text:103475F9                 mov     eax, [ebp+arg_0]
  12. .text:103475FC                 test    eax, eax
  13. .text:103475FE                 push    esi
  14. .text:103475FF                 mov     esi, offset dword_1517D7F0
  15. .text:10347604                 cmovnz  esi, eax
  16. .text:10347607                 mov     eax, [esi-18h]
  17. .text:1034760A                 add     esi, 0FFFFFFE8h
  18. .text:1034760D                 mov     ecx, esi
  19. .text:1034760F                 mov     eax, [eax+30h]
  20. .text:10347612                 call    eax
  21. .text:10347614                 fstp    [esp+10h+var_8]
  22. .text:10347618                 movss   xmm0, [esp+10h+var_8]
  23. .text:1034761E                 ucomiss xmm0, ds:flt_10C0E648
  24. .text:10347625                 lahf
  25. .text:10347626                 test    ah, 44h
  26. .text:10347629                 jp      short loc_1034769C
  27. .text:1034762B                 push    0
  28. .text:1034762D                 push    offset aViewmodelFov ; "viewmodel_fov"
  29. .text:10347632                 lea     ecx, [esp+18h+var_8]
  30. .text:10347636                 call    sub_108A6970
  31. .text:1034763B                 mov     ecx, [esp+10h+var_8]
  32. .text:1034763F                 push    3Ch
  33. .text:10347641                 mov     eax, [ecx]
  34. .text:10347643                 call    dword ptr [eax+4]
  35. .text:10347646                 push    0
  36. .text:10347648                 push    offset aViewmodelOffse ; "viewmodel_offset_x"
  37. .text:1034764D                 lea     ecx, [esp+18h+var_8]
  38. .text:10347651                 call    sub_108A6970
  39. .text:10347656                 mov     ecx, [esp+10h+var_8]
  40. .text:1034765A                 push    1
  41. .text:1034765C                 mov     eax, [ecx]
  42. .text:1034765E                 call    dword ptr [eax+4]
  43. .text:10347661                 push    0
  44. .text:10347663                 push    offset aViewmodelOffse_0 ; "viewmodel_offset_y"
  45. .text:10347668                 lea     ecx, [esp+18h+var_8]
  46. .text:1034766C                 call    sub_108A6970
  47. .text:10347671                 mov     ecx, [esp+10h+var_8]
  48. .text:10347675                 push    1
  49. .text:10347677                 mov     eax, [ecx]
  50. .text:10347679                 call    dword ptr [eax+4]
  51. .text:1034767C                 push    0
  52. .text:1034767E                 push    offset aViewmodelOffse_1 ; "viewmodel_offset_z"
  53. .text:10347683                 lea     ecx, [esp+18h+var_8]
  54. .text:10347687                 call    sub_108A6970
  55. .text:1034768C                 mov     ecx, [esp+10h+var_8]
  56. .text:10347690                 push    0FFFFFFFFh
  57. .text:10347692                 mov     eax, [ecx]
  58. .text:10347694                 call    dword ptr [eax+4]
  59. .text:10347697                 pop     esi
  60. .text:10347698                 mov     esp, ebp
  61. .text:1034769A                 pop     ebp
  62. .text:1034769B                 retn
  63. .text:1034769C ; ---------------------------------------------------------------------------
  64. .text:1034769C
  65. .text:1034769C loc_1034769C:                           ; CODE XREF: sub_103475F0+39↑j
  66. .text:1034769C                 mov     eax, [esi]
  67. .text:1034769E                 mov     ecx, esi
  68. .text:103476A0                 mov     eax, [eax+30h]
  69. .text:103476A3                 call    eax
  70. .text:103476A5                 fstp    [esp+10h+var_8]
  71. .text:103476A9                 movss   xmm0, [esp+10h+var_8]
  72. .text:103476AF                 ucomiss xmm0, ds:dword_10C0EA78
  73. .text:103476B6                 lahf
  74. .text:103476B7                 test    ah, 44h
  75. .text:103476BA                 jp      short loc_1034772D
  76. .text:103476BC                 push    0
  77. .text:103476BE                 push    offset aViewmodelFov ; "viewmodel_fov"
  78. .text:103476C3                 lea     ecx, [esp+18h+var_8]
  79. .text:103476C7                 call    sub_108A6970
  80. .text:103476CC                 mov     ecx, [esp+10h+var_8]
  81. .text:103476D0                 push    36h
  82. .text:103476D2                 mov     eax, [ecx]
  83. .text:103476D4                 call    dword ptr [eax+4]
  84. .text:103476D7                 push    0
  85. .text:103476D9                 push    offset aViewmodelOffse ; "viewmodel_offset_x"
  86. .text:103476DE                 lea     ecx, [esp+18h+var_8]
  87. .text:103476E2                 call    sub_108A6970
  88. .text:103476E7                 mov     ecx, [esp+10h+var_8]
  89. .text:103476EB                 push    0
  90. .text:103476ED                 mov     eax, [ecx]
  91. .text:103476EF                 call    dword ptr [eax+4]
  92. .text:103476F2                 push    0
  93. .text:103476F4                 push    offset aViewmodelOffse_0 ; "viewmodel_offset_y"
  94. .text:103476F9                 lea     ecx, [esp+18h+var_8]
  95. .text:103476FD                 call    sub_108A6970
  96. .text:10347702                 mov     ecx, [esp+10h+var_8]
  97. .text:10347706                 push    0
  98. .text:10347708                 mov     eax, [ecx]
  99. .text:1034770A                 call    dword ptr [eax+4]
  100. .text:1034770D                 push    0
  101. .text:1034770F                 push    offset aViewmodelOffse_1 ; "viewmodel_offset_z"
  102. .text:10347714                 lea     ecx, [esp+18h+var_8]
  103. .text:10347718                 call    sub_108A6970
  104. .text:1034771D                 mov     ecx, [esp+10h+var_8]
  105. .text:10347721                 push    0
  106. .text:10347723                 mov     eax, [ecx]
  107. .text:10347725                 call    dword ptr [eax+4]
  108. .text:10347728                 pop     esi
  109. .text:10347729                 mov     esp, ebp
  110. .text:1034772B                 pop     ebp
  111. .text:1034772C                 retn
  112. .text:1034772D ; ---------------------------------------------------------------------------
  113. .text:1034772D
  114. .text:1034772D loc_1034772D:                           ; CODE XREF: sub_103475F0+CA↑j
  115. .text:1034772D                 mov     eax, [esi]
  116. .text:1034772F                 mov     ecx, esi
  117. .text:10347731                 mov     eax, [eax+30h]
  118. .text:10347734                 call    eax
  119. .text:10347736                 fstp    [esp+10h+var_8]
  120. .text:1034773A                 movss   xmm0, [esp+10h+var_8]
  121. .text:10347740                 ucomiss xmm0, ds:dword_10C0EBB8
  122. .text:10347747                 lahf
  123. .text:10347748                 test    ah, 44h
  124. .text:1034774B                 jp      short loc_103477CA
  125. .text:1034774D                 push    0
  126. .text:1034774F                 push    offset aViewmodelFov ; "viewmodel_fov"
  127. .text:10347754                 lea     ecx, [esp+18h+var_8]
  128. .text:10347758                 call    sub_108A6970
  129. .text:1034775D                 mov     ecx, [esp+10h+var_8]
  130. .text:10347761                 push    44h
  131. .text:10347763                 mov     eax, [ecx]
  132. .text:10347765                 call    dword ptr [eax+4]
  133. .text:10347768                 push    0
  134. .text:1034776A                 push    offset aViewmodelOffse ; "viewmodel_offset_x"
  135. .text:1034776F                 lea     ecx, [esp+18h+var_8]
  136. .text:10347773                 call    sub_108A6970
  137. .text:10347778                 mov     ecx, [esp+10h+var_8]
  138. .text:1034777C                 push    ecx
  139. .text:1034777D                 mov     [esp+14h+var_14], 40200000h
  140. .text:10347784                 mov     eax, [ecx]
  141. .text:10347786                 call    dword ptr [eax+8]
  142. .text:10347789                 push    0
  143. .text:1034778B                 push    offset aViewmodelOffse_0 ; "viewmodel_offset_y"
  144. .text:10347790                 lea     ecx, [esp+18h+var_8]
  145. .text:10347794                 call    sub_108A6970
  146. .text:10347799                 mov     ecx, [esp+10h+var_8]
  147. .text:1034779D                 push    0
  148. .text:1034779F                 mov     eax, [ecx]
  149. .text:103477A1                 call    dword ptr [eax+4]
  150. .text:103477A4                 push    0
  151. .text:103477A6                 push    offset aViewmodelOffse_1 ; "viewmodel_offset_z"
  152. .text:103477AB                 lea     ecx, [esp+18h+var_8]
  153. .text:103477AF                 call    sub_108A6970
  154. .text:103477B4                 mov     ecx, [esp+10h+var_8]
  155. .text:103477B8                 push    ecx
  156. .text:103477B9                 mov     [esp+14h+var_14], 0BFC00000h
  157. .text:103477C0                 mov     eax, [ecx]
  158. .text:103477C2                 call    dword ptr [eax+8]
  159. .text:103477C5                 pop     esi
  160. .text:103477C6                 mov     esp, ebp
  161. .text:103477C8                 pop     ebp
  162. .text:103477C9                 retn
  163. .text:103477CA ; ---------------------------------------------------------------------------
  164. .text:103477CA
  165. .text:103477CA loc_103477CA:                           ; CODE XREF: sub_103475F0+15B↑j
  166. .text:103477CA                 push    offset aValidOptions1D ; "Valid options: 1 = Desktop, 2 = Couch, "...
  167. .text:103477CF                 call    ds:Warning
  168. .text:103477D5                 add     esp, 4
  169. .text:103477D8                 pop     esi
  170. .text:103477D9                 mov     esp, ebp
  171. .text:103477DB                 pop     ebp
  172. .text:103477DC                 retn
  173. .text:103477DC sub_103475F0    endp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement