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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x1003800c]
xor eax, esp
mov dword [esp + 0x144], 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 + 0x30], esi
mov ecx, dword [0x10038dac]
mov dword [esp + 0x10], edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je case.0x10004ad5.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [esp + 0x10], eax
test eax, eax
je case.0x10004ad5.0
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x4a4]
call edx
test eax, eax
js case.0x10004ad5.0
cmp eax, 0x1d
jg case.0x10004ad5.0
cmp eax, 0x1c
ja case.0x10004ad5.1
movzx eax, byte [eax + 0x10005c84]
jmp dword [eax*4 + 0x10005c7c]
push dword [esp + 0x10]
lea eax, [esp + 0xb4]
push eax
call fcn.1001e240
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 + 0x10]
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 + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x10004c50
cmp eax, 0x1d
jg 0x10004c50
cmp eax, 0x11
jne 0x10004c50
mov edx, dword [0x10049214]
mov eax, 0xa
cmp byte [0x1004920d], 0
mov ecx, edx
cmovne ecx, eax
jmp 0x10004c58
mov edx, dword [0x10049214]
mov ecx, edx
mov dword [0x10226418], ecx
mov eax, 0x10038120
mov dword [0x100380d8], ecx
nop dword [eax]
cmp dword [eax], ecx
jne 0x10004c76
mov dword [eax], edx
sub eax, 4
cmp eax, 0x100380dc
jge 0x10004c70
mov eax, dword [0x10049228]
test eax, eax
jle 0x10004c99
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x10004ad5.0
mov eax, dword [0x10038da8]
mov eax, dword [eax + 0x14]
mov dword [esp + 8], eax
cmp eax, 1
jl 0x10005565
mov esi, eax
mov ecx, dword [0x10038da0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp esi, eax
je 0x10005553
mov ecx, dword [0x10038dac]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x10005553
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x10005553
mov ecx, dword [esp + 0x18]
call fcn.10002df0
cmp dword [eax], 0
jne 0x10005553
cmp byte [0x10049209], 0
jne 0x10004d2d
mov ecx, dword [esp + 0xc]
call fcn.100029d0
mov ecx, dword [esp + 0x18]
mov esi, dword [eax]
call fcn.100029d0
cmp dword [eax], esi
mov esi, dword [esp + 8]
je 0x10005553
mov ecx, dword [esp + 0x18]
call fcn.10002ee0
cmp dword [eax], 0x1f4
jg 0x10005553
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x58]
shr eax, 0x18
cmp al, 0xff
jb 0x10005553
cmp byte [esi + 0x10049654], 0
jne 0x10005553
movss xmm0, dword [ecx + 0x29c]
subss xmm0, dword [0x1003a8a0]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [ecx + 0x2a0]
subss xmm0, dword [0x1003a8a4]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [ecx + 0x2a4]
lea ecx, [esp + 0x58]
subss xmm0, dword [0x1003a8a8]
movss dword [esp + 0x60], xmm0
call fcn.10002950
comiss xmm0, dword [esp + 0xc4]
ja 0x10005553
push dword [esp + 8]
call fcn.1002aff0
mov ecx, dword [0x10226418]
test al, al
mov eax, 0xc
cmovne ecx, eax
mov dword [0x10226418], ecx
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [0x10049210], ecx
jne 0x10004e40
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
call edx
lea ecx, [esp + 0x64]
movss xmm0, dword [eax]
subss xmm0, dword [esi]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 4]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
movss dword [esp + 0x6c], xmm0
call fcn.10002950
cvttss2si ecx, xmm0
mov dword [esp + 0x14], ecx
cmp dword [0x10049210], 1
mov esi, dword [esp + 0x18]
jne 0x10004e5a
mov ecx, esi
call fcn.10002ee0
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov eax, dword [0x10049210]
cmp eax, 2
je 0x10004e69
cmp eax, 3
jne 0x10004e83
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x24]
call eax
xor ecx, ecx
cmp eax, dword [0x10038778]
setle cl
mov dword [esp + 0x14], ecx
cmp ecx, dword [edi + 0x1a0]
jg 0x1000554f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x1000517d
cmp eax, 0x1d
jg 0x1000517d
cmp eax, 0x11
jne 0x1000517d
push esi
push dword [0x10226418]
mov ecx, edi
call fcn.100032a0
mov ecx, dword [0x10038dac]
mov esi, dword [esp + 0xc]
mov eax, dword [ecx]
push dword [esi + 0xb38]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1000554f
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x1000554f
movss xmm2, dword [edi + 0x24]
movss xmm3, dword [0x1003a8a0]
movss xmm1, dword [edi + 0x28]
subss xmm2, xmm3
movss xmm4, dword [0x1003a8a4]
movss xmm0, dword [edi + 0x2c]
subss xmm1, xmm4
movss xmm5, dword [0x1003a8a8]
mov eax, dword [esp + 0x18]
subss xmm0, xmm5
movss dword [esp + 0x88], xmm2
mulss xmm2, xmm2
mov dword [esp + 0x74], eax
movss dword [esp + 0x8c], xmm1
mulss xmm1, xmm1
mov dword [esp + 0x70], vtable.Valve::TraceFilterSkipTwoEntities.0
movss dword [esp + 0x90], xmm0
mulss xmm0, xmm0
mov dword [esp + 0x78], 0
addss xmm1, xmm2
mov byte [esp + 0xad], 1
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x10004f8b
mov byte [esp + 0xad], 0
mov ecx, dword [0x10038da4]
lea edx, [esp + 0xf0]
push edx
mov dword [esp + 0xac], 0
lea edx, [esp + 0x74]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov byte [esp + 0xb0], 1
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
movss dword [esp + 0x80], xmm3
movss dword [esp + 0x84], xmm4
movss dword [esp + 0x88], xmm5
mov eax, dword [ecx]
push edx
push 0x46004003
lea edx, [esp + 0x88]
mov eax, dword [eax + 0x10]
push edx
call eax
movss xmm0, dword [esp + 0x11c]
ucomiss xmm0, dword [0x10034458]
lahf
test ah, 0x44
jp 0x1000554f
movss xmm4, dword [edi + 0x24]
subss xmm4, dword [0x1003a8a0]
push dword [esp + 0x10]
push esi
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [edi + 0x28]
subss xmm3, dword [0x1003a8a4]
mulss xmm0, xmm4
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [edi + 0x2c]
subss xmm2, dword [0x1003a8a8]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10034374]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100344b0]
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.10029fc0
test al, al
je 0x10005927
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [esp + 0x20], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x50], xmm1
movsd qword [esp + 0x18], xmm2
test ah, 0x44
jp 0x10005117
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005117
xorps xmm1, xmm1
jmp 0x10005903
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x48], xmm0
jbe 0x10005144
addsd xmm0, qword [0x100344f0]
movsd qword [esp + 0x48], xmm0
movsd xmm1, qword [esp + 0x50]
movsd xmm2, qword [esp + 0x18]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x20]
xorps xmm0, xmmword [0x10034640]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
movsd xmm1, qword [esp + 0x48]
jmp 0x100058fb
cmp byte [0x10049207], 0
je 0x10005940
cmp byte [0x10049208], 0
je 0x100055c6
mov eax, 0x10038120
mov dword [esp + 0x48], eax
jmp 0x100051a6
mov esi, dword [esp + 0x18]
push esi
push dword [eax]
mov ecx, edi
call fcn.100032a0
lea eax, [edi + 0x84]
mov esi, 8
mov dword [esp + 0x50], eax
nop
movss xmm4, dword [eax]
subss xmm4, dword [0x1003a8a0]
push dword [esp + 0xc]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm1, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003a8a4]
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 [0x1003a8a8]
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10034374]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100344b0]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm4, xmm1
mulss xmm0, xmm3
mulss xmm2, xmm1
movss dword [edi], xmm4
movss dword [edi + 4], xmm0
movss dword [edi + 8], xmm2
call fcn.10003000
test al, al
je 0x1000535f
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10029fc0
test al, al
je 0x1000534b
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x30], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x40], xmm2
movsd qword [esp + 0x38], xmm1
test ah, 0x44
jp 0x100052bb
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x100052bb
xorps xmm1, xmm1
jmp 0x10005327
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x20], xmm0
jbe 0x100052eb
addsd xmm0, qword [0x100344f0]
movsd qword [esp + 0x20], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x40]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x30]
xorps xmm0, xmmword [0x10034640]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
movsd xmm1, qword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 8]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1a0], eax
mov eax, dword [esp + 0x50]
dec esi
sub eax, 0xc
mov dword [esp + 0x50], eax
test esi, esi
jg 0x100051c0
mov eax, dword [esp + 0x48]
sub eax, 4
mov dword [esp + 0x48], eax
cmp eax, 0x100380d8
jge 0x100051a2
mov esi, 0x10038120
nop
push dword [esp + 0x18]
mov ecx, edi
push dword [esi]
call fcn.100032a0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x1003a8a0]
push dword [esp + 0xc]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003a8a4]
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 [0x1003a8a8]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10034374]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100344b0]
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.10003000
test al, al
je 0x10005540
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10029fc0
test al, al
je 0x1000552c
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 0x38], xmm1
test ah, 0x44
jp 0x1000549c
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1000549c
xorps xmm1, xmm1
jmp 0x10005508
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x20], xmm0
jbe 0x100054cc
addsd xmm0, qword [0x100344f0]
movsd qword [esp + 0x20], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x30]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x40]
xorps xmm0, xmmword [0x10034640]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
movsd xmm1, qword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 8]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1a0], eax
sub esi, 4
cmp esi, 0x100380d8
jge 0x10005390
mov esi, dword [esp + 8]
dec esi
mov dword [esp + 8], esi
cmp esi, 1
jge 0x10004cb0
mov esi, dword [esp + 0x2c]
mov al, byte [edi + 0x1a8]
mov cl, al
test al, al
je 0x1000558d
cmp dword [edi + 0x19c], 0xffffffff
je 0x1000558d
cmp byte [0x10049205], 0
je 0x1000558d
or dword [esi + 0x24], 1
mov cl, byte [edi + 0x1a8]
cmp dword [0x10049210], 3
jne 0x100055a1
mov eax, dword [edi + 0x19c]
mov dword [0x10038778], eax
test cl, cl
je 0x10005c35
cmp dword [0x10049210], 3
je 0x10005c49
mov eax, dword [edi + 0x19c]
mov dword [0x10038778], eax
jmp 0x10005c49
push esi
push dword [0x100380d8]
mov ecx, edi
call fcn.100032a0
lea eax, [edi + 0x84]
mov esi, 8
mov dword [esp + 0x48], eax
nop dword [eax]
nop word [eax + eax]
movss xmm4, dword [eax]
subss xmm4, dword [0x1003a8a0]
push dword [esp + 0xc]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm1, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003a8a4]
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 [0x1003a8a8]
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10034374]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100344b0]
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.10003000
test al, al
je 0x1000578c
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10029fc0
test al, al
je 0x10005778
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x38], xmm1
movsd qword [esp + 0x30], xmm2
test ah, 0x44
jp 0x100056eb
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x100056eb
xorps xmm1, xmm1
jmp 0x10005754
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x20], xmm0
jbe 0x10005718
addsd xmm0, qword [0x100344f0]
movsd qword [esp + 0x20], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x30]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x40]
xorps xmm0, xmmword [0x10034640]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
movsd xmm1, qword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 8]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1a0], eax
mov eax, dword [esp + 0x48]
dec esi
sub eax, 0xc
mov dword [esp + 0x48], eax
test esi, esi
jg 0x100055f0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x1003a8a0]
mov esi, dword [esp + 0xc]
push esi
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003a8a4]
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 [0x1003a8a8]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10034374]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100344b0]
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.10003000
test al, al
je 0x1000554f
push dword [esp + 0x10]
push esi
call fcn.10029fc0
test al, al
je 0x10005927
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x38], xmm1
movsd qword [esp + 0x30], xmm2
test ah, 0x44
jp 0x1000589a
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x1000589a
xorps xmm1, xmm1
jmp 0x10005903
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x20], xmm0
jbe 0x100058c7
addsd xmm0, qword [0x100344f0]
movsd qword [esp + 0x20], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x30]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x40]
xorps xmm0, xmmword [0x10034640]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
movsd xmm1, qword [esp + 0x20]
mulsd xmm0, qword [0x100344e0]
mov eax, dword [esp + 0x2c]
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 esi, dword [esp + 8]
mov eax, dword [esp + 0x14]
mov dword [edi + 0x19c], esi
mov dword [edi + 0x1a0], eax
jmp 0x10005553
cmp byte [0x10049208], 0
je 0x10005b19
mov esi, 0x10038120
push dword [esp + 0x18]
mov ecx, edi
push dword [esi]
call fcn.100032a0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x1003a8a0]
push dword [esp + 0xc]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm1, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003a8a4]
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 [0x1003a8a8]
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10034374]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100344b0]
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.10003000
test al, al
je 0x10005b05
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10029fc0
test al, al
je 0x10005af1
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 0x38], xmm1
test ah, 0x44
jp 0x10005a61
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10005a61
xorps xmm1, xmm1
jmp 0x10005acd
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x20], xmm0
jbe 0x10005a91
addsd xmm0, qword [0x100344f0]
movsd qword [esp + 0x20], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x30]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x40]
xorps xmm0, xmmword [0x10034640]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x100344e0]
movsd xmm1, qword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 8]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1a0], eax
sub esi, 4
cmp esi, 0x100380d8
jge 0x10005952
jmp 0x1000554f
push esi
push dword [0x100380d8]
mov ecx, edi
call fcn.100032a0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x1003a8a0]
mov esi, dword [esp + 0xc]
push esi
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003a8a4]
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 [0x1003a8a8]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10034374]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100344b0]
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.10003000
test al, al
je 0x1000554f
push dword [esp + 0x10]
push esi
call fcn.10029fc0
test al, al
je 0x10005927
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 0x38], xmm1
test ah, 0x44
jp 0x10005c2a
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10005c2a
xorps xmm1, xmm1
jmp 0x10005903
movaps xmm0, xmm1
movaps xmm1, xmm2
jmp 0x1000589d
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x6fc], 0
jg 0x10005c49
or dword [esi + 0x24], 0x2000
cmp byte [0x1004920a], 0
jne case.0x10004ad5.0
mov ecx, dword [0x10038da0]
lea eax, [esi + 0xc]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
call fcn.1002b17d
mov esp, ebp
pop ebp
ret 8