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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100310d0
mov eax, dword fs:[0]
push eax
mov eax, 0x3878
call fcn.100301a0
mov eax, dword [0x1003f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x37e8], edi
mov ecx, dword [0x1005525c]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x37d4], esi
mov eax, dword [ecx]
push dword [edx + 0xb38]
mov dword [ebp - 0x37bc], edx
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je case.0x10004cd6.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [ebp - 0x37c0], eax
test eax, eax
je case.0x10004cd6.0
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x4a4]
call edx
test eax, eax
js case.0x10004cd6.0
cmp eax, 0x1d
jg case.0x10004cd6.0
cmp eax, 0x1c
ja case.0x10004cd6.1
movzx eax, byte [eax + 0x10005e38]
jmp dword [eax*4 + 0x10005e30]
push dword [ebp - 0x37c0]
lea eax, [ebp - 0x3884]
push eax
call fcn.1001fdb0
mov dword [edi + 0x4a0], 0x7fffffff
mov dword [edi + 0x49c], 0xffffffff
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x4a4], 0x4f000000
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 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
cmp byte [0x10f782be], 0
je 0x10004e65
push 0x46
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x10004e35
cmp byte [0x10f782c1], 0
sete al
mov byte [0x10f782c1], al
jmp 0x10004e3a
mov al, byte [0x10f782c1]
test al, al
je 0x10004e65
mov eax, dword [0x10f782dc]
sub eax, 0
je 0x10004e59
sub eax, 1
jne 0x10004e6f
mov dword [0x11dc5518], 0xa
jmp 0x10004e6f
mov dword [0x11dc5518], 9
jmp 0x10004e6f
mov eax, dword [0x10f782d0]
mov dword [0x11dc5518], eax
mov ecx, dword [ebp - 0x37c0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
mov ecx, dword [ebp - 0x37c0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x10004eb3
cmp eax, 0x1d
jg 0x10004eb3
cmp eax, 0x11
jne 0x10004eb3
cmp byte [0x10f782c8], 0
mov ecx, 9
mov eax, dword [0x10f782d0]
cmovne eax, ecx
jmp 0x10004eb8
mov eax, dword [0x10f782d0]
mov ecx, dword [0x10055084]
mov dword [0x11dc5518], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x11dc5514]
cmp eax, dword [ecx + 4]
jle 0x10004f48
push 0x11dc5514
call fcn.1002f2e7
add esp, 4
cmp dword [0x11dc5514], 0xffffffff
jne 0x10004f48
movaps xmm0, xmmword [0x1003ae50]
mov eax, dword [0x11dc5518]
movups xmmword [0x11dc53d4], xmm0
push 0x11dc5514
movaps xmm0, xmmword [0x1003ae10]
movups xmmword [0x11dc53e4], xmm0
mov dword [0x11dc53d0], eax
movaps xmm0, xmmword [0x1003ae40]
movups xmmword [0x11dc53f4], xmm0
mov dword [0x11dc5414], 0
movaps xmm0, xmmword [0x1003ae20]
movups xmmword [0x11dc5404], xmm0
call fcn.1002f29d
add esp, 4
mov eax, dword [0x10f782e0]
test eax, eax
jle 0x10004f61
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x10004cd6.0
mov eax, dword [0x10055258]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x37a8], eax
cmp eax, 1
jl 0x10005d74
nop dword [eax + eax]
mov ecx, dword [0x10055250]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov edx, dword [ebp - 0x37a8]
cmp edx, eax
je 0x10005d5e
mov ecx, dword [0x1005525c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
mov dword [ebp - 0x37b8], esi
test esi, esi
je 0x10005d58
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x10005d58
mov ecx, esi
call fcn.10003060
cmp dword [eax], 0
je 0x10004ff9
mov edx, dword [ebp - 0x37a8]
mov dword [edx*4 + 0x100552c0], 0
mov dword [edx*4 + 0x100553c0], 0
jmp 0x10005d5e
cmp byte [0x10f782c4], 0
jne 0x10005028
mov ecx, dword [ebp - 0x37bc]
call fcn.10002c40
mov ecx, dword [ebp - 0x37b8]
mov esi, dword [eax]
call fcn.10002c40
cmp dword [eax], esi
je 0x10005d58
mov esi, dword [ebp - 0x37b8]
mov ecx, esi
call fcn.10003150
mov edx, dword [ebp - 0x37a8]
cmp dword [eax], 0x1f4
jg 0x10005d5e
mov eax, dword [esi + 0x58]
shr eax, 0x18
cmp al, 0xff
jb 0x10005d5e
cmp byte [edx + 0x10f787c8], 0
jne 0x10005d5e
movss xmm0, dword [esi + 0x29c]
lea ecx, [ebp - 0x37f8]
subss xmm0, dword [0x10059094]
movss dword [ebp - 0x37f8], xmm0
movss xmm0, dword [esi + 0x2a0]
subss xmm0, dword [0x10059098]
movss dword [ebp - 0x37f4], xmm0
movss xmm0, dword [esi + 0x2a4]
subss xmm0, dword [0x1005909c]
movss dword [ebp - 0x37f0], xmm0
call fcn.10002a90
comiss xmm0, dword [ebp - 0x3870]
ja 0x10005d5e
push edx
call fcn.1002ec60
mov ecx, dword [0x11dc5518]
test al, al
push esi
push dword [ebp - 0x37c0]
mov eax, 0xc
push dword [ebp - 0x37bc]
cmovne ecx, eax
mov dword [0x11dc5518], ecx
call fcn.1001e9b0
mov ecx, dword [ebp - 0x37a8]
imul edx, ecx, 0x1ba0
mov dword [ecx*4 + 0x10f061f0], eax
shl ecx, 5
add ecx, eax
imul eax, ecx, 0x1ba0
lea ecx, [ebp - 0x1c04]
lea edi, [edx + 0x10f09900]
mov dword [ebp - 0x37ec], edi
mov dword [ebp - 0x37ac], eax
lea eax, [eax + 0x10f78ba8]
mov dword [ebp - 0x37c4], eax
lea eax, [edx + 0x11d56a58]
push eax
call fcn.100037a0
mov edi, dword [ebp - 0x37e8]
mov dword [ebp - 4], 0
cmp dword [0x10f7848c], 0
je 0x10005620
mov eax, dword [ebp - 0x37c4]
push eax
call fcn.1001eba0
test al, al
je 0x10005620
push dword [ebp - 0x37a8]
call fcn.1002ec60
test al, al
jne 0x10005620
mov eax, dword [esi + 0x684]
mov ecx, esi
mov dword [0x10058330], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
call eax
push dword [ebp - 0x37ec]
push esi
movss xmm0, dword [eax]
movss dword [0x10058334], xmm0
movss xmm0, dword [eax + 4]
movss dword [0x10058338], xmm0
movss xmm0, dword [eax + 8]
movss dword [0x1005833c], xmm0
movss xmm0, dword [esi + 0x168]
movss xmm1, dword [esi + 0x16c]
movss xmm2, dword [esi + 0x170]
movss dword [0x1005834c], xmm0
movss dword [0x10058350], xmm1
movss dword [0x10058354], xmm2
movss xmm0, dword [esi + 0x174]
movss xmm1, dword [esi + 0x178]
movss xmm2, dword [esi + 0x17c]
movss dword [0x10058358], xmm0
movss dword [0x1005835c], xmm1
movss dword [0x10058360], xmm2
call fcn.1002e010
mov ecx, dword [ebp - 0x37c4]
movss xmm1, dword [ecx + 0x14]
movss xmm0, dword [ecx + 0x10]
call fcn.10002a30
mov eax, dword [ebp - 0x37ac]
movaps xmm2, xmm0
mulss xmm2, dword [0x1003ad14]
movss xmm1, dword [eax + 0x10f7a75c]
movss xmm0, dword [eax + 0x10f7a758]
movss dword [ebp - 0x37e0], xmm2
call fcn.10002a30
mulss xmm0, dword [0x1003ad14]
movaps xmm1, xmm2
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x34]
subss xmm0, dword [eax + 0x10f7a77c]
mov ecx, dword [0x10055250]
mov eax, dword [ecx]
divss xmm1, xmm0
mov eax, dword [eax + 0x120]
movss dword [ebp - 0x37d8], 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 - 0x37b0]
push 1
mov eax, dword [eax + 0x24]
call eax
mov esi, dword [0x10055258]
movss xmm1, dword [0x1003ac00]
mov eax, dword [ebp - 0x37c4]
mov edx, dword [ebp - 0x37ac]
divss xmm1, dword [esi + 0x1c]
movss xmm0, dword [eax + 0x34]
fadd dword [ebp - 0x37b0]
subss xmm0, dword [edx + 0x10f7a77c]
fstp dword [ebp - 0x37b0]
mulss xmm0, xmm1
mulss xmm1, dword [ebp - 0x37b0]
addss xmm0, dword [0x1003abd0]
addss xmm1, dword [0x1003abd0]
cvttss2si ecx, xmm0
cvttss2si eax, xmm1
add ecx, eax
cmp ecx, 0xf
jle 0x10005325
mov ecx, 0xf
jmp 0x1000544c
mov ecx, dword [0x10055250]
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 - 0x37b0]
push 1
mov eax, dword [eax + 0x24]
call eax
mov esi, dword [0x10055258]
movss xmm1, dword [0x1003ac00]
mov eax, dword [ebp - 0x37c4]
mov edx, dword [ebp - 0x37ac]
divss xmm1, dword [esi + 0x1c]
movss xmm0, dword [eax + 0x34]
fadd dword [ebp - 0x37b0]
subss xmm0, dword [edx + 0x10f7a77c]
fstp dword [ebp - 0x37b0]
mulss xmm0, xmm1
mulss xmm1, dword [ebp - 0x37b0]
addss xmm0, dword [0x1003abd0]
addss xmm1, dword [0x1003abd0]
cvttss2si ecx, xmm0
cvttss2si eax, xmm1
add ecx, eax
cmp ecx, 1
jge 0x100053c0
mov ecx, 1
jmp 0x1000544c
mov ecx, dword [0x10055250]
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 - 0x37b0]
push 1
mov eax, dword [eax + 0x24]
call eax
mov esi, dword [0x10055258]
movss xmm1, dword [0x1003ac00]
mov eax, dword [ebp - 0x37c4]
mov edx, dword [ebp - 0x37ac]
divss xmm1, dword [esi + 0x1c]
movss xmm0, dword [eax + 0x34]
fadd dword [ebp - 0x37b0]
subss xmm0, dword [edx + 0x10f7a77c]
fstp dword [ebp - 0x37b0]
mulss xmm0, xmm1
mulss xmm1, dword [ebp - 0x37b0]
addss xmm0, dword [0x1003abd0]
addss xmm1, dword [0x1003abd0]
cvttss2si ecx, xmm0
cvttss2si eax, xmm1
add ecx, eax
cmp dword [0x10f7848c], 2
mov dword [ebp - 0x37c8], ecx
jne 0x100055e3
movss xmm1, dword [edx + 0x10f78bac]
lea eax, [edx + 0x10f78ba8]
movss xmm2, dword [eax + 8]
subss xmm2, dword [edx + 0x10f7a750]
subss xmm1, dword [edx + 0x10f7a74c]
movss xmm0, dword [eax + 0xc]
subss xmm0, dword [edx + 0x10f7a754]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
comiss xmm2, dword [0x1003ad90]
jbe 0x100055e9
cmp byte [eax], 0
jne 0x100055d5
mov dword [ebp - 0x37b0], 0
test ecx, ecx
jle 0x100055d5
mov edi, dword [ebp - 0x37b0]
lea eax, [ecx - 1]
lea edx, [esi + 0x1c]
mov dword [ebp - 0x37cc], eax
mov esi, dword [ebp - 0x37b8]
movss xmm0, dword [ebp - 0x37d8]
mulss xmm0, dword [edx]
addss xmm0, dword [ebp - 0x37e0]
mulss xmm0, dword [0x1003ab2c]
movss dword [ebp - 0x37b0], xmm0
call fcn.10002a60
mov eax, dword [ebp - 0x37c4]
movaps xmm2, xmm0
movss xmm1, dword [eax + 0x14]
movss xmm0, dword [eax + 0x10]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10002a80
movaps xmm1, xmm0
movss dword [ebp - 0x37ac], xmm0
movss xmm0, dword [ebp - 0x37b0]
mulss xmm1, xmm2
movss dword [ebp - 0x1bf4], xmm1
call fcn.10002a70
mulss xmm0, dword [ebp - 0x37ac]
mov ecx, esi
movss dword [ebp - 0x1bf0], xmm0
call fcn.10002d90
mov al, byte [eax]
not al
and al, 1
movzx eax, al
push eax
lea eax, [ebp - 0x1c04]
push eax
push ecx
call fcn.1002e730
mov edx, dword [0x10055258]
mov ecx, 1
movss xmm0, dword [ebp - 0x1bd0]
add edx, 0x1c
cmp edi, dword [ebp - 0x37cc]
movzx eax, byte [ebp - 0x1c04]
cmove eax, ecx
inc edi
addss xmm0, dword [edx]
mov byte [ebp - 0x1c04], al
movss dword [ebp - 0x1bd0], xmm0
cmp edi, dword [ebp - 0x37c8]
jl 0x100054e3
mov edi, dword [ebp - 0x37e8]
lea eax, [ebp - 0x1c04]
jmp 0x100055ef
mov esi, dword [ebp - 0x37b8]
lea eax, [ebp - 0x1c04]
jmp 0x100055ef
mov eax, dword [ebp - 0x37c4]
mov esi, dword [ebp - 0x37b8]
push eax
push esi
call fcn.10005f40
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 [0x10f782cc]
xor ecx, ecx
mov dword [ebp - 0x37ac], ecx
test eax, eax
jne 0x10005699
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
mov eax, dword [ebp - 0x37bc]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
call edx
lea ecx, [ebp - 0x3804]
movss xmm0, dword [eax]
subss xmm0, dword [esi]
movss dword [ebp - 0x3804], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 4]
movss dword [ebp - 0x3800], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
movss dword [ebp - 0x37fc], xmm0
call fcn.10002a90
mov eax, dword [0x10f782cc]
cvttss2si ecx, xmm0
mov dword [ebp - 0x37ac], ecx
mov esi, dword [ebp - 0x37b8]
cmp eax, 1
jne 0x100056b8
mov ecx, esi
call fcn.10003150
mov ecx, dword [eax]
mov eax, dword [0x10f782cc]
mov dword [ebp - 0x37ac], ecx
cmp eax, 2
je 0x100056c2
cmp eax, 3
jne 0x100056de
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x24]
call eax
xor ecx, ecx
cmp eax, dword [0x100550d0]
setle cl
mov dword [ebp - 0x37ac], ecx
cmp ecx, dword [edi + 0x4a0]
jg 0x10005d46
mov ecx, dword [ebp - 0x37c0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x1000591a
cmp eax, 0x1d
jg 0x1000591a
cmp eax, 0x11
jne 0x1000591a
push esi
push dword [0x11dc5518]
mov ecx, edi
call fcn.100038d0
mov ecx, dword [0x1005525c]
mov edx, dword [ebp - 0x37bc]
mov eax, dword [ecx]
push dword [edx + 0xb38]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x10005cbe
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x10005cbe
lea eax, [edi + 0x24]
mov dword [ebp - method.Valve::TraceFilterSkipTwoEntities.virtual_0], vtable.Valve::TraceFilterSkipTwoEntities.0
push eax
push 0x10059094
lea ecx, [ebp - 0x3844]
mov dword [ebp - 0x380c], esi
mov dword [ebp - 0x3808], 0
call fcn.10003240
mov ecx, dword [0x10055254]
lea edx, [ebp - 0x64]
push edx
lea edx, [ebp - 0x3810]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x3844]
push 0x46004003
push edx
mov eax, dword [eax + 0x10]
call eax
movss xmm0, dword [ebp - 0x38]
ucomiss xmm0, dword [0x1003ac00]
lahf
test ah, 0x44
jp 0x10005cbe
movss xmm0, dword [edi + 0x24]
mov ecx, edi
subss xmm0, dword [0x10059094]
movss dword [edi], xmm0
movss xmm0, dword [edi + 0x28]
subss xmm0, dword [0x10059098]
movss dword [edi + 4], xmm0
movss xmm0, dword [edi + 0x2c]
subss xmm0, dword [0x1005909c]
movss dword [edi + 8], xmm0
call fcn.10002ad0
push dword [ebp - 0x37c0]
push dword [ebp - 0x37bc]
call fcn.1002d680
test al, al
je 0x100058fd
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [ebp - 0x37b4], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [ebp - 0x37dc], xmm2
movsd qword [ebp - 0x37e4], xmm1
test ah, 0x44
jp 0x1000585c
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1000585c
xorps xmm1, xmm1
jmp 0x100058d7
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003aca8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x37d0], xmm0
jbe 0x10005890
addsd xmm0, qword [0x1003acb0]
movsd qword [ebp - 0x37d0], xmm0
movsd xmm1, qword [ebp - 0x37dc]
movsd xmm0, qword [ebp - 0x37e4]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
sqrtsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x37b4]
xorps xmm0, xmmword [0x1003aeb0]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003aca8]
movsd xmm1, qword [ebp - 0x37d0]
mov eax, dword [ebp - 0x37d4]
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 - 0x37a8]
mov ecx, dword [ebp - 0x37ac]
mov dword [edi + 0x49c], eax
mov dword [edi + 0x4a0], ecx
jmp 0x10005cc4
mov eax, dword [0x10f783e4]
test eax, eax
jne 0x10005927
xor ecx, ecx
jmp 0x10005941
cmp eax, 1
jne 0x10005931
lea ecx, [eax + 3]
jmp 0x10005941
cmp eax, 2
mov ecx, 0x11
mov edx, 8
cmove ecx, edx
mov dword [ebp - 0x37c8], ecx
test eax, eax
mov eax, dword [0x11dc5518]
je 0x10005957
mov eax, dword [ecx*4 + 0x11dc53d0]
push esi
push eax
mov ecx, edi
mov dword [ebp - 0x37b0], eax
call fcn.100038d0
mov eax, dword [0x10f783e8]
cmp eax, 1
jne 0x10005983
mov eax, dword [ebp - 0x37b0]
cmp eax, dword [0x11dc5518]
je 0x1000598c
jmp 0x10005b29
cmp eax, 2
jne 0x10005b29
mov esi, 0x84
nop dword [eax]
nop word [eax + eax]
movss xmm0, dword [esi + edi]
lea eax, [esi + edi]
subss xmm0, dword [0x10059094]
mov ecx, edi
movss dword [edi], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [0x10059098]
movss dword [edi + 4], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [0x1005909c]
movss dword [edi + 8], xmm0
call fcn.10002ad0
push dword [ebp - 0x37bc]
push dword [ebp - 0x37b8]
push eax
push ecx
call fcn.10003470
test al, al
je 0x10005b17
push dword [ebp - 0x37c0]
push dword [ebp - 0x37bc]
call fcn.1002d680
test al, al
je 0x10005aff
movss xmm2, dword [edi + 8]
movss xmm0, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm2, xmm2
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x37b4], xmm2
xorps xmm2, xmm2
ucomisd xmm0, xmm2
cvtps2pd xmm1, xmm1
lahf
movsd qword [ebp - 0x37dc], xmm1
movsd qword [ebp - 0x37e4], xmm0
test ah, 0x44
jp 0x10005a5e
ucomisd xmm1, xmm2
lahf
test ah, 0x44
jp 0x10005a5e
xorps xmm1, xmm1
jmp 0x10005ad6
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003aca8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x37d0], xmm0
jbe 0x10005a8c
addsd xmm0, qword [0x1003acb0]
movsd qword [ebp - 0x37d0], xmm0
movsd xmm1, qword [ebp - 0x37dc]
movsd xmm0, qword [ebp - 0x37e4]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
sqrtsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x37b4]
xorps xmm0, xmmword [0x1003aeb0]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
movsd xmm1, qword [ebp - 0x37d0]
movaps xmm2, xmm0
mulsd xmm2, qword [0x1003aca8]
mov eax, dword [ebp - 0x37d4]
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 + 0x4a8], 1
mov eax, dword [ebp - 0x37a8]
mov dword [edi + 0x49c], eax
mov eax, dword [ebp - 0x37ac]
mov dword [edi + 0x4a0], eax
sub esi, 0xc
cmp esi, 0x24
jg 0x100059a0
mov esi, dword [ebp - 0x37b8]
movss xmm0, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm0, dword [0x10059094]
mov ecx, edi
movss dword [edi], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [0x10059098]
movss dword [edi + 4], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [0x1005909c]
movss dword [edi + 8], xmm0
call fcn.10002ad0
push dword [ebp - 0x37bc]
push esi
push eax
push ecx
call fcn.10003470
test al, al
je 0x10005c9d
push dword [ebp - 0x37c0]
push dword [ebp - 0x37bc]
call fcn.1002d680
test al, al
je 0x10005c83
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [ebp - 0x37b4], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [ebp - 0x37dc], xmm2
movsd qword [ebp - 0x37e4], xmm1
test ah, 0x44
jp 0x10005be2
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10005be2
xorps xmm1, xmm1
jmp 0x10005c5d
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003aca8]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x37d0], xmm0
jbe 0x10005c16
addsd xmm0, qword [0x1003acb0]
movsd qword [ebp - 0x37d0], xmm0
movsd xmm1, qword [ebp - 0x37dc]
movsd xmm0, qword [ebp - 0x37e4]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
sqrtsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x37b4]
xorps xmm0, xmmword [0x1003aeb0]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003aca8]
movsd xmm1, qword [ebp - 0x37d0]
mov eax, dword [ebp - 0x37d4]
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 - 0x37a8]
mov ecx, dword [ebp - 0x37ac]
mov dword [edi + 0x49c], eax
mov dword [edi + 0x4a0], ecx
jmp 0x10005ca3
mov eax, dword [ebp - 0x37a8]
mov ecx, dword [ebp - 0x37c8]
sub ecx, 1
mov dword [ebp - 0x37c8], ecx
js 0x10005cc4
mov eax, dword [0x10f783e4]
jmp 0x10005947
mov eax, dword [ebp - 0x37a8]
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 [0x10f7848c], 0
je 0x10005d46
push dword [ebp - 0x37c4]
call fcn.1001eba0
test al, al
je 0x10005d46
push dword [ebp - 0x37a8]
call fcn.1002ec60
test al, al
jne 0x10005d46
mov ecx, dword [esi + 0x684]
mov eax, dword [0x10058330]
cmp ecx, eax
je 0x10005d26
push ecx
call fcn.10005ed0
mov eax, dword [0x10058330]
mov dword [esi + 0x684], eax
mov ecx, esi
push 0x10058334
mov eax, 0x24045620
call eax
push dword [ebp - 0x37ec]
push esi
call fcn.1002de00
lea ecx, [ebp - 0x1c04]
mov dword [ebp - 4], 0xffffffff
call fcn.10003320
mov edx, dword [ebp - 0x37a8]
dec edx
mov dword [ebp - 0x37a8], edx
cmp edx, 1
jge 0x10004f80
mov esi, dword [ebp - 0x37d4]
cmp byte [edi + 0x4a8], 0
je 0x10005dcd
mov eax, dword [edi + 0x49c]
cmp eax, 0xffffffff
je 0x10005dcd
cmp byte [0x10f782bd], 0
je 0x10005db7
imul eax, eax, 0x1ba0
lea ecx, [ebp - 0x37a4]
add eax, 0x11d56a58
push eax
call fcn.100037a0
or dword [esi + 0x24], 1
lea ecx, [ebp - 0x37a4]
call fcn.10003320
cmp dword [0x10f782cc], 3
je 0x10005dec
mov eax, dword [edi + 0x49c]
mov dword [0x100550d0], eax
jmp 0x10005de3
mov eax, dword [ebp - 0x37c0]
cmp dword [eax + 0x6fc], 0
jg 0x10005de3
or dword [esi + 0x24], 0x2000
cmp dword [0x10f782cc], 3
jne 0x10005df7
mov eax, dword [edi + 0x49c]
mov dword [0x100550d0], eax
cmp byte [0x10f782c5], 0
jne case.0x10004cd6.0
mov ecx, dword [0x10055250]
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 - 0x10]
xor ecx, ebp
call fcn.1002ee7e
mov esp, ebp
pop ebp
ret 8