Function at 0x100058ba
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
cmp byte [0x101f7608], 0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x14], ebp
je 0x10005e82
mov edi, dword [0x101f764c]
test edi, edi
je 0x10005e82
mov eax, dword [0x101f7648]
test eax, eax
jne 0x10005652
mov edx, 0xe80c2f78
mov ecx, 0x1014c9ed
call fcn.10003ad0
mov edx, 0xc10bf213
mov ecx, 0x1014c915
mov esi, eax
call fcn.10003ad0
mov edx, esi
mov ecx, eax
call fcn.100abe50
mov dword [0x101f7648], eax
cmp dword [eax + edi], 0
jle 0x10005e82
push dword [0x101f760c]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10005e82
mov edi, dword [0x101f764c]
mov edx, 0xe80c2f78
mov ecx, 0x1014ca25
call fcn.10003ad0
mov edx, 0xc10bf213
mov ecx, 0x1014c915
mov esi, eax
call fcn.10003ad0
mov edx, esi
mov ecx, eax
call fcn.100abe50
mov ecx, dword [0x101f75d0]
mov edx, dword [eax + edi]
mov eax, dword [ecx]
and edx, 0xfff
push edx
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
mov ecx, esi
mov dword [esp + 0x40], esi
call fcn.100044d0
test al, al
jne 0x10005719
mov ecx, esi
call fcn.100041f0
test al, al
jne 0x10005719
mov ecx, esi
call fcn.10004100
test al, al
jne 0x10005719
mov ecx, esi
call fcn.100046c0
test al, al
jne 0x10005719
mov ecx, esi
call fcn.10004010
test al, al
jne 0x10005719
mov ecx, esi
call fcn.100045d0
test al, al
jne 0x10005719
mov ecx, esi
call fcn.100043d0
test al, al
jne 0x10005719
mov ecx, esi
call fcn.100042e0
test al, al
je 0x10005e82
mov ecx, esi
call fcn.10004010
test al, al
je 0x10005749
mov eax, dword [0x101f75fc]
mov ecx, dword [0x101f7618]
mov dword [0x101c1780], eax
mov eax, dword [0x101be0a4]
mov dword [0x101f7e50], ecx
mov dword [0x101c1788], eax
jmp 0x10005896
mov ecx, esi
call fcn.10004100
test al, al
je 0x10005779
mov eax, dword [0x101f761c]
mov ecx, dword [0x101f763c]
mov dword [0x101c1780], eax
mov eax, dword [0x101be0ac]
mov dword [0x101f7e50], ecx
mov dword [0x101c1788], eax
jmp 0x10005896
mov ecx, esi
call fcn.100041f0
test al, al
je 0x100057a9
mov eax, dword [0x101f7624]
mov ecx, dword [0x101f7630]
mov dword [0x101c1780], eax
mov eax, dword [0x101be0b0]
mov dword [0x101f7e50], ecx
mov dword [0x101c1788], eax
jmp 0x10005896
mov ecx, esi
call fcn.100042e0
test al, al
je 0x100057d9
mov eax, dword [0x101f75f8]
mov ecx, dword [0x101f7634]
mov dword [0x101c1780], eax
mov eax, dword [0x101be0a0]
mov dword [0x101f7e50], ecx
mov dword [0x101c1788], eax
jmp 0x10005896
mov ecx, esi
call fcn.100043d0
test al, al
je 0x10005809
mov eax, dword [0x101f75ec]
mov ecx, dword [0x101f7620]
mov dword [0x101c1780], eax
mov eax, dword [0x101be094]
mov dword [0x101f7e50], ecx
mov dword [0x101c1788], eax
jmp 0x10005896
mov ecx, esi
call fcn.100044d0
test al, al
je 0x10005836
mov eax, dword [0x101f7600]
mov ecx, dword [0x101f7604]
mov dword [0x101c1780], eax
mov eax, dword [0x101be0a8]
mov dword [0x101f7e50], ecx
mov dword [0x101c1788], eax
jmp 0x10005896
mov ecx, esi
call fcn.100045d0
test al, al
je 0x10005863
mov eax, dword [0x101f762c]
mov ecx, dword [0x101f7610]
mov dword [0x101c1780], eax
mov eax, dword [0x101be09c]
mov dword [0x101f7e50], ecx
mov dword [0x101c1788], eax
jmp 0x10005896
mov ecx, esi
call fcn.100046c0
test al, al
je 0x10005890
mov eax, dword [0x101f75f4]
mov ecx, dword [0x101f75f0]
mov dword [0x101c1780], eax
mov eax, dword [0x101be098]
mov dword [0x101f7e50], ecx
mov dword [0x101c1788], eax
jmp 0x10005896
mov ecx, dword [0x101f7e50]
cmp ecx, 3
ja case.default.0x1000589b
jmp dword [ecx*4 + 0x10005e90]
mov dword [0x101c1784], 0
jmp case.default.0x1000589b
mov dword [0x101c1784], 1
jmp case.default.0x1000589b
mov dword [0x101c1784], 6
jmp case.default.0x1000589b
mov dword [0x101c1784], 3
mov ecx, ebp
call fcn.100051c0
mov ecx, dword fs:[0x2c]
mov ebx, eax
mov edx, dword [0x101c1730]
mov dword [esp + 0x44], ebx
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x101f7e20]
cmp ecx, dword [edx + 4]
jle 0x10005943
push 0x101f7e20
call fcn.1010fdd4
add esp, 4
cmp dword [0x101f7e20], 0xffffffff
jne 0x10005943
mov ecx, dword [0x101c1768]
push str.weapon_recoil_scale
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0x20], ecx
mov ecx, eax
call dword [esp + 0x20]
push 0x101f7e20
fstp dword [0x101f7e6c]
call fcn.1010fd83
add esp, 4
test ebx, ebx
je 0x10005e82
mov ecx, dword [0x101f764c]
lea eax, [esp + 0x68]
push eax
call fcn.10003b00
cmp byte [0x101f7640], 0
je 0x10005c3a
cmp byte [0x101f7614], 0
je 0x10005c3a
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
mov edi, 8
mov eax, dword [eax + 0x28]
call eax
mov dword [esp + 0x24], eax
mov ecx, 0x101f2e60
lea eax, [esp + 0x24]
push eax
call fcn.10005ea0
mov edx, dword [ebx + 4]
lea ecx, [ebx + 4]
mov ebp, eax
mov edx, dword [edx + 0x20]
call edx
mov ecx, dword [0x101f75dc]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x80]
call edx
test eax, eax
je 0x100059e8
cmp dword [eax + 0xac], 0
jl 0x100059e8
mov edx, dword [eax + 0xb0]
add edx, eax
je 0x100059e8
mov ecx, dword [0x101c1784]
mov eax, dword [edx + 8]
shl ecx, 4
add ecx, dword [0x101c1784]
lea eax, [eax + ecx*4]
add eax, edx
je 0x100059e8
mov edi, dword [eax]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
movss xmm0, dword [0x101b8584]
sub eax, 2
movss dword [esp + 0x1c], xmm0
test eax, eax
jle 0x10005c0f
lea edx, [edi + edi*2]
mov dword [esp + 0x34], ebp
mov edi, dword [esp + 0x14]
shl edx, 4
add edi, 0xc
mov dword [esp + 0x20], edx
or esi, 0xffffffff
nop
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add ecx, ebx
dec eax
and ecx, eax
mov eax, dword [ebp + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x101f764c]
movss xmm0, dword [eax + edx + 0x24]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [eax + edx + 0x34]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + edx + 0x44]
lea eax, [esp + 0x74]
push eax
movss dword [esp + 0x30], xmm0
call fcn.10003b00
movq xmm0, qword [eax]
movq qword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x5c]
subss xmm0, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [esp + 0x64], eax
movss dword [esp + 0x30], xmm0
fld dword [esp + 0x30]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x60]
subss xmm0, dword [esp + 0x28]
fstp dword [esp + 0x30]
movss xmm2, dword [esp + 0x30]
mulss xmm2, xmm2
movss dword [esp + 0x28], xmm0
fld dword [esp + 0x28]
fstp dword [esp + 0x30]
movss xmm1, dword [esp + 0x30]
mulss xmm1, xmm1
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x64]
addss xmm2, xmm1
xorps xmm1, xmm1
subss xmm0, dword [esp + 0x2c]
sqrtss xmm1, xmm2
movss dword [esp + 0x30], xmm1
fld dword [esp + 0x30]
fstp dword [esp + 0x30]
divss xmm0, dword [esp + 0x30]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
mulss xmm0, dword [0x101b84a0]
subss xmm0, dword [edi]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0x34]
divss xmm0, dword [esp + 0x18]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
movaps xmm1, xmm0
mov dword [esp + 0x58], 0
mulss xmm1, dword [0x101b84a0]
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [0x101b81e8]
subss xmm1, dword [edi + 4]
movss dword [esp + 0x54], xmm1
jb 0x10005b58
addss xmm1, dword [0x101b84e0]
movss dword [esp + 0x54], xmm1
lea ecx, [esp + 0x50]
call fcn.100abc80
movss xmm1, dword [esp + 0x50]
movss xmm0, dword [esp + 0x54]
mulss xmm1, xmm1
mov dword [esp + 0x80], 0
mulss xmm0, xmm0
addss xmm1, xmm0
movss dword [esp + 0x34], xmm1
sqrtss xmm0, dword [esp + 0x34]
movss dword [esp + 0x80], xmm0
movss xmm1, dword [esp + 0x1c]
mov eax, ebx
movss xmm0, dword [esp + 0x80]
mov edx, dword [esp + 0x20]
comiss xmm1, xmm0
minss xmm0, xmm1
cmovbe eax, esi
inc ebx
mov esi, eax
mov eax, dword [ebp + 0x10]
sub eax, 2
movaps xmm1, xmm0
movss dword [esp + 0x1c], xmm1
cmp ebx, eax
jl 0x10005a20
mov dword [esp + 0x34], esi
cmp esi, 0xffffffff
mov esi, dword [esp + 0x40]
je 0x10005c16
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add ecx, dword [esp + 0x34]
dec eax
and ecx, eax
mov dword [esp + 0x44], ebp
mov eax, dword [ebp + 4]
mov ebp, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, edx
movss xmm0, dword [eax + ecx + 0x34]
movss xmm4, dword [eax + ecx + 0x44]
add eax, 0x24
add eax, ecx
jmp 0x10005c59
mov edi, dword [esp + 0x14]
add edi, 0xc
push dword [0x101c1784]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x78]
push eax
call fcn.10003d70
mov ebp, dword [esp + 0x14]
movss xmm0, dword [eax + 4]
movss xmm4, dword [eax + 8]
jmp 0x10005c59
push dword [0x101c1784]
lea eax, [esp + 0x78]
mov ecx, ebx
push eax
call fcn.10003d70
lea edi, [ebp + 0xc]
movss xmm0, dword [eax + 4]
movss xmm4, dword [eax + 8]
movss xmm1, dword [esp + 0x6c]
movss xmm3, dword [esp + 0x68]
subss xmm1, xmm0
subss xmm3, dword [eax]
movss xmm2, dword [esp + 0x70]
subss xmm2, xmm4
movaps xmm0, xmm1
movss dword [esp + 0x44], xmm1
mulss xmm0, xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
movss dword [esp + 0x20], xmm3
addss xmm0, xmm1
call fcn.100039c0
divss xmm2, xmm0
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
mulss xmm0, dword [0x101b84a0]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x44]
divss xmm0, dword [esp + 0x20]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
movaps xmm1, xmm0
mov dword [esp + 0x3c], 0
mulss xmm1, dword [0x101b84a0]
movss xmm0, dword [esp + 0x20]
comiss xmm0, dword [0x101b81e8]
movss dword [esp + 0x38], xmm1
jb 0x10005cfb
addss xmm1, dword [0x101b84e0]
movss dword [esp + 0x38], xmm1
lea ecx, [esp + 0x34]
call fcn.100abb90
movss xmm0, dword [edi]
lea ecx, [esp + 0x50]
subss xmm0, dword [esp + 0x34]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [edi + 4]
subss xmm0, dword [esp + 0x38]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [edi + 8]
subss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x58], xmm0
call fcn.100abb90
movss xmm0, dword [edi]
lea ecx, [esp + 0x44]
subss xmm0, dword [esp + 0x50]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [edi + 4]
subss xmm0, dword [esp + 0x54]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [edi + 8]
subss xmm0, dword [esp + 0x58]
movss dword [esp + 0x4c], xmm0
call fcn.100abb90
mov ecx, esi
call fcn.100047b0
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, al
je 0x10005da9
push dword [0x101f760c]
call ebx
test ax, ax
je 0x10005da9
cmp byte [0x101f7628], 0
mov ebx, edi
je 0x10005de3
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, esi
call fcn.100047b0
test al, al
je 0x10005e82
push dword [0x101f760c]
call ebx
test ax, ax
je 0x10005e82
cmp byte [0x101f7628], 0
je 0x10005e82
test byte [ebp + 0x30], 1
je 0x10005e82
lea ebx, [ebp + 0xc]
mov eax, dword [0x101f7644]
mov ebp, dword [0x101f764c]
test eax, eax
jne 0x10005e20
mov edx, 0xe80c2f78
mov ecx, 0x1014c9f9
call fcn.10003ad0
mov edx, 0xc10bf213
mov ecx, 0x1014c93d
mov esi, eax
call fcn.10003ad0
mov edx, esi
mov ecx, eax
call fcn.100abe50
mov dword [0x101f7644], eax
movss xmm2, dword [0x101f7e6c]
movss xmm3, dword [esp + 0x44]
movaps xmm0, xmm2
mulss xmm0, dword [eax + ebp]
movss xmm1, dword [esp + 0x48]
subss xmm3, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [eax + ebp + 4]
mulss xmm2, dword [eax + ebp + 8]
subss xmm1, xmm0
movss dword [ebx], xmm3
movss xmm0, dword [esp + 0x4c]
subss xmm0, xmm2
movss dword [ebx + 4], xmm1
movss dword [ebx + 8], xmm0
cmp byte [0x101f7638], 0
jne 0x10005e82
mov ecx, dword [0x101c176c]
push edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret