Function at 0x10039940
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf8
mov eax, dword [0x10184080]
xor eax, esp
mov dword [esp + 0xf4], eax
cmp byte [0x101880d9], 0
push esi
push edi
push dword [0x10188314]
je 0x1003a343
call fcn.1003b650
add esp, 4
test al, al
jne 0x10039a75
mov edx, 0x10188314
mov byte [0x101880cb], al
mov byte [0x10187e7b], al
call fcn.1003b510
push dword [0x10188314]
mov cl, 1
call fcn.10029db0
add esp, 4
push dword [0x10188314]
call fcn.1003b990
add esp, 4
mov edx, 1
mov ecx, edx
call fcn.1003c4f0
mov dword [esp + 0x3c], 0
call fcn.100261e0
mov ecx, eax
call fcn.1003fbf0
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.1003fc90
movss xmm3, dword [0x1017c17c]
lea eax, [esp + 0x4c]
movss xmm2, dword [0x1017c1d4]
lea edx, [esp + 0x48]
push eax
push dword [esp + 0x40]
lea ecx, [esp + 0x4c]
xorps xmm1, xmm1
call fcn.100274c0
push dword [0x10188314]
movss xmm3, dword [esp + 0x58]
movss xmm2, dword [esp + 0x54]
movss xmm1, dword [esp + 0x50]
call fcn.10029f00
add esp, 0xc
mov dword [esp + 0x3c], 0
call fcn.100261e0
mov ecx, eax
call fcn.1003fbf0
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.1003fc90
push dword [esp + 0x3c]
push dword [0x10188314]
call fcn.1002c660
push dword [0x10188314]
call fcn.1002ca30
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret
cmp byte [0x1018506c], 0
je 0x10039cc5
movss xmm0, dword [0x10185ea4]
lea eax, [esp + 0xf0]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push str._.2f_FOV
push 0xc
push eax
call fcn.10001290
mov cl, byte [0x1018823e]
add esp, 0x14
test cl, cl
je 0x10039ac3
mov al, byte [0x1018822f]
test al, al
je 0x10039b43
xor ecx, ecx
call fcn.10033150
sub esp, 0xc
call fcn.10032fd0
call fcn.10033090
add esp, 0xc
or dl, 0xff
or cl, 0xff
push 0xff
push 0xff
call fcn.10032f00
movss xmm1, dword [0x1017c0d8]
add esp, 8
movss xmm0, dword [0x1017c078]
call fcn.10032dc0
xor cl, cl
call fcn.10032e60
mov cl, 1
call fcn.100331f0
movss xmm1, dword [0x1017c00c]
lea edx, [esp + 0xf0]
movss xmm0, dword [0x1017c100]
call fcn.10032d10
xor cl, cl
call fcn.100331f0
mov cl, byte [0x1018823e]
mov al, byte [0x1018822f]
test cl, cl
je 0x10039b4b
test al, al
je 0x10039bc4
xor ecx, ecx
call fcn.10033150
sub esp, 0xc
call fcn.10032fd0
call fcn.10033090
add esp, 0xc
or dl, 0xff
or cl, 0xff
push 0xff
push 0xff
call fcn.10032f00
movss xmm1, dword [0x1017c128]
add esp, 8
movss xmm0, dword [0x1017c0a0]
call fcn.10032dc0
xor cl, cl
call fcn.10032e60
mov cl, 1
call fcn.100331f0
movss xmm0, dword [0x1017c100]
mov edx, 0x10170a44
movaps xmm1, xmm0
call fcn.10032d10
xor cl, cl
call fcn.100331f0
mov cl, byte [0x1018823e]
mov al, byte [0x1018822f]
test cl, cl
je 0x10039bcc
test al, al
je 0x10039c4a
xor ecx, ecx
call fcn.10033150
sub esp, 0xc
call fcn.10032fd0
call fcn.10033090
add esp, 0xc
or dl, 0xff
or cl, 0xff
push 0xff
push 0xff
call fcn.10032f00
movss xmm1, dword [0x1017c0d8]
add esp, 8
movss xmm0, dword [0x1017c078]
call fcn.10032dc0
xor cl, cl
call fcn.10032e60
mov cl, 1
call fcn.100331f0
movss xmm1, dword [0x1017c190]
mov edx, str.sToggle_HUD:_bHs___Reset_camera:_bRCTRLs___Adjust_height:_bQs_bEs
movss xmm0, dword [0x1017c090]
call fcn.10032d10
xor cl, cl
call fcn.100331f0
mov cl, byte [0x1018823e]
mov al, byte [0x1018822f]
test cl, cl
je 0x10039c52
test al, al
je 0x10039cc5
xor ecx, ecx
call fcn.10033150
sub esp, 0xc
call fcn.10032fd0
call fcn.10033090
add esp, 0xc
or dl, 0xff
or cl, 0xff
push 0xff
push 0xff
call fcn.10032f00
movss xmm1, dword [0x1017c0d8]
add esp, 8
movss xmm0, dword [0x1017c078]
call fcn.10032dc0
xor cl, cl
call fcn.10032e60
mov cl, 1
call fcn.100331f0
movss xmm1, dword [0x1017c198]
mov edx, str.sMove_camera:_bWs_bS___sRotate_camera:_yHold_bleft_click___sFOV:_bmouse_wheel
movss xmm0, dword [0x1017c090]
call fcn.10032d10
xor cl, cl
call fcn.100331f0
call fcn.100261e0
xor dl, dl
mov ecx, eax
call fcn.100263b0
push dword [0x10188314]
movss xmm1, dword [0x10185ea4]
call fcn.1003b8f0
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 0x10039d69
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 0x10039d40
mov eax, dword [esp + 0x40]
movss xmm2, dword [0x1017c1b4]
test eax, eax
jle 0x10039daa
movss xmm0, dword [0x10185ea4]
comiss xmm0, dword [0x1017c23c]
jb 0x10039d9c
movss xmm0, dword [0x1017c214]
movss dword [0x10185ea4], xmm0
jmp 0x10039dd9
addss xmm0, xmm2
movss dword [0x10185ea4], xmm0
jmp 0x10039dd9
jns 0x10039dd9
movss xmm0, dword [0x1017c214]
movss xmm1, dword [0x10185ea4]
comiss xmm0, xmm1
jb 0x10039dcd
mov dword [0x10185ea4], 0x432a0000
jmp 0x10039dd9
subss xmm1, xmm2
movss dword [0x10185ea4], xmm1
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
test ax, ax
jns 0x10039e5d
lea ecx, [esp + 0x3c]
mov byte [0x10187e8b], 0
mov dword [esp + 0x3c], 0
call fcn.10029e60
push dword [esp + 0x3c]
mov cl, 1
call fcn.10029db0
add esp, 4
lea eax, [esp + 0x4c]
lea edx, [esp + 0x48]
lea ecx, [esp + 0x44]
push eax
push dword [esp + 0x40]
call fcn.1003b7a0
push dword [0x10188314]
movss xmm3, dword [esp + 0x58]
movss xmm2, dword [esp + 0x54]
movss xmm1, dword [esp + 0x50]
call fcn.10029fb0
movq xmm0, qword [esp + 0x50]
add esp, 0xc
mov eax, dword [esp + 0x4c]
movq qword [0x101880bc], xmm0
mov dword [0x101880c4], eax
jmp 0x10039e64
mov byte [0x10187e8b], 1
push 0x48
call edi
test ax, ax
mov al, byte [0x10187f18]
jns 0x10039ea6
test al, al
jne 0x10039ea6
cmp byte [0x1018506c], al
mov word [0x10187f18], 1
sete cl
mov byte [0x1018506c], cl
mov byte [0x1018506d], cl
call fcn.1002aca0
mov cl, byte [0x1018506c]
call fcn.1002ad40
jmp 0x10039ebc
cmp al, 1
jne 0x10039ebc
push 0x48
call edi
test ax, ax
js 0x10039ebc
mov word [0x10187f18], 0x100
push 0x57
call edi
test ax, ax
jns 0x1003a002
mov esi, dword [0x10188314]
push esi
mov byte [0x10187f37], 0
mov dword [0x101880b4], 0
mov dword [0x101880b0], 0
mov dword [0x101880ac], 0
call fcn.1003b850
add esp, 4
test al, al
je 0x10039fd7
lea eax, [esp + 0x4c]
push eax
push esi
lea edx, [esp + 0x50]
lea ecx, [esp + 0x4c]
call fcn.1003b7a0
lea eax, [esp + 0x100]
push eax
push esi
lea edx, [esp + 0x104]
lea ecx, [esp + 0x100]
call fcn.1003b6f0
movss xmm0, dword [esp + 0x5c]
add esp, 0x10
call fcn.1003bf30
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.1003bdf0
mulss xmm0, dword [0x1017c020]
movss xmm1, dword [esp + 0xf0]
mulss xmm0, dword [esp + 0x3c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [0x101880ac], xmm1
call fcn.1003bdf0
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.1003bdf0
mulss xmm0, dword [0x1017c020]
mulss xmm0, dword [esp + 0x3c]
addss xmm0, dword [esp + 0xf4]
movss dword [0x101880b0], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.1003bf30
mulss xmm0, dword [0x1017c020]
addss xmm0, dword [esp + 0xf8]
movss dword [0x101880b4], xmm0
jmp 0x10039fdf
movss xmm0, dword [0x101880b4]
push dword [0x10188314]
movss xmm2, dword [0x101880b0]
movaps xmm3, xmm0
movss xmm1, dword [0x101880ac]
call fcn.10029f00
add esp, 4
jmp 0x1003a009
mov byte [0x10187f37], 1
push 0x53
call edi
test ax, ax
jns 0x1003a154
mov esi, dword [0x10188314]
push esi
mov byte [0x10187f2f], 0
mov dword [0x101880b4], 0
mov dword [0x101880b0], 0
mov dword [0x101880ac], 0
call fcn.1003b850
add esp, 4
test al, al
je 0x1003a12c
lea eax, [esp + 0x4c]
push eax
push esi
lea edx, [esp + 0x50]
lea ecx, [esp + 0x4c]
call fcn.1003b7a0
lea eax, [esp + 0x100]
push eax
push esi
lea edx, [esp + 0x104]
lea ecx, [esp + 0x100]
call fcn.1003b6f0
movss xmm0, dword [esp + 0x5c]
add esp, 0x10
call fcn.1003bf30
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.1003bdf0
mulss xmm0, dword [0x1017c280]
movss xmm1, dword [esp + 0xf0]
mulss xmm0, dword [esp + 0x3c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [0x101880ac], xmm1
call fcn.1003bdf0
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x44]
call fcn.1003bdf0
mulss xmm0, dword [0x1017c020]
movss xmm1, dword [esp + 0xf4]
mulss xmm0, dword [esp + 0x3c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x44]
movss dword [0x101880b0], xmm1
call fcn.1003bf30
mulss xmm0, dword [0x1017c020]
movss xmm3, dword [esp + 0xf8]
subss xmm3, xmm0
movss dword [0x101880b4], xmm3
jmp 0x1003a134
movss xmm3, dword [0x101880b4]
push dword [0x10188314]
movss xmm2, dword [0x101880b0]
movss xmm1, dword [0x101880ac]
call fcn.10029f00
add esp, 4
jmp 0x1003a15b
mov byte [0x10187f2f], 1
push 0x51
call edi
test ax, ax
jns 0x1003a1a3
movss xmm3, dword [0x101880b4]
addss xmm3, dword [0x1017c1b4]
push dword [0x10188314]
movss xmm2, dword [0x101880b0]
movss xmm1, dword [0x101880ac]
mov byte [0x10187f2b], 0
movss dword [0x101880b4], xmm3
call fcn.10029f00
add esp, 4
jmp 0x1003a1aa
mov byte [0x10187f2b], 1
push 0x45
call edi
test ax, ax
jns 0x1003a1f2
movss xmm3, dword [0x101880b4]
subss xmm3, dword [0x1017c1b4]
push dword [0x10188314]
movss xmm2, dword [0x101880b0]
movss xmm1, dword [0x101880ac]
mov byte [0x10187f13], 0
movss dword [0x101880b4], xmm3
call fcn.10029f00
add esp, 4
jmp 0x1003a1f9
mov byte [0x10187f13], 1
push 0xa3
call edi
test ax, ax
mov al, byte [0x10187fce]
jns 0x1003a316
test al, al
jne 0x1003a316
mov word [0x10187fce], 1
mov dword [0x10185ea4], 0x42480000
mov dword [0x101880bc], 0
mov dword [0x101880c0], 0
mov dword [0x101880c4], 0
mov dword [esp + 0x3c], 0
call fcn.100261e0
mov ecx, eax
call fcn.1003fbf0
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.1003fc90
movss xmm3, dword [0x1017c17c]
lea eax, [esp + 0x4c]
movss xmm2, dword [0x1017c1d4]
lea edx, [esp + 0x48]
push eax
push dword [esp + 0x40]
lea ecx, [esp + 0x4c]
xorps xmm1, xmm1
call fcn.100274c0
movq xmm0, qword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push dword [0x10188314]
movss xmm3, dword [esp + 0x58]
movss xmm2, dword [esp + 0x54]
movss xmm1, dword [esp + 0x50]
movq qword [0x101880ac], xmm0
mov dword [0x101880b4], eax
call fcn.10029f00
movss xmm1, dword [0x10185ea4]
add esp, 0xc
push dword [0x10188314]
call fcn.1003b8f0
movss xmm3, dword [0x101880c4]
add esp, 4
movss xmm2, dword [0x101880c0]
movss xmm1, dword [0x101880bc]
push dword [0x10188314]
call fcn.10029fb0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x1003a374
push 0xa3
call edi
test ax, ax
js 0x1003a374
mov word [0x10187fce], 0x100
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret
call fcn.1003b650
add esp, 4
test al, al
je 0x1003a374
push dword [0x10188314]
call fcn.1003b5b0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.1003c4f0
call fcn.100261e0
mov dl, 1
mov ecx, eax
call fcn.100263b0
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
xor ecx, esp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret