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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
cmp byte [0x10249bd0], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x54], ebx
je 0x10006d0f
mov edi, dword [0x10249c14]
test edi, edi
je 0x10006d0f
mov eax, dword [0x10249c10]
test eax, eax
jne 0x100063a7
mov edx, 0xe80c2f78
mov ecx, 0x101e7481
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73a9
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov dword [0x10249c10], eax
cmp dword [eax + edi], 0
jle 0x10006d0f
push dword [0x10249bd4]
mov eax, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dword [esp + 0x70], eax
call eax
test ax, ax
je 0x10006d0f
mov edi, dword [0x10249c14]
mov edx, 0xe80c2f78
mov ecx, 0x101e74b9
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73a9
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov ecx, dword [0x10249b98]
mov edx, dword [eax + edi]
mov eax, dword [ecx]
and edx, 0xfff
push edx
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.10005220
test al, al
jne 0x10006473
mov ecx, edi
call fcn.10004f40
test al, al
jne 0x10006473
mov ecx, edi
call fcn.10004e50
test al, al
jne 0x10006473
mov ecx, edi
call fcn.10005410
test al, al
jne 0x10006473
mov ecx, edi
call fcn.10004d60
test al, al
jne 0x10006473
mov ecx, edi
call fcn.10005320
test al, al
jne 0x10006473
mov ecx, edi
call fcn.10005120
test al, al
jne 0x10006473
mov ecx, edi
call fcn.10005030
test al, al
je 0x10006d0f
mov ecx, edi
call fcn.10004d60
test al, al
je 0x100064a3
mov eax, dword [0x10249bc4]
mov ecx, dword [0x10249be0]
mov dword [0x10213c10], eax
mov eax, dword [0x102100b4]
mov dword [0x1024ad60], ecx
mov dword [0x10213c18], eax
jmp 0x100065f0
mov ecx, edi
call fcn.10004e50
test al, al
je 0x100064d3
mov eax, dword [0x10249be4]
mov ecx, dword [0x10249c04]
mov dword [0x10213c10], eax
mov eax, dword [0x102100bc]
mov dword [0x1024ad60], ecx
mov dword [0x10213c18], eax
jmp 0x100065f0
mov ecx, edi
call fcn.10004f40
test al, al
je 0x10006503
mov eax, dword [0x10249bec]
mov ecx, dword [0x10249bf8]
mov dword [0x10213c10], eax
mov eax, dword [0x102100c0]
mov dword [0x1024ad60], ecx
mov dword [0x10213c18], eax
jmp 0x100065f0
mov ecx, edi
call fcn.10005030
test al, al
je 0x10006533
mov eax, dword [0x10249bc0]
mov ecx, dword [0x10249bfc]
mov dword [0x10213c10], eax
mov eax, dword [0x102100b0]
mov dword [0x1024ad60], ecx
mov dword [0x10213c18], eax
jmp 0x100065f0
mov ecx, edi
call fcn.10005120
test al, al
je 0x10006563
mov eax, dword [0x10249bb4]
mov ecx, dword [0x10249be8]
mov dword [0x10213c10], eax
mov eax, dword [0x102100a4]
mov dword [0x1024ad60], ecx
mov dword [0x10213c18], eax
jmp 0x100065f0
mov ecx, edi
call fcn.10005220
test al, al
je 0x10006590
mov eax, dword [0x10249bc8]
mov ecx, dword [0x10249bcc]
mov dword [0x10213c10], eax
mov eax, dword [0x102100b8]
mov dword [0x1024ad60], ecx
mov dword [0x10213c18], eax
jmp 0x100065f0
mov ecx, edi
call fcn.10005320
test al, al
je 0x100065bd
mov eax, dword [0x10249bf4]
mov ecx, dword [0x10249bd8]
mov dword [0x10213c10], eax
mov eax, dword [0x102100ac]
mov dword [0x1024ad60], ecx
mov dword [0x10213c18], eax
jmp 0x100065f0
mov ecx, edi
call fcn.10005410
test al, al
je 0x100065ea
mov eax, dword [0x10249bbc]
mov ecx, dword [0x10249bb8]
mov dword [0x10213c10], eax
mov eax, dword [0x102100a8]
mov dword [0x1024ad60], ecx
mov dword [0x10213c18], eax
jmp 0x100065f0
mov ecx, dword [0x1024ad60]
cmp ecx, 3
ja case.default.0x100065f5
jmp dword [ecx*4 + 0x10006d18]
mov dword [0x10213c14], 0
jmp case.default.0x100065f5
mov dword [0x10213c14], 1
jmp case.default.0x100065f5
mov dword [0x10213c14], 6
jmp case.default.0x100065f5
mov dword [0x10213c14], 3
mov ecx, ebx
call fcn.10005f10
mov ecx, dword fs:[0x2c]
mov ebx, eax
mov edx, dword [0x10213bc0]
mov dword [esp + 0x10], ebx
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1024ad30]
cmp ecx, dword [edx + 4]
jle 0x10006693
push 0x1024ad30
call fcn.10177088
add esp, 4
cmp dword [0x1024ad30], 0xffffffff
jne 0x10006693
mov ecx, dword [0x10213bf8]
push str.weapon_recoil_scale
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x30]
call eax
push 0x1024ad30
fstp st(0)
call fcn.10177037
add esp, 4
test ebx, ebx
je 0x10006d0f
mov ecx, dword [0x10249c14]
lea eax, [esp + 0x70]
push eax
call fcn.10004840
push dword [0x10213c14]
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.10004aa0
cmp byte [0x10249c08], 0
movss xmm0, dword [eax]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x68], xmm0
je 0x10006ac0
cmp byte [0x10249bdc], 0
je 0x10006ac0
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
mov dword [esp + 0x44], eax
mov ecx, 0x102453f0
lea eax, [esp + 0x44]
push eax
call fcn.10006d30
mov esi, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
add eax, ebx
push 8
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], eax
call fcn.10176cb7
lea ecx, [esp + 0x34]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [esp + 0x30], eax
cmp ebx, dword [esp + 0x24]
je 0x1000682a
mov edx, dword [esp + 0x40]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
dec ecx
mov esi, dword [esp + 0x38]
and ecx, ebx
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x5c], eax
lea eax, [edx + 1]
cmp esi, eax
ja 0x1000679d
push ecx
lea ecx, [esp + 0x34]
call fcn.100074f0
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea eax, [esi - 1]
and ecx, eax
lea eax, [esi - 1]
mov dword [esp + 0x3c], ecx
add ecx, edx
and eax, ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], eax
cmp dword [ecx + eax*4], 0
jne 0x100067f0
push 0x183b
call fcn.10176cb7
add esp, 4
test eax, eax
je 0x10006824
mov edx, dword [esp + 0x58]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x34]
mov dword [eax + edx*4], ecx
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [esi - 1]
and eax, dword [esp + 0x60]
push 0x1818
push dword [esp + 0x60]
push dword [ecx + eax*4]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x4c]
inc ebx
inc edx
add esp, 0xc
mov dword [esp + 0x40], edx
cmp ebx, dword [esp + 0x24]
je 0x1000682a
mov esi, dword [esp + 0x2c]
jmp 0x10006770
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [esp + 0x10]
add ecx, 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [0x10249ba4]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x80]
call edx
test eax, eax
je 0x1000687f
cmp dword [eax + 0xac], 0
jge 0x1000685a
xor edx, edx
jmp 0x10006862
mov edx, dword [eax + 0xb0]
add edx, eax
mov ecx, dword [0x10213c14]
mov eax, dword [edx + 8]
shl ecx, 4
add ecx, dword [0x10213c14]
lea eax, [eax + ecx*4]
add eax, edx
je 0x1000687f
mov ecx, dword [eax]
jmp 0x10006884
mov ecx, 8
mov eax, dword [esp + 0x40]
or ebx, 0xffffffff
movss xmm0, dword [0x10209518]
xor esi, esi
movss dword [esp + 0x44], xmm0
add eax, 0xfffffffe
je 0x10006aa0
lea edi, [ecx + ecx*2]
shl edi, 4
mov dword [esp + 0x58], edi
nop
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
add ecx, esi
dec eax
and ecx, eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x10249c14]
movss xmm0, dword [eax + edi + 0x24]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [eax + edi + 0x34]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [eax + edi + 0x44]
lea eax, [esp + 0x8c]
push eax
movss dword [esp + 0x64], xmm0
call fcn.10004840
movq xmm0, qword [eax]
movq qword [esp + 0x48], xmm0
movss xmm0, dword [esp + 0x48]
subss xmm0, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x50], eax
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x4c]
subss xmm0, dword [esp + 0x2c]
fstp dword [esp + 0x10]
movss xmm2, dword [esp + 0x10]
mulss xmm2, xmm2
movss dword [esp + 0x2c], xmm0
fld dword [esp + 0x2c]
fstp dword [esp + 0x10]
movss xmm1, dword [esp + 0x10]
mulss xmm1, xmm1
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x50]
addss xmm2, xmm1
xorps xmm1, xmm1
subss xmm0, dword [esp + 0x60]
sqrtss xmm1, xmm2
movss dword [esp + 0x10], xmm1
fld dword [esp + 0x10]
fstp dword [esp + 0x10]
divss xmm0, dword [esp + 0x10]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
mulss xmm0, dword [0x10209414]
mov eax, dword [esp + 0x54]
subss xmm0, dword [eax + 0xc]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x5c]
divss xmm0, dword [esp + 0x24]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
mov eax, dword [esp + 0x54]
movaps xmm1, xmm0
mulss xmm1, dword [0x10209414]
mov dword [esp + 0x20], 0
movss xmm0, dword [esp + 0x24]
comiss xmm0, dword [0x10209114]
subss xmm1, dword [eax + 0x10]
movss dword [esp + 0x1c], xmm1
jb 0x100069f7
addss xmm1, dword [0x10209468]
movss dword [esp + 0x1c], xmm1
lea ecx, [esp + 0x18]
call fcn.10113670
movss xmm1, dword [esp + 0x18]
movss xmm0, dword [esp + 0x1c]
mulss xmm1, xmm1
mov dword [esp + 0x7c], 0
mulss xmm0, xmm0
addss xmm1, xmm0
movss dword [esp + 0x10], xmm1
sqrtss xmm0, dword [esp + 0x10]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x7c]
movss xmm1, dword [esp + 0x44]
comiss xmm1, xmm0
jbe 0x10006a4b
movss dword [esp + 0x44], xmm0
mov ebx, esi
mov eax, dword [esp + 0x40]
inc esi
add eax, 0xfffffffe
cmp esi, eax
jb 0x100068b0
mov edi, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x10006aa0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
add ecx, ebx
dec eax
and ecx, eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x58]
movss xmm0, dword [eax + ecx + 0x24]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + ecx + 0x34]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [eax + ecx + 0x44]
movss dword [esp + 0x68], xmm0
lea ecx, [esp + 0x30]
call fcn.10006e60
mov eax, dword [esp + 0x30]
push 8
push eax
mov dword [esp + 0x38], 0
call fcn.10177006
add esp, 8
movss xmm1, dword [esp + 0x74]
subss xmm1, dword [esp + 0x64]
movss xmm3, dword [esp + 0x70]
subss xmm3, dword [esp + 0x28]
movss xmm2, dword [esp + 0x78]
subss xmm2, dword [esp + 0x68]
movaps xmm0, xmm1
movss dword [esp + 0x14], xmm1
mulss xmm0, xmm1
movaps xmm1, xmm3
movss dword [esp + 0x28], xmm3
mulss xmm1, xmm3
addss xmm0, xmm1
call fcn.10004710
divss xmm2, xmm0
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
mulss xmm0, dword [0x10209414]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x14]
divss xmm0, dword [esp + 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
movaps xmm1, xmm0
mov dword [esp + 0x20], 0
mulss xmm1, dword [0x10209414]
movss xmm0, dword [esp + 0x28]
comiss xmm0, dword [0x10209114]
movss dword [esp + 0x1c], xmm1
jb 0x10006b68
addss xmm1, dword [0x10209468]
movss dword [esp + 0x1c], xmm1
lea ecx, [esp + 0x18]
call fcn.10113580
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x48]
movss xmm0, dword [esi + 0xc]
lea ebx, [esi + 0xc]
subss xmm0, dword [esp + 0x18]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [ebx + 4]
subss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [ebx + 8]
subss xmm0, dword [esp + 0x20]
movss dword [esp + 0x50], xmm0
call fcn.10113580
movss xmm0, dword [ebx]
lea ecx, [esp + 0x18]
subss xmm0, dword [esp + 0x48]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [ebx + 4]
subss xmm0, dword [esp + 0x4c]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [ebx + 8]
subss xmm0, dword [esp + 0x50]
movss dword [esp + 0x20], xmm0
call fcn.10113580
mov ecx, edi
call fcn.10005500
test al, al
je 0x10006c12
push dword [0x10249bd4]
call dword [esp + 0x70]
test ax, ax
je 0x10006c12
cmp byte [0x10249bf0], 0
je 0x10006c4b
mov ecx, edi
call fcn.10005500
test al, al
je 0x10006d0f
push dword [0x10249bd4]
call dword [esp + 0x70]
test ax, ax
je 0x10006d0f
cmp byte [0x10249bf0], 0
je 0x10006d0f
test byte [esi + 0x30], 1
je 0x10006d0f
mov esi, dword [0x10249c0c]
mov edi, dword [0x10249c14]
test esi, esi
jne 0x10006c8c
mov edx, 0xe80c2f78
mov ecx, 0x101e748d
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73d1
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov esi, eax
mov dword [0x10249c0c], esi
mov ecx, dword [0x10213bf8]
push str.weapon_recoil_scale
mov edx, dword [ecx]
call dword [edx + 0x44]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0x14], ecx
mov ecx, eax
call dword [esp + 0x14]
movss xmm3, dword [esp + 0x18]
movss xmm1, dword [esp + 0x1c]
fstp dword [esp + 0x14]
movss xmm2, dword [esp + 0x14]
movaps xmm0, xmm2
mulss xmm0, dword [esi + edi]
subss xmm3, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [esi + edi + 4]
mulss xmm2, dword [esi + edi + 8]
subss xmm1, xmm0
movss dword [ebx], xmm3
movss xmm0, dword [esp + 0x20]
subss xmm0, xmm2
movss dword [ebx + 4], xmm1
movss dword [ebx + 8], xmm0
cmp byte [0x10249c00], 0
jne 0x10006d0f
mov ecx, dword [0x10213bfc]
push ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret