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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100321e8
mov eax, dword fs:[0]
push eax
mov eax, 0x3878
call fcn.100312b0
mov eax, dword [0x1003e00c]
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 [0x100565d0]
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.0x10004dc6.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [ebp - 0x37c0], eax
test eax, eax
je case.0x10004dc6.0
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x4a4]
call edx
test eax, eax
js case.0x10004dc6.0
cmp eax, 0x1d
jg case.0x10004dc6.0
cmp eax, 0x1c
ja case.0x10004dc6.1
movzx eax, byte [eax + 0x10005fdc]
jmp dword [eax*4 + 0x10005fd4]
push dword [ebp - 0x37c0]
lea eax, [ebp - 0x3884]
push eax
call fcn.10021270
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 ecx, dword [0x10056354]
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 [0x10f771ee], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
je 0x10004f76
mov eax, dword [0x11dc4494]
cmp eax, dword [ecx + 4]
jle 0x10004f6c
push 0x11dc4494
call fcn.100303f7
add esp, 4
cmp dword [0x11dc4494], 0xffffffff
jne 0x10004f6c
mov dword [ebp - 4], 0
mov ecx, dword [0x100565c0]
push 0x10036d70
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push 0x11dc4494
mov dword [0x11dc4488], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100303ad
add esp, 4
mov ecx, dword [0x11dc4488]
push 0
jmp 0x10004fd3
mov eax, dword [0x11dc448c]
cmp eax, dword [ecx + 4]
jle 0x10004fcb
push 0x11dc448c
call fcn.100303f7
add esp, 4
cmp dword [0x11dc448c], 0xffffffff
jne 0x10004fcb
mov dword [ebp - 4], 1
mov ecx, dword [0x100565c0]
push 0x10036d84
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push 0x11dc448c
mov dword [0x11dc4490], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100303ad
add esp, 4
mov ecx, dword [0x11dc4490]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call 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
mov ecx, 9
test eax, eax
js 0x1000501e
cmp eax, 0x1d
jg 0x1000501e
cmp eax, 0x11
jne 0x1000501e
cmp byte [0x10f771fa], 0
mov eax, dword [0x10f77200]
cmovne eax, ecx
jmp 0x10005023
mov eax, dword [0x10f77200]
cmp byte [0x10f771ed], 0
mov dword [0x11dc4498], eax
je 0x10005069
push 0x46
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1000504f
cmp byte [0x10f771f2], 0
sete cl
mov byte [0x10f771f2], cl
jmp 0x10005055
mov cl, byte [0x10f771f2]
mov eax, dword [0x10f77200]
test cl, cl
mov ecx, 9
cmovne eax, ecx
mov dword [0x11dc4498], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10056354]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x11dc4480]
cmp eax, dword [ecx + 4]
jle 0x100050f4
push 0x11dc4480
call fcn.100303f7
add esp, 4
cmp dword [0x11dc4480], 0xffffffff
jne 0x100050f4
movaps xmm0, xmmword [0x1003a720]
mov eax, dword [0x11dc4498]
movups xmmword [0x11dc4334], xmm0
push 0x11dc4480
movaps xmm0, xmmword [0x1003a6e0]
movups xmmword [0x11dc4344], xmm0
mov dword [0x11dc4330], eax
movaps xmm0, xmmword [0x1003a710]
movups xmmword [0x11dc4354], xmm0
mov dword [0x11dc4374], 0
movaps xmm0, xmmword [0x1003a6f0]
movups xmmword [0x11dc4364], xmm0
call fcn.100303ad
add esp, 4
mov eax, dword [0x10f77214]
test eax, eax
jle 0x1000510d
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x10004dc6.0
mov eax, dword [0x100565cc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x37a8], eax
cmp eax, 1
jl 0x10005f17
mov ecx, dword [0x100565c4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov edx, dword [ebp - 0x37a8]
cmp edx, eax
je 0x10005f01
mov ecx, dword [0x100565d0]
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 0x10005efb
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x10005efb
mov ecx, esi
call fcn.100030a0
cmp dword [eax], 0
je 0x1000519d
mov edx, dword [ebp - 0x37a8]
mov dword [edx*4 + 0x10056630], 0
mov dword [edx*4 + 0x10056730], 0
jmp 0x10005f01
cmp byte [0x10f771f6], 0
jne 0x100051cc
mov ecx, dword [ebp - 0x37bc]
call fcn.10002c80
mov ecx, dword [ebp - 0x37b8]
mov esi, dword [eax]
call fcn.10002c80
cmp dword [eax], esi
je 0x10005efb
mov esi, dword [ebp - 0x37b8]
mov ecx, esi
call fcn.10003190
mov edx, dword [ebp - 0x37a8]
cmp dword [eax], 0x1f4
jg 0x10005f01
mov eax, dword [esi + 0x58]
shr eax, 0x18
cmp al, 0xff
jb 0x10005f01
cmp byte [edx + 0x10f7772c], 0
jne 0x10005f01
movss xmm0, dword [esi + 0x29c]
lea ecx, [ebp - 0x37f8]
subss xmm0, dword [0x100580a8]
movss dword [ebp - 0x37f8], xmm0
movss xmm0, dword [esi + 0x2a0]
subss xmm0, dword [0x100580ac]
movss dword [ebp - 0x37f4], xmm0
movss xmm0, dword [esi + 0x2a4]
subss xmm0, dword [0x100580b0]
movss dword [ebp - 0x37f0], xmm0
call fcn.10002ad0
comiss xmm0, dword [ebp - 0x3870]
ja 0x10005f01
push edx
call fcn.1002fd70
mov ecx, dword [0x11dc4498]
test al, al
push esi
push dword [ebp - 0x37c0]
mov eax, 0xc
push dword [ebp - 0x37bc]
cmovne ecx, eax
mov dword [0x11dc4498], ecx
call fcn.1001fe10
mov ecx, dword [ebp - 0x37a8]
imul edx, ecx, 0x1ba0
mov dword [ecx*4 + 0x10f05130], eax
shl ecx, 5
add ecx, eax
imul eax, ecx, 0x1ba0
lea ecx, [ebp - 0x1c04]
lea edi, [edx + 0x10f08840]
mov dword [ebp - 0x37ec], edi
mov dword [ebp - 0x37ac], eax
lea eax, [eax + 0x10f77b08]
mov dword [ebp - 0x37c4], eax
lea eax, [edx + 0x11d559b8]
push eax
call fcn.10003750
mov edi, dword [ebp - 0x37e8]
mov dword [ebp - 4], 2
cmp dword [0x10f773b4], 0
je 0x100057ce
mov eax, dword [ebp - 0x37c4]
push eax
call fcn.10020000
test al, al
je 0x100057ce
push dword [ebp - 0x37a8]
call fcn.1002fd70
test al, al
jne 0x100057ce
mov eax, dword [esi + 0x684]
mov ecx, esi
mov dword [0x10057e90], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
call eax
push dword [ebp - 0x37ec]
push esi
movss xmm0, dword [eax]
movss dword [0x10057e94], xmm0
movss xmm0, dword [eax + 4]
movss dword [0x10057e98], xmm0
movss xmm0, dword [eax + 8]
movss dword [0x10057e9c], xmm0
movss xmm0, dword [esi + 0x168]
movss xmm1, dword [esi + 0x16c]
movss xmm2, dword [esi + 0x170]
movss dword [0x10057eac], xmm0
movss dword [0x10057eb0], xmm1
movss dword [0x10057eb4], xmm2
movss xmm0, dword [esi + 0x174]
movss xmm1, dword [esi + 0x178]
movss xmm2, dword [esi + 0x17c]
movss dword [0x10057eb8], xmm0
movss dword [0x10057ebc], xmm1
movss dword [0x10057ec0], xmm2
call fcn.1002f130
mov ecx, dword [ebp - 0x37c4]
movss xmm1, dword [ecx + 0x14]
movss xmm0, dword [ecx + 0x10]
call fcn.10002a50
mov eax, dword [ebp - 0x37ac]
movaps xmm2, xmm0
mulss xmm2, dword [0x1003a5e0]
movss xmm1, dword [eax + 0x10f796bc]
movss xmm0, dword [eax + 0x10f796b8]
movss dword [ebp - 0x37e0], xmm2
call fcn.10002a50
mulss xmm0, dword [0x1003a5e0]
movaps xmm1, xmm2
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x34]
subss xmm0, dword [eax + 0x10f796dc]
mov ecx, dword [0x100565c4]
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 [0x100565cc]
movss xmm1, dword [0x1003a4e8]
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 + 0x10f796dc]
fstp dword [ebp - 0x37b0]
mulss xmm0, xmm1
mulss xmm1, dword [ebp - 0x37b0]
addss xmm0, dword [0x1003a4b8]
addss xmm1, dword [0x1003a4b8]
cvttss2si ecx, xmm0
cvttss2si eax, xmm1
add ecx, eax
cmp ecx, 0xf
jle 0x100054c9
mov ecx, 0xf
jmp 0x100055f0
mov ecx, dword [0x100565c4]
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 [0x100565cc]
movss xmm1, dword [0x1003a4e8]
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 + 0x10f796dc]
fstp dword [ebp - 0x37b0]
mulss xmm0, xmm1
mulss xmm1, dword [ebp - 0x37b0]
addss xmm0, dword [0x1003a4b8]
addss xmm1, dword [0x1003a4b8]
cvttss2si ecx, xmm0
cvttss2si eax, xmm1
add ecx, eax
cmp ecx, 1
jge 0x10005564
mov ecx, 1
jmp 0x100055f0
mov ecx, dword [0x100565c4]
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 [0x100565cc]
movss xmm1, dword [0x1003a4e8]
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 + 0x10f796dc]
fstp dword [ebp - 0x37b0]
mulss xmm0, xmm1
mulss xmm1, dword [ebp - 0x37b0]
addss xmm0, dword [0x1003a4b8]
addss xmm1, dword [0x1003a4b8]
cvttss2si ecx, xmm0
cvttss2si eax, xmm1
add ecx, eax
cmp dword [0x10f773b4], 2
mov dword [ebp - 0x37c8], ecx
jne 0x10005791
movss xmm1, dword [edx + 0x10f77b0c]
lea eax, [edx + 0x10f77b08]
movss xmm2, dword [eax + 8]
subss xmm2, dword [edx + 0x10f796b0]
subss xmm1, dword [edx + 0x10f796ac]
movss xmm0, dword [eax + 0xc]
subss xmm0, dword [edx + 0x10f796b4]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
comiss xmm2, dword [0x1003a65c]
jbe 0x10005797
cmp byte [eax], 0
jne 0x10005783
mov dword [ebp - 0x37b0], 0
test ecx, ecx
jle 0x10005783
mov edi, dword [ebp - 0x37b0]
lea eax, [ecx - 1]
lea edx, [esi + 0x1c]
mov dword [ebp - 0x37cc], eax
mov esi, dword [ebp - 0x37b8]
nop word [eax + eax]
mov eax, dword [ebp - 0x37c4]
movss xmm2, dword [ebp - 0x37d8]
mulss xmm2, dword [edx]
movss xmm1, dword [eax + 0x14]
movss xmm0, dword [eax + 0x10]
addss xmm2, dword [ebp - 0x37e0]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10002ac0
mulss xmm2, dword [0x1003a41c]
movss dword [ebp - 0x37ac], xmm0
movaps xmm0, xmm2
movss dword [ebp - 0x37b0], xmm2
call fcn.10002a80
mulss xmm0, dword [ebp - 0x37ac]
movss dword [ebp - 0x1bf4], xmm0
movss xmm0, dword [ebp - 0x37b0]
call fcn.10002ab0
mulss xmm0, dword [ebp - 0x37ac]
mov ecx, esi
movss dword [ebp - 0x1bf0], xmm0
call fcn.10002dd0
mov al, byte [eax]
not al
and al, 1
movzx eax, al
push eax
lea eax, [ebp - 0x1c04]
push eax
push ecx
call fcn.1002f840
mov edx, dword [0x100565cc]
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 0x10005690
mov edi, dword [ebp - 0x37e8]
lea eax, [ebp - 0x1c04]
jmp 0x1000579d
mov esi, dword [ebp - 0x37b8]
lea eax, [ebp - 0x1c04]
jmp 0x1000579d
mov eax, dword [ebp - 0x37c4]
mov esi, dword [ebp - 0x37b8]
push eax
push esi
call fcn.100060e0
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 [0x10f771fc]
xor ecx, ecx
mov dword [ebp - 0x37ac], ecx
test eax, eax
jne 0x10005847
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.10002ad0
mov eax, dword [0x10f771fc]
cvttss2si ecx, xmm0
mov dword [ebp - 0x37ac], ecx
mov esi, dword [ebp - 0x37b8]
cmp eax, 1
jne 0x10005866
mov ecx, esi
call fcn.10003190
mov ecx, dword [eax]
mov eax, dword [0x10f771fc]
mov dword [ebp - 0x37ac], ecx
cmp eax, 2
je 0x10005870
cmp eax, 3
jne 0x1000588c
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x24]
call eax
xor ecx, ecx
cmp eax, dword [0x100563a0]
setle cl
mov dword [ebp - 0x37ac], ecx
cmp ecx, dword [edi + 0x4a0]
jg 0x10005ee9
mov ecx, dword [ebp - 0x37c0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x10005ac5
cmp eax, 0x1d
jg 0x10005ac5
cmp eax, 0x11
jne 0x10005ac5
push esi
push dword [0x11dc4498]
mov ecx, edi
call fcn.10003880
mov ecx, dword [0x100565d0]
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 0x10005e61
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x10005e61
lea eax, [edi + 0x24]
mov dword [ebp - method.Valve::TraceFilterSkipTwoEntities.virtual_0], vtable.Valve::TraceFilterSkipTwoEntities.0
push eax
push 0x100580a8
lea ecx, [ebp - 0x3844]
mov dword [ebp - 0x380c], esi
mov dword [ebp - 0x3808], 0
call fcn.10003280
mov ecx, dword [0x100565c8]
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 [0x1003a4e8]
lahf
test ah, 0x44
jp 0x10005e61
movss xmm0, dword [edi + 0x24]
mov ecx, edi
subss xmm0, dword [0x100580a8]
movss dword [edi], xmm0
movss xmm0, dword [edi + 0x28]
subss xmm0, dword [0x100580ac]
movss dword [edi + 4], xmm0
movss xmm0, dword [edi + 0x2c]
subss xmm0, dword [0x100580b0]
movss dword [edi + 8], xmm0
call fcn.10002b10
push dword [ebp - 0x37c0]
push dword [ebp - 0x37bc]
call fcn.1002e7c0
test al, al
je 0x10005aa8
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [ebp - 0x37b4], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [ebp - 0x37e4], xmm1
movsd qword [ebp - 0x37dc], xmm2
test ah, 0x44
jp 0x10005a0a
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005a0a
xorps xmm1, xmm1
jmp 0x10005a82
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003a578]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x37d0], xmm0
jbe 0x10005a3b
addsd xmm0, qword [0x1003a588]
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 [0x1003a770]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003a578]
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 0x10005e67
mov eax, dword [0x10f77318]
test eax, eax
jne 0x10005ad2
xor ecx, ecx
jmp 0x10005aec
cmp eax, 1
jne 0x10005adc
lea ecx, [eax + 3]
jmp 0x10005aec
cmp eax, 2
mov ecx, 0x11
mov edx, 8
cmove ecx, edx
mov dword [ebp - 0x37c8], ecx
test eax, eax
mov eax, dword [0x11dc4498]
je 0x10005b02
mov eax, dword [ecx*4 + 0x11dc4330]
push esi
push eax
mov ecx, edi
mov dword [ebp - 0x37b0], eax
call fcn.10003880
mov eax, dword [0x10f7731c]
cmp eax, 1
jne 0x10005b2e
mov eax, dword [ebp - 0x37b0]
cmp eax, dword [0x11dc4498]
je 0x10005b37
jmp 0x10005ccc
cmp eax, 2
jne 0x10005ccc
mov esi, 0x84
nop dword [eax]
movss xmm0, dword [edi + esi]
lea eax, [edi + esi]
subss xmm0, dword [0x100580a8]
mov ecx, edi
movss dword [edi], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [0x100580ac]
movss dword [edi + 4], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [0x100580b0]
movss dword [edi + 8], xmm0
call fcn.10002b10
push dword [ebp - 0x37bc]
push dword [ebp - 0x37b8]
push eax
push ecx
call fcn.100034b0
test al, al
je 0x10005cba
push dword [ebp - 0x37c0]
push dword [ebp - 0x37bc]
call fcn.1002e7c0
test al, al
je 0x10005ca2
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 - 0x37e4], xmm1
movsd qword [ebp - 0x37dc], xmm0
test ah, 0x44
jp 0x10005c01
ucomisd xmm1, xmm2
lahf
test ah, 0x44
jp 0x10005c01
xorps xmm1, xmm1
jmp 0x10005c79
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003a578]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x37d0], xmm0
jbe 0x10005c2f
addsd xmm0, qword [0x1003a588]
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 [0x1003a770]
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 [0x1003a578]
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 0x10005b40
mov esi, dword [ebp - 0x37b8]
movss xmm0, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm0, dword [0x100580a8]
mov ecx, edi
movss dword [edi], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [0x100580ac]
movss dword [edi + 4], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [0x100580b0]
movss dword [edi + 8], xmm0
call fcn.10002b10
push dword [ebp - 0x37bc]
push esi
push eax
push ecx
call fcn.100034b0
test al, al
je 0x10005e40
push dword [ebp - 0x37c0]
push dword [ebp - 0x37bc]
call fcn.1002e7c0
test al, al
je 0x10005e26
movss xmm0, dword [edi + 8]
movss xmm2, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm2
movsd qword [ebp - 0x37b4], xmm0
xorps xmm0, xmm0
ucomisd xmm2, xmm0
cvtps2pd xmm1, xmm1
lahf
movsd qword [ebp - 0x37e4], xmm1
movsd qword [ebp - 0x37dc], xmm2
test ah, 0x44
jp 0x10005d88
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x10005d88
xorps xmm1, xmm1
jmp 0x10005e00
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003a578]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [ebp - 0x37d0], xmm0
jbe 0x10005db9
addsd xmm0, qword [0x1003a588]
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 [0x1003a770]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003a578]
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 0x10005e46
mov eax, dword [ebp - 0x37a8]
mov ecx, dword [ebp - 0x37c8]
sub ecx, 1
mov dword [ebp - 0x37c8], ecx
js 0x10005e67
mov eax, dword [0x10f77318]
jmp 0x10005af2
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 [0x10f773b4], 0
je 0x10005ee9
push dword [ebp - 0x37c4]
call fcn.10020000
test al, al
je 0x10005ee9
push dword [ebp - 0x37a8]
call fcn.1002fd70
test al, al
jne 0x10005ee9
mov ecx, dword [esi + 0x684]
mov eax, dword [0x10057e90]
cmp ecx, eax
je 0x10005ec9
push ecx
call fcn.10006070
mov eax, dword [0x10057e90]
mov dword [esi + 0x684], eax
mov ecx, esi
push 0x10057e94
mov eax, 0x24045620
call eax
push dword [ebp - 0x37ec]
push esi
call fcn.1002ef40
lea ecx, [ebp - 0x1c04]
mov dword [ebp - 4], 0xffffffff
call fcn.10003360
mov edx, dword [ebp - 0x37a8]
dec edx
mov dword [ebp - 0x37a8], edx
cmp edx, 1
jge 0x10005124
mov esi, dword [ebp - 0x37d4]
cmp byte [edi + 0x4a8], 0
je 0x10005f70
mov eax, dword [edi + 0x49c]
cmp eax, 0xffffffff
je 0x10005f70
cmp byte [0x10f771f3], 0
je 0x10005f5a
imul eax, eax, 0x1ba0
lea ecx, [ebp - 0x37a4]
add eax, 0x11d559b8
push eax
call fcn.10003750
or dword [esi + 0x24], 1
lea ecx, [ebp - 0x37a4]
call fcn.10003360
cmp dword [0x10f771fc], 3
je 0x10005f8f
mov eax, dword [edi + 0x49c]
mov dword [0x100563a0], eax
jmp 0x10005f86
mov eax, dword [ebp - 0x37c0]
cmp dword [eax + 0x6fc], 0
jg 0x10005f86
or dword [esi + 0x24], 0x2000
cmp dword [0x10f771fc], 3
jne 0x10005f9a
mov eax, dword [edi + 0x49c]
mov dword [0x100563a0], eax
cmp byte [0x10f771f7], 0
jne case.0x10004dc6.0
mov ecx, dword [0x100565c4]
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.1002ff8e
mov esp, ebp
pop ebp
ret 8