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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b0
mov eax, dword [0x1006200c]
xor eax, esp
mov dword [esp + 0x1ac], 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 + 0x28], esi
mov ecx, dword [0x100c9394]
mov dword [esp + 0x10], edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je case.0x10004ea5.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [esp + 0x1c], eax
test eax, eax
je case.0x10004ea5.0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4a4]
mov ecx, eax
call edx
test eax, eax
js case.0x10004ea5.0
cmp eax, 0x1d
jg case.0x10004ea5.0
cmp eax, 0x1c
ja case.0x10004ea5.1
movzx eax, byte [eax + 0x100060a8]
jmp dword [eax*4 + 0x100060a0]
push dword [esp + 0x1c]
lea eax, [esp + 0x11c]
push eax
call fcn.100259e0
mov dword [edi + 0xa0], 0x7fffffff
mov dword [edi + 0x9c], 0xffffffff
mov dword [edi + 0xa4], 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 + 0x1c]
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 + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
mov edx, dword [0x100e4f88]
test eax, eax
js 0x10005020
cmp eax, 0x1d
jg 0x10005020
cmp eax, 0x11
jne 0x10005020
cmp byte [0x100e4f7d], 0
mov ecx, edx
mov eax, 0xa
cmovne ecx, eax
jmp 0x10005039
cmp byte [0x100e4f7f], 0
je 0x10005037
cmp byte [0x100c917d], 0
mov ecx, 9
jne 0x10005039
mov ecx, edx
mov dword [0x102ca5f8], ecx
mov eax, 0x10062120
mov dword [0x100620d8], ecx
nop word [eax + eax]
cmp dword [eax], ecx
jne 0x10005056
mov dword [eax], edx
sub eax, 4
cmp eax, 0x100620dc
jge 0x10005050
mov eax, dword [0x100e4f9c]
test eax, eax
jle 0x10005079
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x10004ea5.0
mov eax, dword [0x100c9390]
mov eax, dword [eax + 0x14]
mov dword [esp + 8], eax
cmp eax, 1
jl 0x100058bd
mov esi, eax
mov ecx, dword [0x100c9388]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp esi, eax
je 0x100058ab
mov ecx, dword [0x100c9394]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x10], eax
test eax, eax
je 0x100058ab
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x100058ab
mov ecx, dword [esp + 0x10]
call fcn.10003180
cmp dword [eax], 0
jne 0x100058ab
cmp byte [0x100e4f79], 0
jne 0x1000510d
mov ecx, dword [esp + 0xc]
call fcn.10002d60
mov ecx, dword [esp + 0x10]
mov esi, dword [eax]
call fcn.10002d60
cmp dword [eax], esi
mov esi, dword [esp + 8]
je 0x100058ab
mov ecx, dword [esp + 0x10]
call fcn.10003270
cmp dword [eax], 0x1f4
jg 0x100058ab
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x58]
shr eax, 0x18
cmp al, 0xff
jb 0x100058ab
cmp byte [esi + 0x100e53f8], 0
jne 0x100058ab
movss xmm0, dword [ecx + 0x29c]
subss xmm0, dword [0x100ca10c]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [ecx + 0x2a0]
subss xmm0, dword [0x100ca110]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [ecx + 0x2a4]
lea ecx, [esp + 0x58]
subss xmm0, dword [0x100ca114]
movss dword [esp + 0x60], xmm0
call fcn.10002d20
comiss xmm0, dword [esp + 0x12c]
ja 0x100058ab
push dword [esp + 8]
call fcn.10032730
mov ecx, dword [0x102ca5f8]
test al, al
mov eax, 0xc
cmovne ecx, eax
mov dword [0x102ca5f8], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp dword [0x100e4f84], ecx
jne 0x10005220
mov ecx, dword [esp + 0xc]
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
movss xmm0, dword [esi]
lea ecx, [esp + 0x64]
subss xmm0, dword [eax]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, dword [eax + 4]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esi + 8]
subss xmm0, dword [eax + 8]
movss dword [esp + 0x6c], xmm0
call fcn.10002d20
cvttss2si ecx, xmm0
mov dword [esp + 0x20], ecx
cmp dword [0x100e4f84], 1
mov esi, dword [esp + 0x10]
jne 0x1000523a
mov ecx, esi
call fcn.10003270
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov eax, dword [0x100e4f84]
cmp eax, 2
je 0x10005249
cmp eax, 3
jne 0x10005263
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x24]
call eax
xor ecx, ecx
cmp eax, dword [0x100c9178]
setle cl
mov dword [esp + 0x20], ecx
cmp ecx, dword [edi + 0xa0]
jg 0x100058a7
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x100054ca
cmp eax, 0x1d
jg 0x100054ca
cmp eax, 0x11
jne 0x100054ca
push esi
push dword [0x102ca5f8]
lea eax, [esp + 0x8c]
mov ecx, edi
push eax
call fcn.10003750
mov ecx, dword [0x100c9394]
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 0x100058a7
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x100058a7
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xe4]
mov dword [esp + 0x7c], eax
lea eax, [edi + 0x24]
push eax
push 0x100ca10c
mov dword [esp + 0x78], vtable.Valve::TraceFilterSkipTwoEntities.0
mov dword [esp + 0x80], 0x1005df85
mov dword [esp + 0x88], 0
call fcn.10003360
mov ecx, dword [0x100c938c]
lea edx, [esp + 0x158]
push edx
lea edx, [esp + 0x74]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0xec]
push 0x46004003
push edx
mov eax, dword [eax + 0x10]
call eax
movss xmm0, dword [esp + 0x184]
ucomiss xmm0, dword [0x1005e420]
lahf
test ah, 0x44
jp 0x100058a7
movss xmm4, dword [edi + 0x24]
subss xmm4, dword [0x100ca10c]
push dword [esp + 0x1c]
push esi
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [edi + 0x28]
subss xmm3, dword [0x100ca110]
mulss xmm0, xmm4
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [edi + 0x2c]
subss xmm2, dword [0x100ca114]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x1005e324]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x1005e4a8]
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.10031640
test al, al
je 0x10005d28
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 + 0x10], xmm2
movsd qword [esp + 0x48], xmm1
test ah, 0x44
jp 0x1000543c
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1000543c
xorps xmm1, xmm1
jmp 0x100054a8
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x30], xmm0
jbe 0x1000546c
addsd xmm0, qword [0x1005e4e8]
movsd qword [esp + 0x30], xmm0
movsd xmm1, qword [esp + 0x48]
movsd xmm2, qword [esp + 0x10]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x28]
xorps xmm0, xmmword [0x1005e6a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
movsd xmm1, qword [esp + 0x30]
mov eax, dword [esp + 0x24]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
jmp 0x10005d21
cmp byte [0x100e4f77], 0
je 0x10005d41
cmp byte [0x100e4f78], 0
je 0x1000591e
mov eax, 0x10062120
mov dword [esp + 0x48], eax
jmp 0x100054f4
mov esi, dword [esp + 0x10]
push esi
push dword [eax]
lea eax, [esp + 0x98]
mov ecx, edi
push eax
call fcn.10003750
mov esi, 0x84
nop dword [eax + eax]
movss xmm4, dword [edi + esi]
lea eax, [edi + esi]
subss xmm4, dword [0x100ca10c]
push dword [esp + 0xc]
push dword [esp + 0x14]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100ca110]
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 [0x100ca114]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x1005e324]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x1005e4a8]
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.10003480
test al, al
je 0x100056b6
push dword [esp + 0x1c]
push dword [esp + 0x10]
call fcn.10031640
test al, al
je 0x100056a2
movss xmm2, dword [edi + 8]
movss xmm0, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm2, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm2
xorps xmm2, xmm2
ucomisd xmm0, xmm2
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
test ah, 0x44
jp 0x10005612
ucomisd xmm1, xmm2
lahf
test ah, 0x44
jp 0x10005612
xorps xmm1, xmm1
jmp 0x1000567b
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x30], xmm0
jbe 0x1000563c
addsd xmm0, qword [0x1005e4e8]
movsd qword [esp + 0x30], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x40]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x28]
xorps xmm0, xmmword [0x1005e6a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
movsd xmm1, qword [esp + 0x30]
movaps xmm2, xmm0
mulsd xmm2, qword [0x1005e4d8]
mov eax, dword [esp + 0x24]
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm2
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0xa8], 1
mov eax, dword [esp + 8]
mov dword [edi + 0x9c], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0xa0], eax
sub esi, 0xc
cmp esi, 0x24
jg 0x10005510
mov eax, dword [esp + 0x48]
sub eax, 4
mov dword [esp + 0x48], eax
cmp eax, 0x100620d8
jge 0x100054f0
mov esi, 0x10062120
nop dword [eax]
push dword [esp + 0x10]
lea eax, [esp + 0xa0]
mov ecx, edi
push dword [esi]
push eax
call fcn.10003750
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x100ca10c]
push dword [esp + 0xc]
push dword [esp + 0x14]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100ca110]
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 [0x100ca114]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x1005e324]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x1005e4a8]
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.10003480
test al, al
je 0x10005898
push dword [esp + 0x1c]
push dword [esp + 0x10]
call fcn.10031640
test al, al
je 0x10005884
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 + 0x28], xmm2
test ah, 0x44
jp 0x100057f7
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x100057f7
xorps xmm1, xmm1
jmp 0x10005860
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x30], xmm0
jbe 0x10005824
addsd xmm0, qword [0x1005e4e8]
movsd qword [esp + 0x30], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x28]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x40]
xorps xmm0, xmmword [0x1005e6a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
movsd xmm1, qword [esp + 0x30]
mov eax, dword [esp + 0x24]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0xa8], 1
mov eax, dword [esp + 8]
mov dword [edi + 0x9c], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0xa0], eax
sub esi, 4
cmp esi, 0x100620d8
jge 0x100056e0
mov esi, dword [esp + 8]
dec esi
mov dword [esp + 8], esi
cmp esi, 1
jge 0x10005090
mov esi, dword [esp + 0x24]
mov al, byte [edi + 0xa8]
mov cl, al
test al, al
je 0x100058e5
cmp dword [edi + 0x9c], 0xffffffff
je 0x100058e5
cmp byte [0x100e4f75], 0
je 0x100058e5
or dword [esi + 0x24], 1
mov cl, byte [edi + 0xa8]
cmp dword [0x100e4f84], 3
jne 0x100058f9
mov eax, dword [edi + 0x9c]
mov dword [0x100c9178], eax
test cl, cl
je 0x1000605c
cmp dword [0x100e4f84], 3
je 0x10006070
mov eax, dword [edi + 0x9c]
mov dword [0x100c9178], eax
jmp 0x10006070
call fcn.100060e0
cmp byte [0x100e5134], 0
je 0x100059b3
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [0x100c936c]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
call edx
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.10002fa0
mov ecx, dword [eax]
lea edx, [ecx + ecx*2]
mov ecx, dword [esi + 0xb0]
lea edx, [ecx + edx*4]
mov ecx, dword [0x102ca5f8]
add edx, esi
shl ecx, 4
add ecx, dword [0x102ca5f8]
mov eax, dword [edx + 8]
lea esi, [eax + ecx*4]
add esi, edx
call fcn.100060e0
lea ecx, [esi + 0x14]
mov esi, dword [esp + 0x24]
push ecx
push esi
push dword [esp + 0x18]
mov ecx, eax
call fcn.100241a0
test al, al
jne 0x100059cd
push dword [esp + 0x10]
lea eax, [esp + 0xac]
mov ecx, edi
push dword [0x100620d8]
push eax
call fcn.10003750
jmp 0x100059cd
push esi
push dword [0x100620d8]
lea eax, [esp + 0xbc]
mov ecx, edi
push eax
call fcn.10003750
mov esi, dword [esp + 0x24]
lea eax, [edi + 0x84]
mov dword [esp + 0x48], 8
mov dword [esp + 0x30], eax
nop
movss xmm4, dword [eax]
subss xmm4, dword [0x100ca10c]
push dword [esp + 0xc]
push dword [esp + 0x14]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100ca110]
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 [0x100ca114]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x1005e324]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x1005e4a8]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm2, xmm1
mulss xmm0, xmm4
movss dword [edi + 8], xmm2
movss dword [edi], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm3
movss dword [edi + 4], xmm0
call fcn.10003480
test al, al
je 0x10005b7e
push dword [esp + 0x1c]
push dword [esp + 0x10]
call fcn.10031640
test al, al
je 0x10005b6a
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 + 0x50], xmm2
movsd qword [esp + 0x38], xmm1
test ah, 0x44
jp 0x10005ade
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10005ade
xorps xmm1, xmm1
jmp 0x10005b4a
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x10005b0e
addsd xmm0, qword [0x1005e4e8]
movsd qword [esp + 0x28], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x50]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x40]
xorps xmm0, xmmword [0x1005e6a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
movsd xmm1, qword [esp + 0x28]
cvtsd2ss xmm0, xmm0
mov dword [esi + 0x14], 0
movss dword [esi + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [esi + 0x10], xmm0
mov byte [edi + 0xa8], 1
mov eax, dword [esp + 8]
mov dword [edi + 0x9c], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0xa0], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x30]
dec ecx
sub eax, 0xc
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], eax
test ecx, ecx
jg 0x100059e0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x100ca10c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100ca110]
mulss xmm0, xmm4
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [eax + 8]
subss xmm2, dword [0x100ca114]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x1005e324]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x1005e4a8]
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
push dword [esp + 0xc]
push dword [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.10003480
test al, al
je 0x100058a7
push dword [esp + 0x1c]
push dword [esp + 0x10]
call fcn.10031640
test al, al
je 0x10005d28
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x50], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm2
test ah, 0x44
jp 0x10005c9c
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10005c9c
xorps xmm1, xmm1
jmp 0x10005d08
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x10005ccc
addsd xmm0, qword [0x1005e4e8]
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 + 0x50]
xorps xmm0, xmmword [0x1005e6a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
movsd xmm1, qword [esp + 0x28]
cvtsd2ss xmm0, xmm0
movss dword [esi + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [esi + 0x10], xmm0
mov dword [esi + 0x14], 0
mov byte [edi + 0xa8], 1
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x20]
mov dword [edi + 0x9c], esi
mov dword [edi + 0xa0], eax
jmp 0x100058ab
cmp byte [0x100e4f78], 0
je 0x10005f1f
mov esi, 0x100620d8
push dword [esp + 0x10]
lea eax, [esp + 0xc4]
mov ecx, edi
push dword [esi]
push eax
call fcn.10003750
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x100ca10c]
push dword [esp + 0xc]
push dword [esp + 0x14]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100ca110]
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 [0x100ca114]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x1005e324]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x1005e4a8]
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.10003480
test al, al
je 0x10005f0b
push dword [esp + 0x1c]
push dword [esp + 0x10]
call fcn.10031640
test al, al
je 0x10005ef7
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [esp + 0x50], 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 0x10005e6a
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005e6a
xorps xmm1, xmm1
jmp 0x10005ed3
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x10005e97
addsd xmm0, qword [0x1005e4e8]
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 + 0x50]
xorps xmm0, xmmword [0x1005e6a0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1005e4d8]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x24]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0xa8], 1
mov eax, dword [esp + 8]
mov dword [edi + 0x9c], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0xa0], eax
add esi, 4
cmp esi, 0x10062124
jne 0x10005d53
jmp 0x100058a7
call fcn.100060e0
cmp byte [0x100e5134], 0
je 0x10005fb4
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [0x100c936c]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
call edx
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.10002fa0
mov ecx, dword [eax]
lea edx, [ecx + ecx*2]
mov ecx, dword [esi + 0xb0]
lea edx, [ecx + edx*4]
mov ecx, dword [0x102ca5f8]
add edx, esi
shl ecx, 4
add ecx, dword [0x102ca5f8]
mov eax, dword [edx + 8]
lea esi, [eax + ecx*4]
add esi, edx
call fcn.100060e0
lea ecx, [esi + 0x14]
mov esi, dword [esp + 0x24]
push ecx
push esi
push dword [esp + 0x18]
mov ecx, eax
call fcn.100241a0
test al, al
jne 0x10005fce
push dword [esp + 0x10]
lea eax, [esp + 0xd0]
mov ecx, edi
push dword [0x100620d8]
push eax
call fcn.10003750
jmp 0x10005fce
push esi
push dword [0x100620d8]
lea eax, [esp + 0xe0]
mov ecx, edi
push eax
call fcn.10003750
mov esi, dword [esp + 0x24]
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x100ca10c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100ca110]
mulss xmm0, xmm4
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [eax + 8]
subss xmm2, dword [0x100ca114]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x1005e324]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x1005e4a8]
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
jmp 0x10005c29
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x6fc], 0
jg 0x10006070
or dword [esi + 0x24], 0x2000
cmp byte [0x100e4f7a], 0
jne case.0x10004ea5.0
mov ecx, dword [0x100c9388]
lea eax, [esi + 0xc]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
xor ecx, esp
call fcn.100328be
mov esp, ebp
pop ebp
ret 8