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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x10039040]
xor eax, esp
mov dword [esp + 0x14c], eax
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [edx + 0xb38]
mov edi, ecx
mov dword [esp + 0x38], esi
mov ecx, dword [0x10039bf4]
mov dword [esp + 0x14], edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je case.0x10004a15.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [esp + 0x14], eax
test eax, eax
je case.0x10004a15.0
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x4a4]
call edx
test eax, eax
js case.0x10004a15.0
cmp eax, 0x1d
jg case.0x10004a15.0
cmp eax, 0x1c
ja case.0x10004a15.1
movzx eax, byte [eax + 0x10005ae4]
jmp dword [eax*4 + 0x10005adc]
push dword [esp + 0x14]
lea eax, [esp + 0xbc]
push eax
call fcn.1001e9b0
mov dword [edi + 0x1a0], 0x7fffffff
mov dword [edi + 0x19c], 0xffffffff
mov dword [edi + 0x1a4], 0x4f000000
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov byte [edi + 0x1a8], 0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1b4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x10004b90
cmp eax, 0x1d
jg 0x10004b90
cmp eax, 0x11
jne 0x10004b90
mov edx, dword [0x1004a274]
mov eax, 0xa
cmp byte [0x1004a26d], 0
mov ecx, edx
cmovne ecx, eax
jmp 0x10004b98
mov edx, dword [0x1004a274]
mov ecx, edx
mov dword [0x10227478], ecx
mov eax, 0x100391a0
mov dword [0x10039158], ecx
nop dword [eax]
cmp dword [eax], ecx
jne 0x10004bb6
mov dword [eax], edx
sub eax, 4
cmp eax, 0x1003915c
jge 0x10004bb0
mov eax, dword [0x1004a288]
test eax, eax
jle 0x10004bd9
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x10004a15.0
mov eax, dword [0x10039bf0]
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], eax
cmp eax, 1
jl 0x10005a3f
mov esi, eax
mov ecx, dword [0x10039be8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp esi, eax
je 0x10005a2d
mov ecx, dword [0x10039bf4]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x10005a2d
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x10005a2d
mov ecx, dword [esp + 0x18]
call fcn.10002d90
cmp dword [eax], 0
jne 0x10005a2d
cmp byte [0x1004a269], 0
jne 0x10004c6d
mov ecx, dword [esp + 0x10]
call fcn.10002970
mov ecx, dword [esp + 0x18]
mov esi, dword [eax]
call fcn.10002970
cmp dword [eax], esi
mov esi, dword [esp + 0xc]
je 0x10005a2d
mov ecx, dword [esp + 0x18]
call fcn.10002e80
cmp dword [eax], 0x1f4
jg 0x10005a2d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x58]
shr eax, 0x18
cmp al, 0xff
jb 0x10005a2d
cmp byte [esi + 0x1004a6b4], 0
jne 0x10005a2d
movss xmm0, dword [ecx + 0x29c]
subss xmm0, dword [0x1003b908]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [ecx + 0x2a0]
subss xmm0, dword [0x1003b90c]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [ecx + 0x2a4]
lea ecx, [esp + 0x60]
subss xmm0, dword [0x1003b910]
movss dword [esp + 0x68], xmm0
call fcn.10002930
comiss xmm0, dword [esp + 0xcc]
ja 0x10005a2d
push esi
call fcn.1002b8b0
test al, al
je 0x10004d0e
mov dword [0x10227478], 0xc
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [0x1004a270], ecx
jne 0x10004d79
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
call edx
lea ecx, [esp + 0x6c]
movss xmm0, dword [eax]
subss xmm0, dword [esi]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 4]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
movss dword [esp + 0x74], xmm0
call fcn.10002930
mov esi, dword [esp + 0xc]
cvttss2si ecx, xmm0
mov dword [esp + 0x24], ecx
cmp dword [0x1004a270], 1
jne 0x10004d91
mov ecx, dword [esp + 0x18]
call fcn.10002e80
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov eax, dword [0x1004a270]
cmp eax, 2
je 0x10004da0
cmp eax, 3
jne 0x10004dbd
mov ecx, dword [esp + 0x18]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
xor ecx, ecx
cmp eax, dword [0x100396f8]
setle cl
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi + 0x1a0]
jg 0x10005a2d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x10004ff2
cmp eax, 0x1d
jg 0x10004ff2
cmp eax, 0x11
jne 0x10004ff2
push dword [esp + 0x18]
mov ecx, edi
push dword [0x10227478]
call fcn.100032e0
mov ecx, dword [0x10039bf4]
mov esi, dword [esp + 0x10]
mov eax, dword [ecx]
push dword [esi + 0xb38]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x10005a29
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x10005a29
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], eax
lea eax, [edi + 0x24]
push eax
push 0x1003b908
mov dword [esp + 0x80], vtable.Valve::TraceFilterSkipTwoEntities.0
mov dword [esp + 0x88], 0
call fcn.10002f70
mov ecx, dword [0x10039bec]
lea edx, [esp + 0xf8]
push edx
lea edx, [esp + 0x7c]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x8c]
push 0x46004003
push edx
mov eax, dword [eax + 0x10]
call eax
movss xmm0, dword [esp + 0x124]
ucomiss xmm0, dword [0x100353b0]
lahf
test ah, 0x44
jp 0x10005a29
movss xmm4, dword [edi + 0x24]
subss xmm4, dword [0x1003b908]
push dword [esp + 0x14]
push esi
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [edi + 0x28]
subss xmm3, dword [0x1003b90c]
mulss xmm0, xmm4
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [edi + 0x2c]
subss xmm2, dword [0x1003b910]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x100352cc]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10035408]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm4, xmm1
mulss xmm0, xmm3
mulss xmm1, xmm2
movss dword [edi], xmm4
movss dword [edi + 4], xmm0
movss dword [edi + 8], xmm1
call fcn.1002a940
test al, al
je 0x10005a15
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x18], xmm2
movsd qword [esp + 0x58], xmm1
test ah, 0x44
jp 0x10004f89
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10004f89
xorps xmm1, xmm1
jmp 0x100059f1
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x50], xmm0
jbe 0x10004fb9
addsd xmm0, qword [0x10035448]
movsd qword [esp + 0x50], xmm0
movsd xmm1, qword [esp + 0x58]
movsd xmm2, qword [esp + 0x18]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x28]
xorps xmm0, xmmword [0x100355a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
movsd xmm1, qword [esp + 0x50]
jmp 0x100059e9
cmp byte [0x1004a267], 0
je 0x10005698
cmp byte [0x1004a268], 0
je 0x100053b9
mov eax, 0x100391a0
mov dword [esp + 0x50], eax
push dword [esp + 0x18]
mov ecx, edi
push dword [eax]
call fcn.100032e0
mov dword [esp + 0x58], 8
lea esi, [edi + 0x84]
movss xmm4, dword [esi]
subss xmm4, dword [0x1003b908]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [esi + 4]
subss xmm3, dword [0x1003b90c]
mulss xmm0, xmm4
push esi
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [esi + 8]
subss xmm2, dword [0x1003b910]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x100352cc]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10035408]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm4, xmm0
mulss xmm3, xmm0
mulss xmm2, xmm0
movss dword [edi], xmm4
movss dword [edi + 4], xmm3
movss dword [edi + 8], xmm2
call fcn.10003040
test al, al
je 0x100051c9
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1002a940
test al, al
je 0x100051b5
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [esp + 0x38], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x48], xmm2
test ah, 0x44
jp 0x10005128
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005128
xorps xmm1, xmm1
jmp 0x10005191
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x10005155
addsd xmm0, qword [0x10035448]
movsd qword [esp + 0x28], xmm0
movsd xmm1, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x48]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x38]
xorps xmm0, xmmword [0x100355a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x34]
cvtsd2ss xmm0, xmm0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov dword [eax + 0x14], 0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 0xc]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1a0], eax
mov eax, dword [esp + 0x58]
sub esi, 0xc
dec eax
mov dword [esp + 0x58], eax
test eax, eax
jg 0x10005030
mov eax, dword [esp + 0x50]
sub eax, 4
mov dword [esp + 0x50], eax
cmp eax, 0x10039158
jge 0x10005015
mov esi, 0x100391a0
push dword [esp + 0x18]
mov ecx, edi
push dword [esi]
call fcn.100032e0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x1003b908]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003b90c]
mulss xmm0, xmm4
push eax
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [eax + 8]
subss xmm2, dword [0x1003b910]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x100352cc]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10035408]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm4, xmm1
mulss xmm0, xmm3
mulss xmm1, xmm2
movss dword [edi], xmm4
movss dword [edi + 4], xmm0
movss dword [edi + 8], xmm1
call fcn.10003040
test al, al
je 0x100053a5
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1002a940
test al, al
je 0x10005391
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [esp + 0x48], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm2
test ah, 0x44
jp 0x10005304
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005304
xorps xmm1, xmm1
jmp 0x1000536d
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x10005331
addsd xmm0, qword [0x10035448]
movsd qword [esp + 0x28], xmm0
movsd xmm1, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x38]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x48]
xorps xmm0, xmmword [0x100355a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x34]
cvtsd2ss xmm0, xmm0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov dword [eax + 0x14], 0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 0xc]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1a0], eax
sub esi, 4
cmp esi, 0x10039158
jge 0x100051f8
jmp 0x10005a29
push dword [esp + 0x18]
mov ecx, edi
push dword [0x10039158]
call fcn.100032e0
mov dword [esp + 0x50], 8
lea esi, [edi + 0x84]
nop dword [eax + eax]
movss xmm4, dword [esi]
subss xmm4, dword [0x1003b908]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [esi + 4]
subss xmm3, dword [0x1003b90c]
mulss xmm0, xmm4
push esi
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [esi + 8]
subss xmm2, dword [0x1003b910]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x100352cc]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10035408]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm4, xmm0
mulss xmm3, xmm0
mulss xmm2, xmm0
movss dword [edi], xmm4
movss dword [edi + 4], xmm3
movss dword [edi + 8], xmm2
call fcn.10003040
test al, al
je 0x10005579
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1002a940
test al, al
je 0x10005565
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [esp + 0x48], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm2
test ah, 0x44
jp 0x100054d8
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x100054d8
xorps xmm1, xmm1
jmp 0x10005541
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x10005505
addsd xmm0, qword [0x10035448]
movsd qword [esp + 0x28], xmm0
movsd xmm1, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x38]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x48]
xorps xmm0, xmmword [0x100355a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x34]
cvtsd2ss xmm0, xmm0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov dword [eax + 0x14], 0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 0xc]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1a0], eax
mov eax, dword [esp + 0x50]
sub esi, 0xc
dec eax
mov dword [esp + 0x50], eax
test eax, eax
jg 0x100053e0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x1003b908]
mov esi, dword [esp + 0x10]
push esi
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003b90c]
mulss xmm0, xmm4
push eax
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [eax + 8]
subss xmm2, dword [0x1003b910]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x100352cc]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10035408]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm0, xmm4
movss dword [edi], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm3
mulss xmm1, xmm2
movss dword [edi + 4], xmm0
movss dword [edi + 8], xmm1
call fcn.10003040
test al, al
je 0x10005a29
push dword [esp + 0x14]
push esi
call fcn.1002a940
test al, al
je 0x10005a15
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [esp + 0x48], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm2
test ah, 0x44
jp 0x10005690
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005690
xorps xmm1, xmm1
jmp 0x100059f1
movaps xmm0, xmm2
jmp 0x1000598b
cmp byte [0x1004a268], 0
je 0x10005874
mov esi, 0x100391a0
nop word [eax + eax]
push dword [esp + 0x18]
mov ecx, edi
push dword [esi]
call fcn.100032e0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x1003b908]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm1, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003b90c]
mulss xmm1, xmm4
push eax
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm0, xmm3
movss xmm2, dword [eax + 8]
subss xmm2, dword [0x1003b910]
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x100352cc]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10035408]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm4, xmm1
mulss xmm0, xmm3
mulss xmm1, xmm2
movss dword [edi], xmm4
movss dword [edi + 4], xmm0
movss dword [edi + 8], xmm1
call fcn.10003040
test al, al
je 0x10005860
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1002a940
test al, al
je 0x1000584c
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x48], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x38], xmm2
movsd qword [esp + 0x40], xmm1
test ah, 0x44
jp 0x100057bc
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x100057bc
xorps xmm1, xmm1
jmp 0x10005828
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x100057ec
addsd xmm0, qword [0x10035448]
movsd qword [esp + 0x28], xmm0
movsd xmm1, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x38]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x48]
xorps xmm0, xmmword [0x100355a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x34]
cvtsd2ss xmm0, xmm0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov dword [eax + 0x14], 0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 0xc]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1a0], eax
sub esi, 4
cmp esi, 0x10039158
jge 0x100056b0
jmp 0x10005a29
push dword [esp + 0x18]
mov ecx, edi
push dword [0x10039158]
call fcn.100032e0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x1003b908]
mov esi, dword [esp + 0x10]
push esi
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm1, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003b90c]
mulss xmm1, xmm4
push eax
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm0, xmm3
movss xmm2, dword [eax + 8]
subss xmm2, dword [0x1003b910]
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x100352cc]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10035408]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm0, xmm4
movss dword [edi], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm3
mulss xmm1, xmm2
movss dword [edi + 4], xmm0
movss dword [edi + 8], xmm1
call fcn.10003040
test al, al
je 0x10005a29
push dword [esp + 0x14]
push esi
call fcn.1002a940
test al, al
je 0x10005a15
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x48], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x38], xmm2
movsd qword [esp + 0x40], xmm1
test ah, 0x44
jp 0x10005985
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10005985
xorps xmm1, xmm1
jmp 0x100059f1
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10035438]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x100059b5
addsd xmm0, qword [0x10035448]
movsd qword [esp + 0x28], xmm0
movsd xmm2, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x48]
xorps xmm0, xmmword [0x100355a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
movsd xmm1, qword [esp + 0x28]
mulsd xmm0, qword [0x10035438]
mov eax, dword [esp + 0x34]
cvtsd2ss xmm0, xmm0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov dword [eax + 0x14], 0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 0xc]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1a0], eax
mov esi, dword [esp + 0xc]
dec esi
mov dword [esp + 0xc], esi
cmp esi, 1
jge 0x10004bf0
mov esi, dword [esp + 0x34]
mov al, byte [edi + 0x1a8]
mov cl, al
test al, al
je 0x10005a67
cmp dword [edi + 0x19c], 0xffffffff
je 0x10005a67
cmp byte [0x1004a265], 0
je 0x10005a67
or dword [esi + 0x24], 1
mov cl, byte [edi + 0x1a8]
cmp dword [0x1004a270], 3
jne 0x10005a7b
mov eax, dword [edi + 0x19c]
mov dword [0x100396f8], eax
test cl, cl
je 0x10005a95
cmp dword [0x1004a270], 3
je 0x10005aa9
mov eax, dword [edi + 0x19c]
mov dword [0x100396f8], eax
jmp 0x10005aa9
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x6fc], 0
jg 0x10005aa9
or dword [esi + 0x24], 0x2000
cmp byte [0x1004a26a], 0
jne case.0x10004a15.0
mov ecx, dword [0x10039be8]
lea eax, [esi + 0xc]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [esp + 0x154]
pop edi
pop esi
xor ecx, esp
call fcn.1002ba3e
mov esp, ebp
pop ebp
ret 8