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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x1003d00c]
xor eax, esp
mov dword [esp + 0x12c], 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 [0x100c21ec]
mov dword [esp + 0x14], edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je case.0x10004a85.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [esp + 0x14], eax
test eax, eax
je case.0x10004a85.0
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x4a4]
call edx
test eax, eax
js case.0x10004a85.0
cmp eax, 0x1d
jg case.0x10004a85.0
cmp eax, 0x1c
ja case.0x10004a85.1
movzx eax, byte [eax + 0x10005a84]
jmp dword [eax*4 + 0x10005a7c]
push dword [esp + 0x14]
lea eax, [esp + 0x9c]
push eax
call fcn.100210a0
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
cmp byte [0x100d3679], 0
je 0x10004c1d
push 0x54
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x10004bf1
cmp byte [0x100d367a], 0
sete al
mov byte [0x100d367a], al
jmp 0x10004bf6
mov al, byte [0x100d367a]
test al, al
je 0x10004c1d
mov eax, dword [0x100d379c]
sub eax, 0
je 0x10004c16
sub eax, 1
jne 0x10004c0e
lea edx, [eax + 0xa]
jmp 0x10004c23
mov edx, dword [0x102b093c]
jmp 0x10004c29
mov edx, 9
jmp 0x10004c23
mov edx, dword [0x100d3680]
mov dword [0x102b093c], edx
mov dword [0x1003d0d8], edx
mov ecx, 0x1003d120
cmp dword [ecx], edx
jne 0x10004c3f
mov eax, dword [0x100d3680]
mov dword [ecx], eax
sub ecx, 4
cmp ecx, 0x1003d0dc
jge 0x10004c34
mov eax, dword [0x100d3698]
test eax, eax
jle 0x10004c63
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x10004a85.0
mov eax, dword [0x100c21e8]
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], eax
cmp eax, 1
jl 0x100059e2
mov esi, eax
nop word [eax + eax]
mov ecx, dword [0x100c21e0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp esi, eax
je 0x100059d0
mov ecx, dword [0x100c21ec]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x100059d0
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x100059d0
mov ecx, dword [esp + 0x18]
call fcn.10002d80
cmp dword [eax], 0
jne 0x100059d0
cmp byte [0x100d3673], 0
jne 0x10004cfd
mov ecx, dword [esp + 0x10]
call fcn.10002960
mov ecx, dword [esp + 0x18]
mov esi, dword [eax]
call fcn.10002960
cmp dword [eax], esi
mov esi, dword [esp + 0xc]
je 0x100059d0
mov ecx, dword [esp + 0x18]
call fcn.10002e70
cmp dword [eax], 0x1f4
jg 0x100059d0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x58]
shr eax, 0x18
cmp al, 0xff
jb 0x100059d0
cmp byte [esi + 0x100d3b58], 0
jne 0x100059d0
movss xmm1, dword [ecx + 0x29c]
movss xmm2, dword [ecx + 0x2a0]
subss xmm2, dword [0x100c4ce4]
subss xmm1, dword [0x100c4ce0]
movss xmm0, dword [ecx + 0x2a4]
subss xmm0, dword [0x100c4ce8]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm2
comiss xmm0, dword [esp + 0xac]
ja 0x100059d0
push esi
call fcn.1002e040
test al, al
je 0x10004d9e
mov dword [0x102b093c], 0xc
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [0x100d367c], ecx
jne 0x10004e09
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
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
subss xmm2, dword [esi + 4]
subss xmm1, dword [esi]
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
mov esi, dword [esp + 0xc]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm2
cvttss2si ecx, xmm0
mov dword [esp + 0x24], ecx
cmp dword [0x100d367c], 1
jne 0x10004e21
mov ecx, dword [esp + 0x18]
call fcn.10002e70
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov eax, dword [0x100d367c]
cmp eax, 2
je 0x10004e30
cmp eax, 3
jne 0x10004e4d
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 [0x100c1f20]
setle cl
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi + 0x1a0]
jg 0x100059d0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x10005079
cmp eax, 0x1d
jg 0x10005079
cmp eax, 0x11
jne 0x10005079
push dword [esp + 0x18]
mov ecx, edi
push dword [0x102b093c]
call fcn.10003340
mov ecx, dword [0x100c21ec]
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 0x100059cc
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x100059cc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], eax
lea eax, [edi + 0x24]
push eax
push 0x100c4ce0
mov dword [esp + 0x60], vtable.Valve::TraceFilterSkipTwoEntities.0
mov dword [esp + 0x68], 0
call fcn.10002f60
mov ecx, dword [0x100c21e4]
lea edx, [esp + 0xd8]
push edx
lea edx, [esp + 0x5c]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x6c]
push 0x46004003
push edx
mov eax, dword [eax + 0x10]
call eax
movss xmm0, dword [esp + 0x104]
ucomiss xmm0, dword [0x10038a68]
lahf
test ah, 0x44
jp 0x100059cc
movss xmm4, dword [edi + 0x24]
subss xmm4, dword [0x100c4ce0]
push dword [esp + 0x14]
push esi
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [edi + 0x28]
subss xmm3, dword [0x100c4ce4]
mulss xmm0, xmm4
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [edi + 0x2c]
subss xmm2, dword [0x100c4ce8]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10038968]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10038ab8]
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.1002d060
test al, al
je 0x100059b8
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 + 0x38], xmm2
movsd qword [esp + 0x18], xmm1
test ah, 0x44
jp 0x10005010
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10005010
xorps xmm1, xmm1
jmp 0x10005994
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x50], xmm0
jbe 0x10005040
addsd xmm0, qword [0x10038b00]
movsd qword [esp + 0x50], xmm0
movsd xmm1, qword [esp + 0x18]
movsd xmm2, qword [esp + 0x38]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x28]
xorps xmm0, xmmword [0x10038cd0]
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 0x1000598c
cmp byte [0x100d3671], 0
je 0x10005638
cmp byte [0x100d3672], 0
je 0x10005457
mov eax, 0x1003d120
mov dword [esp + 0x50], eax
nop dword [eax]
push dword [esp + 0x18]
mov ecx, edi
push dword [eax]
call fcn.10003340
mov esi, 0x84
nop dword [eax]
nop word [eax + eax]
movss xmm4, dword [edi + esi]
lea eax, [edi + esi]
subss xmm4, dword [0x100c4ce0]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100c4ce4]
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 [0x100c4ce8]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10038968]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10038ab8]
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.10003030
test al, al
je 0x10005263
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1002d060
test al, al
je 0x1000524f
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 0x100051c2
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x100051c2
xorps xmm1, xmm1
jmp 0x1000522b
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x100051ef
addsd xmm0, qword [0x10038b00]
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 [0x10038cd0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x34]
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 + 0xc]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1a0], eax
sub esi, 0xc
cmp esi, 0x24
jg 0x100050c0
mov eax, dword [esp + 0x50]
sub eax, 4
mov dword [esp + 0x50], eax
cmp eax, 0x1003d0d8
jge 0x100050a0
mov esi, 0x1003d120
nop word [eax + eax]
push dword [esp + 0x18]
mov ecx, edi
push dword [esi]
call fcn.10003340
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x100c4ce0]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100c4ce4]
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 [0x100c4ce8]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10038968]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10038ab8]
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.10003030
test al, al
je 0x10005443
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1002d060
test al, al
je 0x1000542f
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 0x1000539f
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1000539f
xorps xmm1, xmm1
jmp 0x1000540b
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x100053cf
addsd xmm0, qword [0x10038b00]
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 [0x10038cd0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x34]
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 + 0xc]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1a0], eax
sub esi, 4
cmp esi, 0x1003d0d8
jge 0x10005290
jmp 0x100059cc
push dword [esp + 0x18]
mov ecx, edi
push dword [0x1003d0d8]
call fcn.10003340
mov dword [esp + 0x50], 8
lea esi, [edi + 0x84]
nop word [eax + eax]
movss xmm4, dword [esi]
subss xmm4, dword [0x100c4ce0]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm1, xmm4
movss xmm3, dword [esi + 4]
subss xmm3, dword [0x100c4ce4]
mulss xmm1, xmm4
push esi
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm0, xmm3
movss xmm2, dword [esi + 8]
subss xmm2, dword [0x100c4ce8]
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10038968]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10038ab8]
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.10003030
test al, al
je 0x1000561f
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1002d060
test al, al
je 0x1000560b
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 0x1000557e
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x1000557e
xorps xmm1, xmm1
jmp 0x100055e7
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x100055ab
addsd xmm0, qword [0x10038b00]
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 [0x10038cd0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x34]
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 + 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 0x10005480
jmp 0x10005828
cmp byte [0x100d3672], 0
je 0x10005817
mov esi, 0x1003d120
nop word [eax + eax]
push dword [esp + 0x18]
mov ecx, edi
push dword [esi]
call fcn.10003340
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x100c4ce0]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100c4ce4]
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 [0x100c4ce8]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10038968]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10038ab8]
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.10003030
test al, al
je 0x10005803
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1002d060
test al, al
je 0x100057ef
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 0x1000575f
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1000575f
xorps xmm1, xmm1
jmp 0x100057cb
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x1000578f
addsd xmm0, qword [0x10038b00]
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 [0x10038cd0]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x34]
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 + 0xc]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1a0], eax
sub esi, 4
cmp esi, 0x1003d0d8
jge 0x10005650
jmp 0x100059cc
push dword [esp + 0x18]
mov ecx, edi
push dword [0x1003d0d8]
call fcn.10003340
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x100c4ce0]
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 [0x100c4ce4]
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 [0x100c4ce8]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10038968]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10038ab8]
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.10003030
test al, al
je 0x100059cc
push dword [esp + 0x14]
push esi
call fcn.1002d060
test al, al
je 0x100059b8
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 + 0x40], xmm1
movsd qword [esp + 0x38], xmm2
test ah, 0x44
jp 0x10005928
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10005928
xorps xmm1, xmm1
jmp 0x10005994
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10038ae8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x10005958
addsd xmm0, qword [0x10038b00]
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 [0x10038cd0]
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 [0x10038ae8]
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 0x10004c80
mov esi, dword [esp + 0x34]
mov al, byte [edi + 0x1a8]
mov cl, al
test al, al
je 0x10005a0a
cmp dword [edi + 0x19c], 0xffffffff
je 0x10005a0a
cmp byte [0x100d366d], 0
je 0x10005a0a
or dword [esi + 0x24], 1
mov cl, byte [edi + 0x1a8]
cmp dword [0x100d367c], 3
jne 0x10005a1e
mov eax, dword [edi + 0x19c]
mov dword [0x100c1f20], eax
test cl, cl
je 0x10005a38
cmp dword [0x100d367c], 3
je 0x10005a4c
mov eax, dword [edi + 0x19c]
mov dword [0x100c1f20], eax
jmp 0x10005a4c
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x6fc], 0
jg 0x10005a4c
or dword [esi + 0x24], 0x2000
cmp byte [0x100d3674], 0
jne case.0x10004a85.0
mov ecx, dword [0x100c21e0]
lea eax, [esi + 0xc]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, esp
call fcn.1002e1ce
mov esp, ebp
pop ebp
ret 8