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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cec0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x3890
call fcn.1003bfb0
mov eax, dword [0x1004b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x37fc], edi
mov ecx, dword [0x1004b8e4]
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x37ec], esi
mov eax, dword [ecx]
push dword [edx + 0xb38]
mov dword [ebp - 0x37cc], edx
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je case.0x10004d6a.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [ebp - 0x37d0], eax
test eax, eax
je case.0x10004d6a.0
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x4a4]
call edx
test eax, eax
js case.0x10004d6a.0
cmp eax, 0x1d
jg case.0x10004d6a.0
cmp eax, 0x1c
ja case.0x10004d6a.1
movzx eax, byte [eax + 0x10005f7c]
jmp dword [eax*4 + 0x10005f74]
push dword [ebp - 0x37d0]
lea eax, [ebp - 0x38a0]
push eax
call fcn.1002d180
mov dword [edi + 0x4a0], 0x7fffffff
mov dword [edi + 0x49c], 0xffffffff
mov dword [edi + 0x4a4], 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 [ebp - 0x37d0]
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 + 0x4a8], 0
mov dword [edi + 0x4ac], 0
mov dword [edi + 0x4b0], 0
mov dword [edi + 0x4b4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
mov ecx, dword [ebp - 0x37d0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x10004ee7
cmp eax, 0x1d
jg 0x10004ee7
cmp eax, 0x11
jne 0x10004ee7
cmp byte [0x10f6c50a], 0
mov ecx, 9
mov eax, dword [0x10f6c510]
cmovne eax, ecx
jmp 0x10004eec
mov eax, dword [0x10f6c510]
mov ecx, dword [0x1004b66c]
mov dword [0x11db9794], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x11db9790]
cmp eax, dword [ecx + 4]
jle 0x10004f7c
push 0x11db9790
call fcn.1003b170
add esp, 4
cmp dword [0x11db9790], 0xffffffff
jne 0x10004f7c
movaps xmm0, xmmword [0x10046410]
mov eax, dword [0x11db9794]
movups xmmword [0x11db9644], xmm0
push 0x11db9790
movaps xmm0, xmmword [0x10046420]
movups xmmword [0x11db9654], xmm0
mov dword [0x11db9640], eax
movaps xmm0, xmmword [0x10046440]
movups xmmword [0x11db9664], xmm0
mov dword [0x11db9684], 6
movaps xmm0, xmmword [0x10046430]
movups xmmword [0x11db9674], xmm0
call fcn.1003b11f
add esp, 4
mov eax, dword [0x10f6c51c]
test eax, eax
jle 0x10004f95
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x10004d6a.0
mov eax, dword [0x1004b8e0]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x37b4], eax
cmp eax, 1
jl 0x10005eb6
nop dword [eax]
mov ecx, dword [0x1004b8d8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov edx, dword [ebp - 0x37b4]
cmp edx, eax
je 0x10005ea0
mov ecx, dword [0x1004b8e4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
mov dword [ebp - 0x37c8], esi
test esi, esi
je 0x10005e9a
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x10005e9a
mov ecx, esi
call fcn.10002fa0
cmp dword [eax], 0
je 0x10005029
mov edx, dword [ebp - 0x37b4]
mov dword [edx*4 + 0x1004b948], 0
mov dword [edx*4 + 0x1004ba48], 0
jmp 0x10005ea0
cmp byte [0x10f6c506], 0
jne 0x10005058
mov ecx, dword [ebp - 0x37cc]
call fcn.10002b80
mov ecx, dword [ebp - 0x37c8]
mov esi, dword [eax]
call fcn.10002b80
cmp dword [eax], esi
je 0x10005e9a
mov esi, dword [ebp - 0x37c8]
mov ecx, esi
call fcn.10003090
mov edx, dword [ebp - 0x37b4]
cmp dword [eax], 0x1f4
jg 0x10005ea0
mov eax, dword [esi + 0x58]
shr eax, 0x18
cmp al, 0xff
jb 0x10005ea0
cmp byte [edx + 0x10f6ca38], 0
jne 0x10005ea0
movss xmm0, dword [esi + 0x29c]
lea ecx, [ebp - 0x3814]
subss xmm0, dword [0x1004d3c8]
movss dword [ebp - 0x3814], xmm0
movss xmm0, dword [esi + 0x2a0]
subss xmm0, dword [0x1004d3cc]
movss dword [ebp - 0x3810], xmm0
movss xmm0, dword [esi + 0x2a4]
subss xmm0, dword [0x1004d3d0]
movss dword [ebp - 0x380c], xmm0
call fcn.10002a40
comiss xmm0, dword [ebp - 0x388c]
ja 0x10005ea0
push edx
call fcn.1003ac30
test al, al
je 0x10005100
mov dword [0x11db9794], 0xc
push esi
push dword [ebp - 0x37d0]
push dword [ebp - 0x37cc]
call fcn.1002b2b0
mov ecx, dword [ebp - 0x37b4]
imul edx, ecx, 0x1ba0
mov dword [ecx*4 + 0x10efa448], eax
shl ecx, 5
add ecx, eax
imul eax, ecx, 0x1ba0
lea ecx, [ebp - 0x1c10]
lea edi, [edx + 0x10efdb58]
mov dword [ebp - 0x3800], edi
mov dword [ebp - 0x37c4], eax
lea eax, [eax + 0x10f6ce18]
mov dword [ebp - 0x37d4], eax
lea eax, [edx + 0x11d4acc0]
push eax
call fcn.10003660
mov edi, dword [ebp - 0x37fc]
mov dword [ebp - 4], 0
cmp dword [0x10f6c6d8], 0
je 0x10005690
mov eax, dword [ebp - 0x37d4]
push eax
call fcn.1002b4b0
test al, al
je 0x10005690
push dword [ebp - 0x37b4]
call fcn.1003ac30
test al, al
jne 0x10005690
mov eax, dword [esi + 0x684]
mov ecx, esi
mov dword [0x1004d1ac], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
call eax
push dword [ebp - 0x3800]
push esi
movss xmm0, dword [eax]
movss dword [0x1004d1b0], xmm0
movss xmm0, dword [eax + 4]
movss dword [0x1004d1b4], xmm0
movss xmm0, dword [eax + 8]
movss dword [0x1004d1b8], xmm0
movss xmm0, dword [esi + 0x168]
movss xmm1, dword [esi + 0x16c]
movss xmm2, dword [esi + 0x170]
movss dword [0x1004d1c8], xmm0
movss dword [0x1004d1cc], xmm1
movss dword [0x1004d1d0], xmm2
movss xmm0, dword [esi + 0x174]
movss xmm1, dword [esi + 0x178]
movss xmm2, dword [esi + 0x17c]
movss dword [0x1004d1d4], xmm0
movss dword [0x1004d1d8], xmm1
movss dword [0x1004d1dc], xmm2
call fcn.10039fe0
mov ecx, dword [ebp - 0x37d4]
mov eax, dword [ebp - 0x37c4]
movss xmm0, dword [ecx + 0x10]
movss dword [ebp - 0x37bc], xmm0
movss xmm0, dword [ecx + 0x14]
fld dword [ebp - 0x37bc]
movss dword [ebp - 0x37dc], xmm0
fld dword [ebp - 0x37dc]
fpatan
movss xmm0, dword [eax + 0x10f6e9c8]
fstp dword [ebp - 0x37bc]
movss xmm1, dword [ebp - 0x37bc]
movss dword [ebp - 0x37bc], xmm0
movss xmm0, dword [eax + 0x10f6e9cc]
fld dword [ebp - 0x37bc]
movss dword [ebp - 0x37dc], xmm0
fld dword [ebp - 0x37dc]
fpatan
mulss xmm1, dword [0x100462f4]
fstp dword [ebp - 0x37bc]
movss xmm0, dword [ebp - 0x37bc]
mulss xmm0, dword [0x100462f4]
movss dword [ebp - 0x37e4], xmm1
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x34]
subss xmm0, dword [eax + 0x10f6e9ec]
mov ecx, dword [0x1004b8d8]
mov eax, dword [ecx]
divss xmm1, xmm0
mov eax, dword [eax + 0x120]
movss dword [ebp - 0x37f4], xmm1
call eax
mov esi, eax
push 0
mov ecx, esi
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
call edx
mov eax, dword [esi]
mov ecx, esi
fstp dword [ebp - 0x37bc]
push 1
mov eax, dword [eax + 0x24]
call eax
mov esi, dword [0x1004b8e0]
movss xmm1, dword [0x10046208]
mov eax, dword [ebp - 0x37d4]
mov edx, dword [ebp - 0x37c4]
divss xmm1, dword [esi + 0x1c]
movss xmm0, dword [eax + 0x34]
fadd dword [ebp - 0x37bc]
subss xmm0, dword [edx + 0x10f6e9ec]
fstp dword [ebp - 0x37bc]
mulss xmm0, xmm1
mulss xmm1, dword [ebp - 0x37bc]
addss xmm0, dword [0x100461d8]
addss xmm1, dword [0x100461d8]
cvttss2si ecx, xmm0
cvttss2si eax, xmm1
add ecx, eax
cmp ecx, 0xf
jle 0x10005395
mov ecx, 0xf
jmp 0x100054bc
mov ecx, dword [0x1004b8d8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x120]
call eax
mov esi, eax
push 0
mov ecx, esi
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
call edx
mov eax, dword [esi]
mov ecx, esi
fstp dword [ebp - 0x37bc]
push 1
mov eax, dword [eax + 0x24]
call eax
mov esi, dword [0x1004b8e0]
movss xmm1, dword [0x10046208]
mov eax, dword [ebp - 0x37d4]
mov edx, dword [ebp - 0x37c4]
divss xmm1, dword [esi + 0x1c]
movss xmm0, dword [eax + 0x34]
fadd dword [ebp - 0x37bc]
subss xmm0, dword [edx + 0x10f6e9ec]
fstp dword [ebp - 0x37bc]
mulss xmm0, xmm1
mulss xmm1, dword [ebp - 0x37bc]
addss xmm0, dword [0x100461d8]
addss xmm1, dword [0x100461d8]
cvttss2si ecx, xmm0
cvttss2si eax, xmm1
add ecx, eax
cmp ecx, 1
jge 0x10005430
mov ecx, 1
jmp 0x100054bc
mov ecx, dword [0x1004b8d8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x120]
call eax
mov esi, eax
push 0
mov ecx, esi
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
call edx
mov eax, dword [esi]
mov ecx, esi
fstp dword [ebp - 0x37bc]
push 1
mov eax, dword [eax + 0x24]
call eax
mov esi, dword [0x1004b8e0]
movss xmm1, dword [0x10046208]
mov eax, dword [ebp - 0x37d4]
mov edx, dword [ebp - 0x37c4]
divss xmm1, dword [esi + 0x1c]
movss xmm0, dword [eax + 0x34]
fadd dword [ebp - 0x37bc]
subss xmm0, dword [edx + 0x10f6e9ec]
fstp dword [ebp - 0x37bc]
mulss xmm0, xmm1
mulss xmm1, dword [ebp - 0x37bc]
addss xmm0, dword [0x100461d8]
addss xmm1, dword [0x100461d8]
cvttss2si ecx, xmm0
cvttss2si eax, xmm1
add ecx, eax
cmp dword [0x10f6c6d8], 2
mov dword [ebp - 0x37dc], ecx
jne 0x10005653
movss xmm1, dword [edx + 0x10f6ce1c]
lea eax, [edx + 0x10f6ce18]
movss xmm2, dword [eax + 8]
subss xmm2, dword [edx + 0x10f6e9c0]
subss xmm1, dword [edx + 0x10f6e9bc]
movss xmm0, dword [eax + 0xc]
subss xmm0, dword [edx + 0x10f6e9c4]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
comiss xmm2, dword [0x10046390]
jbe 0x10005659
cmp byte [eax], 0
jne 0x10005645
mov dword [ebp - 0x37bc], 0
test ecx, ecx
jle 0x10005645
mov edi, dword [ebp - 0x37bc]
lea eax, [ecx - 1]
lea edx, [esi + 0x1c]
mov dword [ebp - 0x37c4], eax
mov esi, dword [ebp - 0x37c8]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x37d4]
movss xmm2, dword [ebp - 0x37f4]
mulss xmm2, dword [edx]
movss xmm1, dword [eax + 0x14]
movss xmm0, dword [eax + 0x10]
addss xmm2, dword [ebp - 0x37e4]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10002a30
mulss xmm2, dword [0x10046140]
movss dword [ebp - 0x37bc], xmm0
movaps xmm0, xmm2
call fcn.1003bf60
movaps xmm1, xmm0
mov ecx, esi
shufps xmm1, xmm0, 1
mulss xmm1, dword [ebp - 0x37bc]
mulss xmm0, dword [ebp - 0x37bc]
movss dword [ebp - 0x1c00], xmm1
movss dword [ebp - 0x1bfc], xmm0
call fcn.10002cd0
mov al, byte [eax]
not al
and al, 1
movzx eax, al
push eax
lea eax, [ebp - 0x1c10]
push eax
push ecx
call fcn.1003a700
mov edx, dword [0x1004b8e0]
mov ecx, 1
movss xmm0, dword [ebp - 0x1bdc]
add edx, 0x1c
cmp edi, dword [ebp - 0x37c4]
movzx eax, byte [ebp - 0x1c10]
cmove eax, ecx
inc edi
addss xmm0, dword [edx]
mov byte [ebp - 0x1c10], al
movss dword [ebp - 0x1bdc], xmm0
cmp edi, dword [ebp - 0x37dc]
jl 0x10005560
mov edi, dword [ebp - 0x37fc]
lea eax, [ebp - 0x1c10]
jmp 0x1000565f
mov esi, dword [ebp - 0x37c8]
lea eax, [ebp - 0x1c10]
jmp 0x1000565f
mov eax, dword [ebp - 0x37d4]
mov esi, dword [ebp - 0x37c8]
push eax
push esi
call fcn.10006080
mov eax, dword [esi + 0x4a0]
mov dword [esi + 0x4ac], 0
mov dword [esi + 0x4b0], 0
mov dword [esi + 0x49c], eax
mov dword [esi + 0x4a0], 0
mov eax, dword [0x10f6c50c]
xor ecx, ecx
mov dword [ebp - 0x37c4], ecx
test eax, eax
jne 0x10005709
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
mov eax, dword [ebp - 0x37cc]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
call edx
lea ecx, [ebp - 0x3820]
movss xmm0, dword [eax]
subss xmm0, dword [esi]
movss dword [ebp - 0x3820], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 4]
movss dword [ebp - 0x381c], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
movss dword [ebp - 0x3818], xmm0
call fcn.10002a40
mov eax, dword [0x10f6c50c]
cvttss2si ecx, xmm0
mov dword [ebp - 0x37c4], ecx
mov esi, dword [ebp - 0x37c8]
cmp eax, 1
jne 0x10005728
mov ecx, esi
call fcn.10003090
mov ecx, dword [eax]
mov eax, dword [0x10f6c50c]
mov dword [ebp - 0x37c4], ecx
cmp eax, 2
je 0x10005732
cmp eax, 3
jne 0x1000574e
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x24]
call eax
xor ecx, ecx
cmp eax, dword [0x1004b6b8]
setle cl
mov dword [ebp - 0x37c4], ecx
cmp ecx, dword [edi + 0x4a0]
jg 0x10005e88
mov ecx, dword [ebp - 0x37d0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x100059d7
cmp eax, 0x1d
jg 0x100059d7
cmp eax, 0x11
jne 0x100059d7
push esi
push dword [0x11db9794]
mov ecx, edi
call fcn.10003790
mov ecx, dword [0x1004b8e4]
mov edx, dword [ebp - 0x37cc]
mov eax, dword [ecx]
push dword [edx + 0xb38]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x10005e00
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x10005e00
lea eax, [edi + 0x24]
mov dword [ebp - method.Valve::TraceFilterSkipTwoEntities.virtual_0], vtable.Valve::TraceFilterSkipTwoEntities.0
push eax
push 0x1004d3c8
lea ecx, [ebp - 0x3860]
mov dword [ebp - 0x3828], esi
mov dword [ebp - 0x3824], 0
call fcn.10003180
mov ecx, dword [0x1004b8dc]
lea edx, [ebp - 0x70]
push edx
lea edx, [ebp - 0x382c]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x3860]
push 0x46004003
push edx
mov eax, dword [eax + 0x10]
call eax
movss xmm0, dword [ebp - 0x44]
ucomiss xmm0, dword [0x10046208]
lahf
test ah, 0x44
jp 0x10005e00
movss xmm4, dword [edi + 0x24]
subss xmm4, dword [0x1004d3c8]
push dword [ebp - 0x37d0]
push dword [ebp - 0x37cc]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [edi + 0x28]
subss xmm3, dword [0x1004d3cc]
mulss xmm0, xmm4
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [edi + 0x2c]
subss xmm2, dword [0x1004d3d0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10046114]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10046270]
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.10039800
test al, al
je 0x100059ba
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [ebp - 0x37e0], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [ebp - 0x37f8], xmm1
movsd qword [ebp - 0x37c0], xmm2
test ah, 0x44
jp 0x1000591c
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x1000591c
xorps xmm1, xmm1
jmp 0x10005994
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046290]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x37e8], xmm0
jbe 0x1000594d
addsd xmm0, qword [0x100462a0]
movsd qword [ebp - 0x37e8], xmm0
movsd xmm1, qword [ebp - 0x37c0]
movsd xmm0, qword [ebp - 0x37f8]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
sqrtsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x37e0]
xorps xmm0, xmmword [0x10046490]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046290]
movsd xmm1, qword [ebp - 0x37e8]
mov eax, dword [ebp - 0x37ec]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0x4a8], 1
mov eax, dword [ebp - 0x37b4]
mov ecx, dword [ebp - 0x37c4]
mov dword [edi + 0x49c], eax
mov dword [edi + 0x4a0], ecx
jmp 0x10005e06
mov eax, dword [0x10f6c620]
test eax, eax
jne 0x100059e4
xor ecx, ecx
jmp 0x100059fe
cmp eax, 1
jne 0x100059ee
lea ecx, [eax + 3]
jmp 0x100059fe
cmp eax, 2
mov ecx, 0x11
mov edx, 8
cmove ecx, edx
mov dword [ebp - 0x37dc], ecx
test eax, eax
mov eax, dword [0x11db9794]
je 0x10005a14
mov eax, dword [ecx*4 + 0x11db9640]
push esi
push eax
mov ecx, edi
mov dword [ebp - 0x37bc], eax
call fcn.10003790
mov eax, dword [0x10f6c624]
cmp eax, 1
jne 0x10005a40
mov eax, dword [ebp - 0x37bc]
cmp eax, dword [0x11db9794]
je 0x10005a49
jmp 0x10005c22
cmp eax, 2
jne 0x10005c22
mov esi, 0x84
nop
movss xmm4, dword [edi + esi]
lea eax, [edi + esi]
subss xmm4, dword [0x1004d3c8]
push dword [ebp - 0x37cc]
push dword [ebp - 0x37c8]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1004d3cc]
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 [0x1004d3d0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10046114]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10046270]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm4, xmm0
mulss xmm3, xmm0
mulss xmm0, xmm2
movss dword [edi], xmm4
movss dword [edi + 4], xmm3
movss dword [edi + 8], xmm0
call fcn.100033b0
test al, al
je 0x10005c10
push dword [ebp - 0x37d0]
push dword [ebp - 0x37cc]
call fcn.10039800
test al, al
je 0x10005bf8
movss xmm2, dword [edi + 8]
movss xmm0, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm2, xmm2
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x3808], xmm2
xorps xmm2, xmm2
ucomisd xmm0, xmm2
cvtps2pd xmm1, xmm1
lahf
movsd qword [ebp - 0x37f8], xmm1
movsd qword [ebp - 0x37c0], xmm0
test ah, 0x44
jp 0x10005b5d
ucomisd xmm1, xmm2
lahf
test ah, 0x44
jp 0x10005b5d
xorps xmm1, xmm1
xorps xmm0, xmm0
jmp 0x10005bd2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046290]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x37e8], xmm0
jbe 0x10005b8b
addsd xmm0, qword [0x100462a0]
movsd qword [ebp - 0x37e8], xmm0
movsd xmm1, qword [ebp - 0x37c0]
movsd xmm0, qword [ebp - 0x37f8]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
sqrtsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x3808]
xorps xmm0, xmmword [0x10046490]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046290]
movsd xmm1, qword [ebp - 0x37e8]
mov eax, dword [ebp - 0x37ec]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0x4a8], 1
mov eax, dword [ebp - 0x37b4]
mov dword [edi + 0x49c], eax
mov eax, dword [ebp - 0x37c4]
mov dword [edi + 0x4a0], eax
sub esi, 0xc
cmp esi, 0x24
jg 0x10005a50
mov esi, dword [ebp - 0x37c8]
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x1004d3c8]
push dword [ebp - 0x37cc]
push esi
push eax
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1004d3cc]
mulss xmm0, xmm4
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [eax + 8]
subss xmm2, dword [0x1004d3d0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10046114]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10046270]
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.100033b0
test al, al
je 0x10005ddf
push dword [ebp - 0x37d0]
push dword [ebp - 0x37cc]
call fcn.10039800
test al, al
je 0x10005dc5
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [ebp - 0x37c0], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [ebp - 0x3808], xmm1
movsd qword [ebp - 0x37f8], xmm2
test ah, 0x44
jp 0x10005d27
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005d27
xorps xmm1, xmm1
jmp 0x10005d9f
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046290]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x37e8], xmm0
jbe 0x10005d58
addsd xmm0, qword [0x100462a0]
movsd qword [ebp - 0x37e8], xmm0
movsd xmm1, qword [ebp - 0x37f8]
movsd xmm0, qword [ebp - 0x3808]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
sqrtsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x37c0]
xorps xmm0, xmmword [0x10046490]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046290]
movsd xmm1, qword [ebp - 0x37e8]
mov eax, dword [ebp - 0x37ec]
cvtsd2ss xmm0, xmm0
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0x4a8], 1
mov eax, dword [ebp - 0x37b4]
mov ecx, dword [ebp - 0x37c4]
mov dword [edi + 0x49c], eax
mov dword [edi + 0x4a0], ecx
jmp 0x10005de5
mov eax, dword [ebp - 0x37b4]
mov ecx, dword [ebp - 0x37dc]
sub ecx, 1
mov dword [ebp - 0x37dc], ecx
js 0x10005e06
mov eax, dword [0x10f6c620]
jmp 0x10005a04
mov eax, dword [ebp - 0x37b4]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x24]
mov dword [edi + ecx*4 + 0x9c], eax
mov eax, dword [edi + 0x28]
mov dword [edi + ecx*4 + 0xa0], eax
mov eax, dword [edi + 0x2c]
mov dword [edi + ecx*4 + 0xa4], eax
cmp dword [0x10f6c6d8], 0
je 0x10005e88
push dword [ebp - 0x37d4]
call fcn.1002b4b0
test al, al
je 0x10005e88
push dword [ebp - 0x37b4]
call fcn.1003ac30
test al, al
jne 0x10005e88
mov ecx, dword [esi + 0x684]
mov eax, dword [0x1004d1ac]
cmp ecx, eax
je 0x10005e68
push ecx
call fcn.10006010
mov eax, dword [0x1004d1ac]
mov dword [esi + 0x684], eax
mov ecx, esi
push 0x1004d1b0
mov eax, 0x24045620
call eax
push dword [ebp - 0x3800]
push esi
call fcn.10039e00
lea ecx, [ebp - 0x1c10]
mov dword [ebp - 4], 0xffffffff
call fcn.10003260
mov edx, dword [ebp - 0x37b4]
dec edx
mov dword [ebp - 0x37b4], edx
cmp edx, 1
jge 0x10004fb0
mov esi, dword [ebp - 0x37ec]
cmp byte [edi + 0x4a8], 0
je 0x10005f0f
mov eax, dword [edi + 0x49c]
cmp eax, 0xffffffff
je 0x10005f0f
cmp byte [0x10f6c4fd], 0
je 0x10005ef9
imul eax, eax, 0x1ba0
lea ecx, [ebp - 0x37b0]
add eax, 0x11d4acc0
push eax
call fcn.10003660
or dword [esi + 0x24], 1
lea ecx, [ebp - 0x37b0]
call fcn.10003260
cmp dword [0x10f6c50c], 3
je 0x10005f2e
mov eax, dword [edi + 0x49c]
mov dword [0x1004b6b8], eax
jmp 0x10005f25
mov eax, dword [ebp - 0x37d0]
cmp dword [eax + 0x6fc], 0
jg 0x10005f25
or dword [esi + 0x24], 0x2000
cmp dword [0x10f6c50c], 3
jne 0x10005f39
mov eax, dword [edi + 0x49c]
mov dword [0x1004b6b8], eax
cmp byte [0x10f6c507], 0
jne case.0x10004d6a.0
mov ecx, dword [0x1004b8d8]
lea eax, [esi + 0xc]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003adbe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8