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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x1003400c]
xor eax, esp
mov dword [esp + 0x144], 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 [0x100349dc]
mov dword [esp + 0x14], edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je case.0x10004a55.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [esp + 0x14], eax
test eax, eax
je case.0x10004a55.0
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x4a4]
call edx
test eax, eax
js case.0x10004a55.0
cmp eax, 0x1d
jg case.0x10004a55.0
cmp eax, 0x1c
ja case.0x10004a55.1
movzx eax, byte [eax + 0x10005b44]
jmp dword [eax*4 + 0x10005b3c]
push dword [esp + 0x14]
lea eax, [esp + 0xb4]
push eax
call fcn.1001a9a0
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
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x10004bd0
cmp eax, 0x1d
jg 0x10004bd0
cmp eax, 0x11
jne 0x10004bd0
mov edx, dword [0x1004520c]
mov eax, 0xa
cmp byte [0x10045205], 0
mov ecx, edx
cmovne ecx, eax
jmp 0x10004bd8
mov edx, dword [0x1004520c]
mov ecx, edx
mov dword [0x10222410], ecx
mov eax, 0x10034120
mov dword [0x100340d8], ecx
nop dword [eax]
cmp dword [eax], ecx
jne 0x10004bf6
mov dword [eax], edx
sub eax, 4
cmp eax, 0x100340dc
jge 0x10004bf0
mov eax, dword [0x10045220]
test eax, eax
jle 0x10004c19
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x10004a55.0
mov eax, dword [0x100349d8]
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], eax
cmp eax, 1
jl 0x10005aa2
mov esi, eax
mov ecx, dword [0x100349d0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp esi, eax
je 0x10005a90
mov ecx, dword [0x100349dc]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x10005a90
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x10005a90
mov ecx, dword [esp + 0x18]
call fcn.10002d90
cmp dword [eax], 0
jne 0x10005a90
cmp byte [0x10045201], 0
jne 0x10004cad
mov ecx, dword [esp + 0x10]
call fcn.10002970
mov ecx, dword [esp + 0x18]
mov esi, dword [eax]
call fcn.10002970
cmp dword [eax], esi
mov esi, dword [esp + 0xc]
je 0x10005a90
mov ecx, dword [esp + 0x18]
call fcn.10002e80
cmp dword [eax], 0x1f4
jg 0x10005a90
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x58]
shr eax, 0x18
cmp al, 0xff
jb 0x10005a90
cmp byte [esi + 0x1004564c], 0
jne 0x10005a90
movss xmm0, dword [ecx + 0x29c]
subss xmm0, dword [0x10036898]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [ecx + 0x2a0]
subss xmm0, dword [0x1003689c]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [ecx + 0x2a4]
lea ecx, [esp + 0x58]
subss xmm0, dword [0x100368a0]
movss dword [esp + 0x60], xmm0
call fcn.10002930
comiss xmm0, dword [esp + 0xc4]
ja 0x10005a90
push esi
call fcn.100278f0
mov ecx, dword [0x10222410]
test al, al
mov eax, 0xc
cmovne ecx, eax
mov dword [0x10222410], ecx
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [0x10045208], ecx
jne 0x10004dc1
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
lea ecx, [esp + 0x64]
movss xmm0, dword [eax]
subss xmm0, dword [esi]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 4]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
movss dword [esp + 0x6c], xmm0
call fcn.10002930
mov esi, dword [esp + 0xc]
cvttss2si ecx, xmm0
mov dword [esp + 0x24], ecx
cmp dword [0x10045208], 1
jne 0x10004dd9
mov ecx, dword [esp + 0x18]
call fcn.10002e80
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov eax, dword [0x10045208]
cmp eax, 2
je 0x10004de8
cmp eax, 3
jne 0x10004e05
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 [0x10034690]
setle cl
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi + 0x1a0]
jg 0x10005a90
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x10005037
cmp eax, 0x1d
jg 0x10005037
cmp eax, 0x11
jne 0x10005037
push dword [esp + 0x18]
mov ecx, edi
push dword [0x10222410]
call fcn.100032e0
mov ecx, dword [0x100349dc]
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 0x10005a8c
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x10005a8c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], eax
lea eax, [edi + 0x24]
push eax
push 0x10036898
mov dword [esp + 0x78], vtable.Valve::TraceFilterSkipTwoEntities.0
mov dword [esp + 0x80], 0
call fcn.10002f70
mov ecx, dword [0x100349d4]
lea edx, [esp + 0xf0]
push edx
lea edx, [esp + 0x74]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x84]
push 0x46004003
push edx
mov eax, dword [eax + 0x10]
call eax
movss xmm0, dword [esp + 0x11c]
ucomiss xmm0, dword [0x10030e78]
lahf
test ah, 0x44
jp 0x10005a8c
movss xmm4, dword [edi + 0x24]
subss xmm4, dword [0x10036898]
push dword [esp + 0x14]
push esi
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [edi + 0x28]
subss xmm3, dword [0x1003689c]
mulss xmm0, xmm4
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [edi + 0x2c]
subss xmm2, dword [0x100368a0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10030d94]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10030ed0]
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.10026930
test al, al
je 0x10005a78
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 0x10004fce
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x10004fce
xorps xmm1, xmm1
jmp 0x10005a54
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10030f00]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x50], xmm0
jbe 0x10004ffe
addsd xmm0, qword [0x10030f08]
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 [0x10031060]
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 0x10005a4c
cmp byte [0x100451ff], 0
je 0x100056fe
cmp byte [0x10045200], 0
je 0x10005414
mov eax, 0x10034120
mov dword [esp + 0x50], eax
nop word [eax + eax]
push dword [esp + 0x18]
mov ecx, edi
push dword [eax]
call fcn.100032e0
mov esi, 0x84
nop dword [eax]
nop word [eax + eax]
movss xmm4, dword [edi + esi]
lea eax, [edi + esi]
subss xmm4, dword [0x10036898]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003689c]
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 [0x100368a0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10030d94]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10030ed0]
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.10003040
test al, al
je 0x10005226
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.10026930
test al, al
je 0x10005212
movss xmm2, dword [edi + 8]
movss xmm0, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm2, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm2
xorps xmm2, xmm2
ucomisd xmm0, xmm2
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x48], xmm1
movsd qword [esp + 0x40], xmm0
test ah, 0x44
jp 0x10005182
ucomisd xmm1, xmm2
lahf
test ah, 0x44
jp 0x10005182
xorps xmm1, xmm1
jmp 0x100051eb
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10030f00]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x100051ac
addsd xmm0, qword [0x10030f08]
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 [0x10031060]
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]
movaps xmm2, xmm0
mulsd xmm2, qword [0x10030f00]
mov eax, dword [esp + 0x34]
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 + 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 0x10005080
mov eax, dword [esp + 0x50]
sub eax, 4
mov dword [esp + 0x50], eax
cmp eax, 0x100340d8
jge 0x10005060
mov esi, 0x10034120
nop dword [eax]
push dword [esp + 0x18]
mov ecx, edi
push dword [esi]
call fcn.100032e0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x10036898]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003689c]
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 [0x100368a0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10030d94]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10030ed0]
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.10003040
test al, al
je 0x10005400
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.10026930
test al, al
je 0x100053ec
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 0x1000535f
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x1000535f
xorps xmm1, xmm1
jmp 0x100053c8
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10030f00]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x1000538c
addsd xmm0, qword [0x10030f08]
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 [0x10031060]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10030f00]
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, 0x100340d8
jge 0x10005250
jmp 0x10005a8c
push dword [esp + 0x18]
mov ecx, edi
push dword [0x100340d8]
call fcn.100032e0
mov dword [esp + 0x50], 8
lea esi, [edi + 0x84]
nop dword [eax]
nop word [eax + eax]
movss xmm4, dword [esi]
subss xmm4, dword [0x10036898]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [esi + 4]
subss xmm3, dword [0x1003689c]
mulss xmm0, xmm4
push esi
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm1, xmm3
movss xmm2, dword [esi + 8]
subss xmm2, dword [0x100368a0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10030d94]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10030ed0]
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.10003040
test al, al
je 0x100055df
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.10026930
test al, al
je 0x100055cb
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 0x1000553e
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x1000553e
xorps xmm1, xmm1
jmp 0x100055a7
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10030f00]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x1000556b
addsd xmm0, qword [0x10030f08]
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 [0x10031060]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10030f00]
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 0x10005440
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x10036898]
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 [0x1003689c]
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 [0x100368a0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10030d94]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10030ed0]
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.10003040
test al, al
je 0x10005a8c
push dword [esp + 0x14]
push esi
call fcn.10026930
test al, al
je 0x10005a78
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 0x100056f6
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x100056f6
xorps xmm1, xmm1
jmp 0x10005a54
movaps xmm0, xmm2
jmp 0x100059ee
cmp byte [0x10045200], 0
je 0x100058d7
mov esi, 0x10034120
push dword [esp + 0x18]
mov ecx, edi
push dword [esi]
call fcn.100032e0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x10036898]
push dword [esp + 0x10]
push dword [esp + 0x1c]
movss dword [edi], xmm4
movaps xmm0, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x1003689c]
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 [0x100368a0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10030d94]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10030ed0]
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.10003040
test al, al
je 0x100058c3
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.10026930
test al, al
je 0x100058af
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 0x1000581f
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1000581f
xorps xmm1, xmm1
jmp 0x1000588b
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10030f00]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x1000584f
addsd xmm0, qword [0x10030f08]
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 [0x10031060]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10030f00]
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, 0x100340d8
jge 0x10005710
jmp 0x10005a8c
push dword [esp + 0x18]
mov ecx, edi
push dword [0x100340d8]
call fcn.100032e0
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x10036898]
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 [0x1003689c]
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 [0x100368a0]
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10030d94]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10030ed0]
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.10003040
test al, al
je 0x10005a8c
push dword [esp + 0x14]
push esi
call fcn.10026930
test al, al
je 0x10005a78
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 0x100059e8
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x100059e8
xorps xmm1, xmm1
jmp 0x10005a54
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10030f00]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x10005a18
addsd xmm0, qword [0x10030f08]
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 [0x10031060]
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 [0x10030f00]
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 0x10004c30
mov esi, dword [esp + 0x34]
mov al, byte [edi + 0x1a8]
mov cl, al
test al, al
je 0x10005aca
cmp dword [edi + 0x19c], 0xffffffff
je 0x10005aca
cmp byte [0x100451fd], 0
je 0x10005aca
or dword [esi + 0x24], 1
mov cl, byte [edi + 0x1a8]
cmp dword [0x10045208], 3
jne 0x10005ade
mov eax, dword [edi + 0x19c]
mov dword [0x10034690], eax
test cl, cl
je 0x10005af8
cmp dword [0x10045208], 3
je 0x10005b0c
mov eax, dword [edi + 0x19c]
mov dword [0x10034690], eax
jmp 0x10005b0c
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x6fc], 0
jg 0x10005b0c
or dword [esi + 0x24], 0x2000
cmp byte [0x10045202], 0
jne case.0x10004a55.0
mov ecx, dword [0x100349d0]
lea eax, [esi + 0xc]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
call fcn.10027a7e
mov esp, ebp
pop ebp
ret 8