Function at 0x10037640
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf8
mov eax, dword [0x1017f064]
xor eax, esp
mov dword [esp + 0xf4], eax
cmp byte [0x10182c3f], 0
push esi
push edi
push dword [0x10182e58]
je 0x10038011
call fcn.100395b0
add esp, 4
test al, al
jne 0x10037775
mov edx, 0x10182e58
mov byte [0x10182c32], al
mov byte [0x101829ee], al
call fcn.10039470
push dword [0x10182e58]
mov cl, 1
call fcn.10028fb0
add esp, 4
push dword [0x10182e58]
call fcn.100398f0
add esp, 4
mov edx, 1
mov ecx, edx
call fcn.1003a460
mov dword [esp + 0x3c], 0
call fcn.10025be0
mov ecx, eax
call fcn.1003d450
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.1003d4f0
movss xmm3, dword [0x10176f18]
lea eax, [esp + 0x4c]
movss xmm2, dword [0x10176f70]
lea edx, [esp + 0x48]
push eax
push dword [esp + 0x40]
lea ecx, [esp + 0x4c]
xorps xmm1, xmm1
call fcn.10026f60
push dword [0x10182e58]
movss xmm3, dword [esp + 0x58]
movss xmm2, dword [esp + 0x54]
movss xmm1, dword [esp + 0x50]
call fcn.10029100
add esp, 0xc
mov dword [esp + 0x3c], 0
call fcn.10025be0
mov ecx, eax
call fcn.1003d450
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.1003d4f0
push dword [esp + 0x3c]
push dword [0x10182e58]
call fcn.1002b4b0
push dword [0x10182e58]
call fcn.1002b7d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.1004955b
mov esp, ebp
pop ebp
ret
cmp byte [0x1017ff4c], 0
je 0x100379a5
movss xmm0, dword [0x10180a94]
lea eax, [esp + 0xf0]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push str._.2f_FOV
push 0xc
push eax
call fcn.10001270
add esp, 0x14
cmp byte [0x10182db1], 0
jne 0x100379a5
xor ecx, ecx
call fcn.10030e20
sub esp, 0xc
call fcn.10030ca0
call fcn.10030d60
add esp, 0xc
or dl, 0xff
or cl, 0xff
push 0xff
push 0xff
call fcn.10030bd0
movss xmm1, dword [0x10176e70]
add esp, 8
movss xmm0, dword [0x10176e10]
call fcn.10030a90
xor cl, cl
call fcn.10030b30
mov cl, 1
call fcn.10030ec0
movss xmm1, dword [0x10176da8]
lea edx, [esp + 0xf0]
movss xmm0, dword [0x10176e98]
call fcn.100309e0
xor cl, cl
call fcn.10030ec0
cmp byte [0x10182db1], 0
jne 0x100379a5
xor ecx, ecx
call fcn.10030e20
sub esp, 0xc
call fcn.10030ca0
call fcn.10030d60
add esp, 0xc
or dl, 0xff
or cl, 0xff
push 0xff
push 0xff
call fcn.10030bd0
movss xmm1, dword [0x10176ec4]
add esp, 8
movss xmm0, dword [0x10176e38]
call fcn.10030a90
xor cl, cl
call fcn.10030b30
mov cl, 1
call fcn.10030ec0
movss xmm0, dword [0x10176e98]
mov edx, 0x1016b964
movaps xmm1, xmm0
call fcn.100309e0
xor cl, cl
call fcn.10030ec0
cmp byte [0x10182db1], 0
jne 0x100379a5
xor ecx, ecx
call fcn.10030e20
sub esp, 0xc
call fcn.10030ca0
call fcn.10030d60
add esp, 0xc
or dl, 0xff
or cl, 0xff
push 0xff
push 0xff
call fcn.10030bd0
movss xmm1, dword [0x10176e70]
add esp, 8
movss xmm0, dword [0x10176e10]
call fcn.10030a90
xor cl, cl
call fcn.10030b30
mov cl, 1
call fcn.10030ec0
movss xmm1, dword [0x10176f2c]
mov edx, str.sToggle_HUD:_bHs___Reset_camera:_bRCTRLs___Adjust_height:_bQs_bEs
movss xmm0, dword [0x10176e28]
call fcn.100309e0
xor cl, cl
call fcn.10030ec0
cmp byte [0x10182db1], 0
jne 0x100379a5
xor ecx, ecx
call fcn.10030e20
sub esp, 0xc
call fcn.10030ca0
call fcn.10030d60
add esp, 0xc
or dl, 0xff
or cl, 0xff
push 0xff
push 0xff
call fcn.10030bd0
movss xmm1, dword [0x10176e70]
add esp, 8
movss xmm0, dword [0x10176e10]
call fcn.10030a90
xor cl, cl
call fcn.10030b30
mov cl, 1
call fcn.10030ec0
movss xmm1, dword [0x10176f34]
mov edx, str.sMove_camera:_bWs_bS___sRotate_camera:_yHold_bleft_click___sFOV:_bmouse_wheel
movss xmm0, dword [0x10176e28]
call fcn.100309e0
xor cl, cl
call fcn.10030ec0
call fcn.10025be0
xor dl, dl
mov ecx, eax
call fcn.10025db0
push dword [0x10182e58]
movss xmm1, dword [0x10180a94]
call fcn.10039850
lea eax, [esp + 0xb4]
mov dword [esp + 0x44], 0
add esp, 4
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x5c], 0
push 0x48e57e00
push eax
mov dword [esp + 0x5c], 1
call dword [sym.imp.ScriptHook.dll_private:_static_void___cdecl_NativeInvoke::SpeedyInvoke_class_NativeContext___unsigned_int_]
mov eax, dword [esp + 0x64]
add esp, 8
test eax, eax
je 0x10037a49
nop word [eax + eax]
lea edx, [eax - 1]
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + edx*4 + 0x60]
add edx, edx
mov eax, dword [esp + edx*8 + 0x70]
mov dword [ecx], eax
mov eax, dword [esp + edx*8 + 0x74]
mov dword [ecx + 4], eax
mov eax, dword [esp + edx*8 + 0x78]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x10037a20
mov eax, dword [esp + 0x40]
movss xmm2, dword [0x10176f50]
test eax, eax
jle 0x10037a8a
movss xmm0, dword [0x10180a94]
comiss xmm0, dword [0x10177094]
jb 0x10037a7c
movss xmm0, dword [0x1017700c]
movss dword [0x10180a94], xmm0
jmp 0x10037ab9
addss xmm0, xmm2
movss dword [0x10180a94], xmm0
jmp 0x10037ab9
jns 0x10037ab9
movss xmm0, dword [0x1017700c]
movss xmm1, dword [0x10180a94]
comiss xmm0, xmm1
jb 0x10037aad
mov dword [0x10180a94], 0x432a0000
jmp 0x10037ab9
subss xmm1, xmm2
movss dword [0x10180a94], xmm1
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
test ax, ax
jns 0x10037b3d
lea ecx, [esp + 0x3c]
mov byte [0x101829f3], 0
mov dword [esp + 0x3c], 0
call fcn.10029060
push dword [esp + 0x3c]
mov cl, 1
call fcn.10028fb0
add esp, 4
lea eax, [esp + 0x4c]
lea edx, [esp + 0x48]
lea ecx, [esp + 0x44]
push eax
push dword [esp + 0x40]
call fcn.10039700
push dword [0x10182e58]
movss xmm3, dword [esp + 0x58]
movss xmm2, dword [esp + 0x54]
movss xmm1, dword [esp + 0x50]
call fcn.100291b0
movq xmm0, qword [esp + 0x50]
add esp, 0xc
mov eax, dword [esp + 0x4c]
movq qword [0x10182c24], xmm0
mov dword [0x10182c2c], eax
jmp 0x10037b44
mov byte [0x101829f3], 1
push 0x48
call edi
test ax, ax
mov al, byte [0x10182a80]
jns 0x10037b74
test al, al
jne 0x10037b74
cmp byte [0x1017ff4c], al
mov word [0x10182a80], 1
sete al
mov byte [0x1017ff4c], al
mov byte [0x1017ff4d], al
jmp 0x10037b8a
cmp al, 1
jne 0x10037b8a
push 0x48
call edi
test ax, ax
js 0x10037b8a
mov word [0x10182a80], 0x100
push 0x57
call edi
test ax, ax
jns 0x10037cd0
mov esi, dword [0x10182e58]
push esi
mov byte [0x10182a9f], 0
mov dword [0x10182c1c], 0
mov dword [0x10182c18], 0
mov dword [0x10182c14], 0
call fcn.100397b0
add esp, 4
test al, al
je 0x10037ca5
lea eax, [esp + 0x4c]
push eax
push esi
lea edx, [esp + 0x50]
lea ecx, [esp + 0x4c]
call fcn.10039700
lea eax, [esp + 0x100]
push eax
push esi
lea edx, [esp + 0x104]
lea ecx, [esp + 0x100]
call fcn.10039650
movss xmm0, dword [esp + 0x5c]
add esp, 0x10
call fcn.10039e00
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.10039cc0
mulss xmm0, dword [0x10176dbc]
movss xmm1, dword [esp + 0xf0]
mulss xmm0, dword [esp + 0x3c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [0x10182c14], xmm1
call fcn.10039cc0
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.10039cc0
mulss xmm0, dword [0x10176dbc]
mulss xmm0, dword [esp + 0x3c]
addss xmm0, dword [esp + 0xf4]
movss dword [0x10182c18], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.10039e00
mulss xmm0, dword [0x10176dbc]
addss xmm0, dword [esp + 0xf8]
movss dword [0x10182c1c], xmm0
jmp 0x10037cad
movss xmm0, dword [0x10182c1c]
push dword [0x10182e58]
movss xmm2, dword [0x10182c18]
movaps xmm3, xmm0
movss xmm1, dword [0x10182c14]
call fcn.10029100
add esp, 4
jmp 0x10037cd7
mov byte [0x10182a9f], 1
push 0x53
call edi
test ax, ax
jns 0x10037e22
mov esi, dword [0x10182e58]
push esi
mov byte [0x10182a97], 0
mov dword [0x10182c1c], 0
mov dword [0x10182c18], 0
mov dword [0x10182c14], 0
call fcn.100397b0
add esp, 4
test al, al
je 0x10037dfa
lea eax, [esp + 0x4c]
push eax
push esi
lea edx, [esp + 0x50]
lea ecx, [esp + 0x4c]
call fcn.10039700
lea eax, [esp + 0x100]
push eax
push esi
lea edx, [esp + 0x104]
lea ecx, [esp + 0x100]
call fcn.10039650
movss xmm0, dword [esp + 0x5c]
add esp, 0x10
call fcn.10039e00
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.10039cc0
mulss xmm0, dword [0x10177178]
movss xmm1, dword [esp + 0xf0]
mulss xmm0, dword [esp + 0x3c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [0x10182c14], xmm1
call fcn.10039cc0
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.10039cc0
mulss xmm0, dword [0x10176dbc]
movss xmm1, dword [esp + 0xf4]
mulss xmm0, dword [esp + 0x3c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x44]
movss dword [0x10182c18], xmm1
call fcn.10039e00
mulss xmm0, dword [0x10176dbc]
movss xmm3, dword [esp + 0xf8]
subss xmm3, xmm0
movss dword [0x10182c1c], xmm3
jmp 0x10037e02
movss xmm3, dword [0x10182c1c]
push dword [0x10182e58]
movss xmm2, dword [0x10182c18]
movss xmm1, dword [0x10182c14]
call fcn.10029100
add esp, 4
jmp 0x10037e29
mov byte [0x10182a97], 1
push 0x51
call edi
test ax, ax
jns 0x10037e71
movss xmm3, dword [0x10182c1c]
addss xmm3, dword [0x10176f50]
push dword [0x10182e58]
movss xmm2, dword [0x10182c18]
movss xmm1, dword [0x10182c14]
mov byte [0x10182a93], 0
movss dword [0x10182c1c], xmm3
call fcn.10029100
add esp, 4
jmp 0x10037e78
mov byte [0x10182a93], 1
push 0x45
call edi
test ax, ax
jns 0x10037ec0
movss xmm3, dword [0x10182c1c]
subss xmm3, dword [0x10176f50]
push dword [0x10182e58]
movss xmm2, dword [0x10182c18]
movss xmm1, dword [0x10182c14]
mov byte [0x10182a7b], 0
movss dword [0x10182c1c], xmm3
call fcn.10029100
add esp, 4
jmp 0x10037ec7
mov byte [0x10182a7b], 1
push 0xa3
call edi
test ax, ax
mov al, byte [0x10182b36]
jns 0x10037fe4
test al, al
jne 0x10037fe4
mov word [0x10182b36], 1
mov dword [0x10180a94], 0x42480000
mov dword [0x10182c24], 0
mov dword [0x10182c28], 0
mov dword [0x10182c2c], 0
mov dword [esp + 0x3c], 0
call fcn.10025be0
mov ecx, eax
call fcn.1003d450
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.1003d4f0
movss xmm3, dword [0x10176f18]
lea eax, [esp + 0x4c]
movss xmm2, dword [0x10176f70]
lea edx, [esp + 0x48]
push eax
push dword [esp + 0x40]
lea ecx, [esp + 0x4c]
xorps xmm1, xmm1
call fcn.10026f60
movq xmm0, qword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push dword [0x10182e58]
movss xmm3, dword [esp + 0x58]
movss xmm2, dword [esp + 0x54]
movss xmm1, dword [esp + 0x50]
movq qword [0x10182c14], xmm0
mov dword [0x10182c1c], eax
call fcn.10029100
movss xmm1, dword [0x10180a94]
add esp, 0xc
push dword [0x10182e58]
call fcn.10039850
movss xmm3, dword [0x10182c2c]
add esp, 4
movss xmm2, dword [0x10182c28]
movss xmm1, dword [0x10182c24]
push dword [0x10182e58]
call fcn.100291b0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.1004955b
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x10038042
push 0xa3
call edi
test ax, ax
js 0x10038042
mov word [0x10182b36], 0x100
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.1004955b
mov esp, ebp
pop ebp
ret
call fcn.100395b0
add esp, 4
test al, al
je 0x10038042
push dword [0x10182e58]
call fcn.10039510
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.1003a460
call fcn.10025be0
mov dl, 1
mov ecx, eax
call fcn.10025db0
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
xor ecx, esp
call fcn.1004955b
mov esp, ebp
pop ebp
ret