Function at 0x1004ce40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e8125
mov eax, dword fs:[0]
push eax
mov eax, 0x3498
call fcn.100e4d20
mov eax, dword [0x10114008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x10118020]
mov eax, dword [ebp + 8]
mov ebx, dword [0x10119904]
mov dword [ebp - 0x3470], eax
test edi, edi
je 0x1004ddad
cmp dword [0x10117fa0], 0
je 0x1004ddad
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10117f54]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10117ff0]
mov dword [ebp - 0x345c], esi
cmp eax, dword [esi + 4]
jle 0x1004cf03
push 0x10117ff0
call fcn.100e3eef
add esp, 4
cmp dword [0x10117ff0], 0xffffffff
jne 0x1004cf03
push str.m_lifeState
push str.CBasePlayer
mov dword [ebp - 4], 0
call fcn.100e2fc0
push 0x10117ff0
mov dword [0x10117fb0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [0x10117fb0]
cmp byte [edi + eax], 0
jne 0x1004ddad
mov eax, dword [0x1011984c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x10]
cmp byte [eax], 0
je 0x1004ddad
mov ecx, dword [0x10117fa0]
test ecx, ecx
je 0x1004ddad
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 2
jne 0x1004ddad
mov eax, dword [0x1011984c]
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp byte [eax], 0
je 0x1004ddad
mov eax, dword [0x1011981c]
mov ecx, ebx
vxorps xmm0, xmm0, xmm0
vmovss dword [eax + 0x58], xmm0
vmovss dword [eax + 0x5c], xmm0
vmovss dword [eax + 0x60], xmm0
call fcn.1004c000
mov ecx, dword [ebx]
cmp ecx, dword [ebx + 4]
je 0x1004ddad
mov eax, dword [0x1011981c]
mov ecx, dword [ecx + 4]
mov dword [eax + 0x44], ecx
mov eax, dword [0x1011984c]
mov eax, dword [eax + 4]
mov eax, dword [eax]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1004cfe8
cmp dword [0x101181c8], 0
jne 0x1004cfc6
push str.Team_Fortress_2
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x101181c8], eax
jmp 0x1004cfe8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x101181c8]
jne 0x1004cfe8
mov ecx, dword [0x10118038]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
je 0x1004cffd
mov eax, dword [0x1011984c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x10]
cmp byte [eax + 1], 0
jne 0x1004ddad
xor edi, edi
lea eax, [ebp - 0x3440]
push 0x1a14
vxorps xmm1, xmm1, xmm1
push edi
push eax
mov dword [ebp - 0x3454], edi
vmovss dword [ebp - 0x3444], xmm1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x3440]
call fcn.100464c0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x3468], eax
mov dword [ebp - 0x3458], ecx
vxorps xmm0, xmm0, xmm0
vmovss dword [ebp - 0x3448], xmm0
vmovss dword [ebp - 0x344c], xmm0
vmovss dword [ebp - 0x3450], xmm0
cmp eax, ecx
je 0x1004ddad
nop word [eax + eax]
mov ebx, dword [eax + 4]
mov eax, dword [0x10117ff0]
cmp eax, dword [esi + 4]
jle 0x1004d0cb
push 0x10117ff0
call fcn.100e3eef
add esp, 4
cmp dword [0x10117ff0], 0xffffffff
jne 0x1004d0c5
push str.m_lifeState
push str.CBasePlayer
mov dword [ebp - 4], 1
call fcn.100e2fc0
push 0x10117ff0
mov dword [0x10117fb0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov ecx, dword [ebp - 0x3458]
mov eax, dword [0x10117fb0]
cmp byte [eax + ebx], 0
jne 0x1004d200
test ebx, ebx
je 0x1004d8b4
lea esi, [ebx + 8]
test esi, esi
je 0x1004d8b4
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1004d8b4
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xf7
jne 0x1004d8b4
mov ecx, ebx
call fcn.100dbc90
test al, al
jne 0x1004d549
mov ecx, dword [ebp - 0x345c]
mov eax, dword [0x10117fc8]
cmp eax, dword [ecx + 4]
jle 0x1004d17b
push 0x10117fc8
call fcn.100e3eef
add esp, 4
cmp dword [0x10117fc8], 0xffffffff
jne 0x1004d17b
push str.m_flSimulationTime
push str.CBaseEntity
mov dword [ebp - 4], 2
call fcn.100e2fc0
push 0x10117fc8
mov dword [0x10117fc4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [0x10117fc4]
mov edi, ebx
mov ecx, ebx
mov dword [ebp - 0x3454], edi
vmovss xmm0, dword [eax + ebx]
vmovss dword [ebp - 0x3444], xmm0
call fcn.10021800
mov ecx, ebx
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x3448], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x344c], xmm0
vmovss xmm0, dword [eax + 8]
vmovss dword [ebp - 0x3464], xmm0
call fcn.10021760
mov ecx, ebx
mov esi, eax
call fcn.100216c0
vmovss xmm0, dword [esi + 8]
vaddss xmm0, xmm0, dword [eax + 8]
vmulss xmm0, xmm0, dword [0x10102c68]
vaddss xmm0, xmm0, dword [ebp - 0x3464]
vmovss dword [ebp - 0x3450], xmm0
mov esi, dword [ebp - 0x345c]
mov ecx, dword [ebp - 0x3458]
mov eax, dword [ebp - 0x3468]
add eax, 8
mov dword [ebp - 0x3468], eax
cmp eax, ecx
jne 0x1004d070
test edi, edi
je 0x1004ddad
mov eax, dword [0x10117ff0]
cmp eax, dword [esi + 4]
jle 0x1004d271
push 0x10117ff0
call fcn.100e3eef
add esp, 4
cmp dword [0x10117ff0], 0xffffffff
jne 0x1004d271
push str.m_lifeState
push str.CBasePlayer
mov dword [ebp - 4], 5
call fcn.100e2fc0
push 0x10117ff0
mov dword [0x10117fb0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [0x10117fb0]
cmp byte [edi + eax], 0
jne 0x1004ddad
mov eax, dword [0x1011984c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x10], 0
je 0x1004d30d
mov eax, dword [0x1011803c]
mov ebx, dword [0x10118020]
cmp eax, dword [esi + 4]
jle 0x1004d2e9
push 0x1011803c
call fcn.100e3eef
add esp, 4
cmp dword [0x1011803c], 0xffffffff
jne 0x1004d2e9
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 6
call fcn.100e2fc0
push 0x1011803c
mov dword [0x1011802c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [0x1011802c]
cmp dword [ebx + eax], 8
je 0x1004d30d
mov ecx, edi
call fcn.100dbc90
test al, al
je 0x1004d30d
mov eax, dword [0x1011981c]
mov eax, dword [eax + 0x8c]
mov byte [eax], 1
mov eax, dword [0x1011984c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x10], 0
jne 0x1004db86
lea ebx, [edi + 8]
mov dword [ebp - 0x346c], ebx
test ebx, ebx
je 0x1004db40
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1004db40
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xf7
jne 0x1004db40
vmovss xmm0, dword [ebp - 0x3450]
mov eax, dword [0x10118020]
mov ebx, edi
vmovss xmm1, dword [ebp - 0x3444]
vmovss dword [ebp - 0x3468], xmm0
vmovss xmm0, dword [ebp - 0x344c]
vmovss dword [ebp - 0x3464], xmm0
vmovss xmm0, dword [ebp - 0x3448]
mov dword [ebp - 0x3460], eax
mov eax, dword [0x1011803c]
vmovss dword [ebp - 0x3458], xmm1
vmovss dword [ebp - 0x345c], xmm0
cmp eax, dword [esi + 4]
jle 0x1004d401
push 0x1011803c
call fcn.100e3eef
add esp, 4
cmp dword [0x1011803c], 0xffffffff
jne 0x1004d3f9
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 7
call fcn.100e2fc0
push 0x1011803c
mov dword [0x1011802c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
vmovss xmm1, dword [ebp - 0x3458]
mov eax, dword [0x1011802c]
mov edi, ebx
mov ecx, dword [ebp - 0x3460]
vmovss xmm2, dword [ebp - 0x3468]
vmovss xmm3, dword [ebp - 0x3464]
vmovss xmm4, dword [ebp - 0x345c]
cmp dword [ecx + eax], 8
vmovaps xmm0, xmm1
mov dword [ebp - 0x3454], edi
vmovss dword [ebp - 0x3444], xmm0
vmovss dword [ebp - 0x3450], xmm2
vmovss dword [ebp - 0x344c], xmm3
vmovss dword [ebp - 0x3448], xmm4
je case.default.0x1004d542
mov ecx, ebx
mov dword [ebp - 0x3454], edi
vmovss dword [ebp - 0x3444], xmm1
vmovss dword [ebp - 0x3450], xmm2
vmovss dword [ebp - 0x344c], xmm3
vmovss dword [ebp - 0x3448], xmm4
call fcn.100dbc90
test al, al
je 0x1004db86
mov ecx, dword [ebp - 0x346c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [0x10117f9c]
lea esi, [ebp - 0x98]
push esi
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3460], eax
lea eax, [ebp - 0x3460]
push eax
call fcn.10027f40
vmovss xmm1, dword [ebp - 0x3458]
vmovss xmm2, dword [ebp - 0x3468]
vmovss xmm3, dword [ebp - 0x3464]
mov eax, dword [eax]
vmovss xmm4, dword [ebp - 0x345c]
dec eax
mov dword [ebp - 0x3454], edi
vmovaps xmm0, xmm1
vmovss dword [ebp - 0x3444], xmm0
vmovss dword [ebp - 0x3450], xmm2
vmovss dword [ebp - 0x344c], xmm3
vmovss dword [ebp - 0x3448], xmm4
cmp eax, 3
ja case.default.0x1004d542
mov dword [ebp - 0x3454], edi
vmovss dword [ebp - 0x3444], xmm0
vmovss dword [ebp - 0x3450], xmm2
vmovss dword [ebp - 0x344c], xmm3
vmovss dword [ebp - 0x3448], xmm4
jmp dword [eax*4 + 0x1004ddcc]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
call eax
push eax
lea eax, [ebp - 0x1a28]
push eax
call fcn.100468f0
mov eax, 0x1a14
call fcn.100e4d20
lea eax, [ebp - 0x1a28]
mov ecx, esp
push eax
call fcn.10046780
call fcn.100449b0
test al, al
je 0x1004d1f4
mov esi, dword [0x10118020]
mov ecx, esi
call fcn.10021800
mov ecx, esi
mov edi, eax
call fcn.10021af0
vmovss xmm0, dword [edi]
push 0x4600400b
vaddss xmm2, xmm0, dword [eax]
vmovss xmm0, dword [edi + 4]
vaddss xmm1, xmm0, dword [eax + 4]
vmovss xmm0, dword [edi + 8]
vaddss xmm0, xmm0, dword [eax + 8]
lea eax, [ebp - 0x19ec]
push eax
lea eax, [ebp - 0x348c]
push eax
push ebx
push dword [0x10118020]
vmovss dword [ebp - 0x348c], xmm2
vmovss dword [ebp - 0x3488], xmm1
vmovss dword [ebp - 0x3484], xmm0
call fcn.100d5420
mov esi, dword [ebp - 0x345c]
test al, al
je 0x1004d9ff
mov eax, dword [0x1011803c]
mov edi, dword [0x10118020]
cmp eax, dword [esi + 4]
jle 0x1004d653
push 0x1011803c
call fcn.100e3eef
add esp, 4
cmp dword [0x1011803c], 0xffffffff
jne 0x1004d653
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 3
call fcn.100e2fc0
push 0x1011803c
mov dword [0x1011802c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [0x1011802c]
cmp dword [edi + eax], 8
jne 0x1004d865
mov eax, dword [0x10117ffc]
cmp eax, dword [esi + 4]
jle 0x1004d6b4
push 0x10117ffc
call fcn.100e3eef
add esp, 4
cmp dword [0x10117ffc], 0xffffffff
jne 0x1004d6b4
push str.m_angEyeAngles_0_
push str.CTFPlayer
mov dword [ebp - 4], 4
call fcn.100e2fc0
push 0x10117ffc
mov dword [0x10117f74], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [0x10117f74]
mov esi, dword [0x10118020]
add eax, ebx
mov ecx, esi
mov dword [ebp - 0x3460], eax
call fcn.10021800
mov ecx, esi
mov edi, eax
call fcn.10021af0
vmovss xmm0, dword [edi]
vaddss xmm1, xmm0, dword [eax]
vmovss xmm0, dword [edi + 4]
vaddss xmm2, xmm0, dword [eax + 4]
vmovss xmm0, dword [edi + 8]
vaddss xmm0, xmm0, dword [eax + 8]
vsubss xmm3, xmm1, dword [ebp - 0x19ec]
vsubss xmm0, xmm0, dword [ebp - 0x19e4]
vsubss xmm1, xmm2, dword [ebp - 0x19e8]
vmovss dword [ebp - 0x3474], xmm0
vmovss dword [ebp - 0x346c], xmm1
vmulss xmm1, xmm1, xmm1
vmulss xmm0, xmm3, xmm3
vaddss xmm0, xmm1, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vxorpd xmm1, xmm1, xmm1
vucomisd xmm1, xmm0
vmovss dword [ebp - 0x3464], xmm3
ja 0x1004d743
vsqrtsd xmm0, xmm0, xmm0
jmp 0x1004d748
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
vmovss xmm1, dword [ebp - 0x3474]
vcvtsd2ss xmm0, xmm0, xmm0
vdivss xmm0, xmm1, xmm0
vcvtss2sd xmm0, xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
vcvtsd2ss xmm0, xmm0, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vmulsd xmm0, xmm0, qword [0x10102d10]
vcvtsd2ss xmm0, xmm0, xmm0
vmovss dword [ebp - 0x3480], xmm0
vmovss xmm0, dword [ebp - 0x346c]
vdivss xmm0, xmm0, dword [ebp - 0x3464]
vcvtss2sd xmm0, xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
vcvtsd2ss xmm0, xmm0, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vmulsd xmm0, xmm0, qword [0x10102d10]
vcvtsd2ss xmm2, xmm0, xmm0
vmovss xmm0, dword [ebp - 0x3464]
vxorps xmm1, xmm1, xmm1
vcomiss xmm0, xmm1
vmovss dword [ebp - 0x347c], xmm2
vmovss dword [ebp - 0x3478], xmm1
jb 0x1004d7dc
vaddss xmm0, xmm2, dword [0x10102e2c]
vmovss dword [ebp - 0x347c], xmm0
mov esi, dword [0x10118020]
mov ecx, esi
call fcn.10021800
mov ecx, esi
mov edi, eax
call fcn.10021af0
vmovss xmm0, dword [edi]
vmovss xmm2, dword [ebp - 0x19ec]
sub esp, 0xc
vaddss xmm1, xmm0, dword [eax]
vmovss xmm0, dword [edi + 4]
vaddss xmm3, xmm0, dword [eax + 4]
vmovss xmm0, dword [edi + 8]
vaddss xmm0, xmm0, dword [eax + 8]
mov eax, esp
push dword [ebp - 0x3460]
vsubss xmm2, xmm2, xmm1
vmovss xmm1, dword [ebp - 0x19e8]
vsubss xmm1, xmm1, xmm3
vmovss xmm3, dword [ebp - 0x19e4]
vsubss xmm0, xmm3, xmm0
vmovss dword [eax], xmm2
vmovss dword [eax + 4], xmm1
vmovss dword [eax + 8], xmm0
lea eax, [ebp - 0x3480]
push eax
call fcn.1004cc00
mov esi, dword [ebp - 0x345c]
test al, al
je 0x1004d9ff
lea eax, [ebp - 0x1a28]
mov edi, ebx
push eax
lea ecx, [ebp - 0x3440]
mov dword [ebp - 0x3454], edi
call fcn.10025270
vmovss xmm2, dword [ebp - 0x19ec]
vmovss xmm1, dword [ebp - 0x19e8]
vmovss xmm0, dword [ebp - 0x19e4]
vmovss dword [ebp - 0x3448], xmm2
vmovss dword [ebp - 0x344c], xmm1
vmovss dword [ebp - 0x3450], xmm0
jmp 0x1004d1fa
mov ecx, ebx
call fcn.10021800
mov ecx, ebx
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x3498], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x3494], xmm0
vmovss xmm0, dword [eax + 8]
vmovss dword [ebp - 0x3460], xmm0
call fcn.10021760
mov ecx, ebx
mov esi, eax
call fcn.100216c0
vmovss xmm0, dword [eax + 8]
vaddss xmm0, xmm0, dword [esi + 8]
vmulss xmm0, xmm0, dword [0x10102c68]
vaddss xmm0, xmm0, dword [ebp - 0x3460]
mov esi, dword [0x10118020]
mov ecx, esi
vmovss dword [ebp - 0x3490], xmm0
call fcn.10021800
mov ecx, esi
mov edi, eax
call fcn.10021af0
vmovss xmm0, dword [edi]
push 0x4600400b
vaddss xmm2, xmm0, dword [eax]
vmovss xmm0, dword [edi + 4]
vaddss xmm1, xmm0, dword [eax + 4]
vmovss xmm0, dword [edi + 8]
vaddss xmm0, xmm0, dword [eax + 8]
lea eax, [ebp - 0x3498]
push eax
lea eax, [ebp - 0x34a4]
push eax
push ebx
push dword [0x10118020]
vmovss dword [ebp - 0x34a4], xmm2
vmovss dword [ebp - 0x34a0], xmm1
vmovss dword [ebp - 0x349c], xmm0
call fcn.100d5420
test al, al
je 0x1004d9f4
vmovss xmm0, dword [0x10102f30]
mov edi, ebx
mov ecx, ebx
vmovss dword [ebp - 0x3444], xmm0
mov dword [ebp - 0x3454], edi
call fcn.10021800
mov ecx, ebx
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x3448], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x344c], xmm0
vmovss xmm0, dword [eax + 8]
vmovss dword [ebp - 0x3460], xmm0
call fcn.10021760
mov ecx, ebx
mov esi, eax
call fcn.100216c0
vmovss xmm0, dword [eax + 8]
vaddss xmm0, xmm0, dword [esi + 8]
vmulss xmm0, xmm0, dword [0x10102c68]
vaddss xmm0, xmm0, dword [ebp - 0x3460]
jmp 0x1004d1ec
mov edi, dword [ebp - 0x3454]
jmp 0x1004d1f4
mov edi, dword [ebp - 0x3454]
jmp 0x1004d1fa
mov eax, dword [0x1011984c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x14], 0
je 0x1004da29
mov eax, dword [0x1011981c]
mov eax, dword [eax + 0x8c]
mov byte [eax], 1
mov edi, ebx
vmovaps xmm0, xmm1
mov dword [ebp - 0x3454], edi
vmovss dword [ebp - 0x3444], xmm0
vmovss dword [ebp - 0x3450], xmm2
vmovss dword [ebp - 0x344c], xmm3
vmovss dword [ebp - 0x3448], xmm4
jmp case.default.0x1004d542
mov eax, dword [0x1011984c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x11], 0
je 0x1004da29
mov eax, dword [0x1011981c]
mov edi, ebx
vmovaps xmm0, xmm1
mov dword [ebp - 0x3454], edi
vmovss dword [ebp - 0x3444], xmm0
mov eax, dword [eax + 0x8c]
vmovss dword [ebp - 0x3450], xmm2
vmovss dword [ebp - 0x344c], xmm3
vmovss dword [ebp - 0x3448], xmm4
mov byte [eax], 1
jmp case.default.0x1004d542
mov eax, dword [0x1011984c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x12], 0
je 0x1004da29
mov eax, dword [0x1011981c]
mov edi, ebx
vmovaps xmm0, xmm1
mov dword [ebp - 0x3454], edi
vmovss dword [ebp - 0x3444], xmm0
mov eax, dword [eax + 0x8c]
vmovss dword [ebp - 0x3450], xmm2
vmovss dword [ebp - 0x344c], xmm3
vmovss dword [ebp - 0x3448], xmm4
mov byte [eax], 1
jmp case.default.0x1004d542
mov eax, dword [0x1011984c]
mov edi, ebx
vmovaps xmm0, xmm1
mov dword [ebp - 0x3454], edi
vmovss dword [ebp - 0x3444], xmm0
mov eax, dword [eax + 0x14]
vmovss dword [ebp - 0x3450], xmm2
vmovss dword [ebp - 0x344c], xmm3
vmovss dword [ebp - 0x3448], xmm4
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x13], 0
je case.default.0x1004d542
jmp 0x1004da1b
vmovss xmm0, dword [ebp - 0x3444]
vmovss dword [ebp - 0x3444], xmm0
vmovss xmm0, dword [ebp - 0x3450]
vmovss dword [ebp - 0x3450], xmm0
vmovss xmm0, dword [ebp - 0x344c]
vmovss dword [ebp - 0x344c], xmm0
vmovss xmm0, dword [ebp - 0x3448]
mov dword [ebp - 0x3454], edi
vmovss dword [ebp - 0x3448], xmm0
vmovss xmm0, dword [ebp - 0x3444]
mov ebx, dword [ebp - 0x3470]
push ebx
vmovss dword [ebp - 0x3464], xmm0
mov dword [ebp - 0x346c], edi
or dword [ebx + 0x24], 1
call fcn.100d6820
test al, al
je 0x1004ddad
mov eax, dword [0x1011981c]
vmovss xmm0, dword [ebp - 0x3448]
mov esi, dword [0x10118020]
mov ecx, esi
vmovss dword [eax + 0x58], xmm0
vmovss xmm0, dword [ebp - 0x344c]
vmovss dword [eax + 0x5c], xmm0
vmovss xmm0, dword [ebp - 0x3450]
vmovss dword [eax + 0x60], xmm0
call fcn.10021800
mov ecx, esi
mov edi, eax
call fcn.10021af0
vmovss xmm0, dword [edi]
vaddss xmm0, xmm0, dword [eax]
vsubss xmm2, xmm0, dword [ebp - 0x3448]
vmovss xmm0, dword [edi + 4]
vaddss xmm0, xmm0, dword [eax + 4]
vsubss xmm1, xmm0, dword [ebp - 0x344c]
vmovss xmm0, dword [edi + 8]
vaddss xmm0, xmm0, dword [eax + 8]
vsubss xmm0, xmm0, dword [ebp - 0x3450]
vmovss dword [ebp - 0x3470], xmm0
vmovss dword [ebp - 0x3460], xmm1
vmulss xmm1, xmm1, xmm1
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vxorpd xmm1, xmm1, xmm1
vucomisd xmm1, xmm0
vmovss dword [ebp - 0x3468], xmm2
ja 0x1004dc62
vsqrtsd xmm0, xmm0, xmm0
jmp 0x1004dc67
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
vmovss xmm1, dword [ebp - 0x3470]
vcvtsd2ss xmm0, xmm0, xmm0
vdivss xmm0, xmm1, xmm0
vcvtss2sd xmm0, xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
vcvtsd2ss xmm0, xmm0, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vmulsd xmm0, xmm0, qword [0x10102d10]
vcvtsd2ss xmm0, xmm0, xmm0
vmovss dword [ebp - 0x3470], xmm0
vmovss xmm0, dword [ebp - 0x3460]
vdivss xmm0, xmm0, dword [ebp - 0x3468]
vcvtss2sd xmm0, xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
vcvtsd2ss xmm0, xmm0, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vmulsd xmm0, xmm0, qword [0x10102d10]
vcvtsd2ss xmm2, xmm0, xmm0
vmovss xmm0, dword [ebp - 0x3468]
vxorps xmm1, xmm1, xmm1
vcomiss xmm0, xmm1
jb 0x1004dce3
vaddss xmm2, xmm2, dword [0x10102e2c]
mov esi, dword [ebp - 0x3454]
vmovss xmm0, dword [ebp - 0x3470]
vmovss dword [ebx + 0xc], xmm0
vmovss dword [ebx + 0x10], xmm2
lea edi, [esi + 8]
vmovss dword [ebx + 0x14], xmm1
test edi, edi
je 0x1004ddad
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1004dd6e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xf7
jne 0x1004dd6e
vmovss xmm0, dword [ebp - 0x3464]
mov esi, dword [ebp - 0x346c]
mov ecx, esi
vmovss dword [ebp - 0x3444], xmm0
call fcn.100dbc90
test al, al
jne 0x1004dd6e
mov eax, dword [0x10118044]
vmovss xmm0, dword [ebp - 0x3464]
vdivss xmm0, xmm0, dword [eax + 0x1c]
vaddss xmm0, xmm0, dword [0x10102c68]
vcvttss2si eax, xmm0
mov dword [ebx + 8], eax
jmp 0x1004ddad
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1004ddad
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xf7
jne 0x1004ddad
vmovss xmm0, dword [ebp - 0x3444]
vcomiss xmm0, dword [0x10102f30]
jbe 0x1004ddad
push esi
lea eax, [ebp - 0x3440]
push eax
push ebx
call fcn.10044b00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e38ea
mov esp, ebp
pop ebp
ret 4