Function at 0x10038cb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018e1b6
push eax
mov dword fs:[0], esp
mov eax, dword [0x1131f3ec]
push ebx
sub esp, 0x368
mov ecx, dword [eax]
push esi
push edi
test ecx, ecx
je 0x10039ba2
call fcn.100ce2c0
test al, al
je 0x10039ba2
mov eax, dword [0x1131f3ec]
mov ecx, dword [eax]
call fcn.1003a980
test byte [eax], 1
jne 0x10039ba2
mov eax, dword [0x1131f3ec]
mov ecx, dword [eax]
call fcn.100cec00
cmp eax, 9
je 0x10039ba2
cmp eax, 8
je 0x10039ba2
push dword [0x1131f4e4]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
test ax, ax
jne 0x10039ba2
push dword [0x1131f4f0]
call esi
test ax, ax
jne 0x10039ba2
mov eax, dword [0x1131f3ec]
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [eax]
call fcn.100ce7d0
mov eax, dword [0x1131f3ec]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x1131f3ec]
movq qword [ebp - 0x50], xmm0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movss xmm5, dword [0x1019b9c8]
xorps xmm6, xmm6
movss dword [ebp - 0x18], xmm6
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x40], xmm0
movss xmm7, dword [ebp - 0x40]
movss xmm1, dword [ebp - 0x3c]
movaps xmm0, xmm7
subss xmm1, dword [ebp - 0x4c]
subss xmm0, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
movss xmm6, dword [ebp - 0x38]
subss xmm6, dword [ebp - 0x48]
mulss xmm1, xmm5
mov dword [ebp - 0x70], 0x110da528
mulss xmm0, xmm5
movss dword [ebp - 0x6c], xmm1
mulss xmm1, xmm1
movss dword [ebp - 0x68], xmm0
mulss xmm0, xmm0
mulss xmm6, xmm5
addss xmm1, xmm0
movss xmm3, dword [ebp - 0x38]
addss xmm7, dword [ebp - 0x50]
movaps xmm0, xmm6
movss dword [ebp - 0x2c], xmm6
addss xmm3, dword [ebp - 0x48]
mulss xmm0, xmm0
movss xmm6, dword [ebp - 0x18]
mulss xmm7, xmm5
addss xmm1, xmm0
mulss xmm3, xmm5
movsd xmm0, qword [0x110da628]
movaps xmm2, xmm7
movss dword [ebp - 0x74], xmm7
movss dword [ebp - 0x7c], xmm3
cvtps2pd xmm1, xmm1
comisd xmm0, xmm1
movss xmm1, dword [ebp - 0x3c]
addss xmm1, dword [ebp - 0x4c]
movss xmm0, dword [0x1019b9ec]
seta byte [ebp - 0x11]
mulss xmm2, xmm0
mulss xmm1, xmm5
movss dword [ebp - 0x80], xmm2
movss dword [ebp - 0x78], xmm1
mulss xmm1, xmm0
movss dword [ebp - 0x84], xmm1
movaps xmm1, xmm3
mulss xmm1, xmm0
movss dword [ebp - 0x44], xmm1
nop dword [eax]
cvtps2pd xmm0, xmm6
mov dword [ebp - 0x1f0], 0x7f800000
mov dword [ebp - 0x1f4], 0x7f800000
mov dword [ebp - 0x1f8], 0x7f800000
mov dword [ebp - 0x1e4], 0x7f800000
mov dword [ebp - 0x1e8], 0x7f800000
mov dword [ebp - 0x1ec], 0x7f800000
mov dword [ebp - 0x1d8], 0x7f800000
mov dword [ebp - 0x1dc], 0x7f800000
mov dword [ebp - 0x1e0], 0x7f800000
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
addss xmm0, dword [ebp - 0xa0]
subss xmm0, dword [ebp - 0xa0]
movss dword [ebp - 0x20], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm3, dword [ebp - 0x9c]
xorps xmm1, xmm1
movss xmm4, dword [ebp - 0x98]
movss xmm2, dword [ebp - 0x20]
cvtsd2ss xmm1, xmm0
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x15b], 1
movaps xmm0, xmm4
movss dword [ebp - 0x190], xmm2
addss xmm1, xmm3
mulss xmm2, xmm2
subss xmm0, xmm4
subss xmm1, xmm3
movss dword [ebp - 0x188], xmm0
mulss xmm0, xmm0
movss dword [ebp - 0x18c], xmm1
mulss xmm1, xmm1
addss xmm2, xmm1
addss xmm2, xmm0
ucomiss xmm2, dword [0x1019b994]
lahf
test ah, 0x44
jp 0x10038fa4
mov byte [ebp - 0x15b], 0
movss xmm0, dword [ebp - 0x68]
lea edx, [ebp - 0x1f8]
movss xmm2, dword [ebp - 0x74]
movss xmm1, dword [ebp - 0x78]
addss xmm2, dword [ebp - 0xa0]
mov ecx, dword [0x113201b0]
addss xmm1, xmm3
mov al, byte [ebp - 0x11]
movss dword [ebp - 0x170], xmm0
movss xmm0, dword [ebp - 0x6c]
movss dword [ebp - 0x16c], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x168], xmm0
movss xmm0, dword [ebp - 0x7c]
addss xmm0, xmm4
mov byte [ebp - 0x15c], al
push edx
lea edx, [ebp - 0x70]
movss dword [ebp - 0x1a0], xmm2
push edx
movss dword [ebp - 0x19c], xmm1
lea edx, [ebp - 0x1a0]
movss dword [ebp - 0x198], xmm0
movss xmm0, dword [ebp - 0x80]
movss dword [ebp - 0x180], xmm0
movss xmm0, dword [ebp - 0x84]
movss dword [ebp - 0x17c], xmm0
movss xmm0, dword [ebp - 0x44]
movss dword [ebp - 0x178], xmm0
mov eax, dword [ecx]
push 0x201400b
push edx
call dword [eax + 0x14]
movss xmm0, dword [0x1019b9cc]
comiss xmm0, dword [ebp - 0x1cc]
mov esi, dword [ebx + 8]
jbe 0x1003907f
movss xmm0, dword [ebp - 0x1d8]
xorps xmm3, xmm3
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jnp 0x100390a7
movss xmm6, dword [ebp - 0x18]
addss xmm6, dword [0x110da630]
movss xmm0, dword [0x1019b9d8]
comiss xmm0, xmm6
movss dword [ebp - 0x18], xmm6
ja 0x10038ea0
jmp 0x10039b39
movss xmm1, dword [ebp - 0x1e0]
lea ecx, [ebp - 0x378]
mulss xmm1, dword [0x110da748]
mov dword [ebp - 0x5c], 0
movss xmm4, dword [ebp - 0x1dc]
mulss xmm4, dword [0x110da748]
movss xmm0, dword [ebp - 0x98]
movaps xmm2, xmm1
addss xmm2, dword [ebp - 0xa0]
movss dword [ebp - 0x58], xmm1
addss xmm0, xmm3
movss dword [ebp - 0x64], xmm1
movaps xmm1, xmm4
addss xmm1, dword [ebp - 0x9c]
movss dword [ebp - 0x54], xmm4
movss dword [ebp - 0x60], xmm4
movss dword [ebp - 0x90], xmm2
movss dword [ebp - 0x88], xmm0
movss dword [ebp - 0x8c], xmm1
call fcn.1002bc40
lea ecx, [ebp - 0x320]
call fcn.1002bd30
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x320]
call fcn.1002f740
mov ecx, dword [0x113201b0]
lea edx, [ebp - 0x378]
push edx
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x320]
push 0x201400b
push edx
call dword [eax + 0x14]
movss xmm0, dword [ebp - 0x34c]
ucomiss xmm0, dword [0x1019b9cc]
lahf
test ah, 0x44
jp 0x100397cc
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x64]
call fcn.1003d0b0
lea ecx, [ebp - 0x28]
call fcn.100276b0
mov eax, dword [0x1131f3ec]
mov ecx, dword [eax]
call fcn.1003aca0
mov dword [ebp - 0x48], 0
movq xmm0, qword [eax]
movq qword [ebp - 0x50], xmm0
movss xmm1, dword [ebp - 0x50]
movss xmm0, dword [ebp - 0x4c]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x100391e6
sqrtsd xmm0, xmm0
jmp 0x100391eb
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x1019b994]
movss xmm0, dword [ebp - 0x24]
jbe 0x1003925c
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x50]
call fcn.1003d0b0
movss xmm2, dword [ebp - 0x64]
lea ecx, [ebp - 0x50]
movss xmm1, dword [ebp - 0x60]
movss xmm0, dword [ebp - 0x5c]
subss xmm2, dword [ebp - 0x28]
subss xmm1, dword [ebp - 0x24]
subss xmm0, dword [ebp - 0x20]
movss dword [ebp - 0x50], xmm2
movss dword [ebp - 0x4c], xmm1
movss dword [ebp - 0x48], xmm0
call fcn.100276b0
movss xmm0, dword [ebp - 0x48]
andps xmm0, xmmword [0x1019ba60]
comiss xmm0, dword [0x1019bb78]
ja 0x10039b39
movss xmm0, dword [ebp - 0x24]
subss xmm0, dword [esi + 0x10]
mulss xmm0, dword [0x1019b9b4]
movss dword [ebp - 0x20], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm3, dword [ebp - 0x20]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
cvtps2pd xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm2, dword [0x110da688]
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm0
mov edi, 1
xorps xmm3, xmmword [0x1019ba70]
movss dword [ebp - 0x94], xmm3
nop
movd xmm0, edi
lea ecx, [ebp - 0x260]
cvtdq2ps xmm0, xmm0
push esi
movaps xmm1, xmm0
mulss xmm1, dword [ebp - 0x18]
mulss xmm1, xmm2
movss dword [ebp - 0x20], xmm1
movaps xmm1, xmm3
mulss xmm1, xmm0
mulss xmm1, xmm2
movss dword [ebp - 0x38], xmm1
call fcn.1002bc90
movss xmm0, dword [ebp - 0x20]
lea eax, [ebp - 0x260]
mov ecx, dword [0x11320294]
movss dword [ebp - 0x23c], xmm0
movss xmm0, dword [ebp - 0x38]
push eax
mov dword [ebp - 4], 0
movss dword [ebp - 0x238], xmm0
call fcn.10063e60
mov eax, dword [0x1131f3ec]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [eax]
call fcn.100ce7d0
movss xmm4, dword [ebp - 0x64]
xorps xmm3, xmm3
movss xmm5, dword [ebp - 0x60]
movaps xmm2, xmm4
addss xmm2, dword [ebp - 0x58]
movss xmm6, dword [ebp - 0x5c]
movaps xmm1, xmm5
addss xmm1, dword [ebp - 0x54]
movaps xmm0, xmm6
mov dword [ebp - 0x140], 0x7f800000
addss xmm0, xmm3
mov dword [ebp - 0x144], 0x7f800000
subss xmm2, xmm4
mov dword [ebp - 0x148], 0x7f800000
mov dword [ebp - 0x134], 0x7f800000
subss xmm1, xmm5
mov dword [ebp - 0x138], 0x7f800000
mov dword [ebp - 0x13c], 0x7f800000
subss xmm0, xmm6
mov dword [ebp - 0x128], 0x7f800000
movss dword [ebp - 0xe0], xmm2
mulss xmm2, xmm2
mov dword [ebp - 0x12c], 0x7f800000
movss dword [ebp - 0xdc], xmm1
mulss xmm1, xmm1
mov dword [ebp - 0x130], 0x7f800000
movss dword [ebp - 0xd8], xmm0
mulss xmm0, xmm0
mov dword [ebp - 0xb0], 0
addss xmm2, xmm1
mov byte [ebp - 0xab], 1
addss xmm2, xmm0
ucomiss xmm2, xmm3
lahf
test ah, 0x44
jp 0x10039403
mov byte [ebp - 0xab], 0
movss xmm0, dword [ebp - 0x68]
lea edx, [ebp - 0x148]
addss xmm4, dword [ebp - 0x74]
addss xmm5, dword [ebp - 0x78]
addss xmm6, dword [ebp - 0x7c]
mov ecx, dword [0x113201b0]
mov al, byte [ebp - 0x11]
movss dword [ebp - 0xc0], xmm0
movss xmm0, dword [ebp - 0x6c]
movss dword [ebp - 0xbc], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0xb8], xmm0
movss xmm0, dword [ebp - 0x80]
movss dword [ebp - 0xd0], xmm0
movss xmm0, dword [ebp - 0x84]
push edx
movss dword [ebp - 0xcc], xmm0
lea edx, [ebp - 0x70]
movss xmm0, dword [ebp - 0x44]
push edx
mov byte [ebp - 0xac], al
lea edx, [ebp - 0xf0]
movss dword [ebp - 0xf0], xmm4
movss dword [ebp - 0xec], xmm5
movss dword [ebp - 0xe8], xmm6
movss dword [ebp - 0xc8], xmm0
mov eax, dword [ecx]
push 0x201400b
push edx
call dword [eax + 0x14]
movss xmm0, dword [0x1019b9cc]
comiss xmm0, dword [ebp - 0x11c]
ja 0x1003979e
mov eax, dword [0x1118f47c]
mov ecx, dword [eax]
mov eax, dword [0x11320304]
mov eax, dword [eax + 0x1c]
dec eax
push eax
push 0
call ecx
movss xmm2, dword [0x110da688]
inc edi
movss xmm3, dword [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
cmp edi, 5
jle 0x100392b0
mov edi, 1
nop word [eax + eax]
mov eax, dword [0x1131f3ec]
lea ecx, [ebp - 0x90]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, dword [eax]
movaps xmm1, xmm0
mulss xmm1, dword [ebp - 0x18]
mulss xmm1, dword [0x110da688]
movss dword [ebp - 0x38], xmm1
movss xmm1, dword [ebp - 0x94]
mulss xmm1, xmm0
mulss xmm1, dword [0x110da688]
movss dword [ebp - 0x20], xmm1
call fcn.100ce7d0
push esi
lea ecx, [ebp - 0x260]
call fcn.1002bc90
movss xmm0, dword [ebp - 0x38]
lea eax, [ebp - 0x260]
mov ecx, dword [0x11320294]
movss dword [ebp - 0x23c], xmm0
movss xmm0, dword [ebp - 0x20]
push eax
mov dword [ebp - 4], 1
movss dword [ebp - 0x238], xmm0
call fcn.10063e60
mov ecx, dword [0x11320294]
lea eax, [ebp - 0x260]
push eax
call fcn.10063e60
mov eax, dword [0x1131f3ec]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [eax]
call fcn.100ce7d0
movss xmm4, dword [ebp - 0x64]
xorps xmm3, xmm3
movss xmm5, dword [ebp - 0x60]
movaps xmm2, xmm4
addss xmm2, dword [ebp - 0x58]
movss xmm6, dword [ebp - 0x88]
movaps xmm0, xmm5
addss xmm0, dword [ebp - 0x54]
movaps xmm1, xmm6
movss dword [ebp - 0x5c], xmm6
addss xmm1, xmm3
mov dword [ebp - 0x140], 0x7f800000
subss xmm2, xmm4
mov dword [ebp - 0x144], 0x7f800000
mov dword [ebp - 0x148], 0x7f800000
subss xmm0, xmm5
mov dword [ebp - 0x134], 0x7f800000
mov dword [ebp - 0x138], 0x7f800000
subss xmm1, xmm6
mov dword [ebp - 0x13c], 0x7f800000
movss dword [ebp - 0xe0], xmm2
mulss xmm2, xmm2
mov dword [ebp - 0x128], 0x7f800000
movss dword [ebp - 0xdc], xmm0
mulss xmm0, xmm0
mov dword [ebp - 0x12c], 0x7f800000
movss dword [ebp - 0xd8], xmm1
mulss xmm1, xmm1
mov dword [ebp - 0x130], 0x7f800000
addss xmm2, xmm0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xab], 1
addss xmm2, xmm1
ucomiss xmm2, xmm3
lahf
test ah, 0x44
jp 0x1003968d
mov byte [ebp - 0xab], 0
movss xmm0, dword [ebp - 0x68]
lea edx, [ebp - 0x148]
addss xmm4, dword [ebp - 0x74]
addss xmm5, dword [ebp - 0x78]
mov ecx, dword [0x113201b0]
mov al, byte [ebp - 0x11]
movss dword [ebp - 0xc0], xmm0
movss xmm0, dword [ebp - 0x6c]
movss dword [ebp - 0xbc], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0xb8], xmm0
movss xmm0, dword [ebp - 0x7c]
addss xmm0, xmm6
mov byte [ebp - 0xac], al
push edx
lea edx, [ebp - 0x70]
movss dword [ebp - 0xf0], xmm4
push edx
movss dword [ebp - 0xec], xmm5
lea edx, [ebp - 0xf0]
movss dword [ebp - 0xe8], xmm0
movss xmm0, dword [ebp - 0x80]
movss dword [ebp - 0xd0], xmm0
movss xmm0, dword [ebp - 0x84]
movss dword [ebp - 0xcc], xmm0
movss xmm0, dword [ebp - 0x44]
movss dword [ebp - 0xc8], xmm0
mov eax, dword [ecx]
push 0x201400b
push edx
call dword [eax + 0x14]
movss xmm0, dword [0x1019b9cc]
comiss xmm0, dword [ebp - 0x11c]
ja 0x10039770
mov eax, dword [0x1118f47c]
mov ecx, dword [eax]
mov eax, dword [0x11320304]
mov eax, dword [eax + 0x1c]
dec eax
push eax
push 0
call ecx
inc edi
mov dword [ebp - 4], 0xffffffff
cmp edi, 5
jle 0x10039500
jmp 0x10039b39
movss xmm0, dword [ebp - 0x38]
movss dword [esi + 0x24], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [esi + 0x28], xmm0
mov eax, dword [0x11320304]
mov eax, dword [eax + 0x1c]
dec eax
push eax
mov eax, dword [0x1118f47c]
push 0
mov eax, dword [eax]
call eax
jmp 0x10039b39
movss xmm0, dword [ebp - 0x20]
movss dword [esi + 0x24], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [esi + 0x28], xmm0
mov eax, dword [0x1118f47c]
mov ecx, dword [eax]
mov eax, dword [0x11320304]
mov eax, dword [eax + 0x1c]
dec eax
push eax
push 0
call ecx
jmp 0x10039b39
mov edi, 0xfa
mov ecx, dword [esi + 0x30]
xorps xmm2, xmm2
movd xmm3, edi
xorps xmm1, xmm1
movss dword [ebp - 0x2c], xmm2
xorps xmm0, xmm0
movss dword [ebp - 0x18], xmm1
cvtdq2ps xmm3, xmm3
test cl, 8
je 0x100397fb
movaps xmm2, xmm3
movss dword [ebp - 0x2c], xmm3
test cl, 0x10
je 0x10039810
mov eax, edi
neg eax
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss dword [ebp - 0x2c], xmm2
test ecx, 0x200
je 0x10039828
mov eax, edi
neg eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [ebp - 0x18], xmm1
test ecx, 0x400
je 0x10039838
movaps xmm1, xmm3
movss dword [ebp - 0x18], xmm1
ucomiss xmm2, xmm0
lahf
test ah, 0x44
jp 0x10039955
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x10039955
movss xmm0, dword [ebp - 0x54]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x58]
fld qword [ebp - 0x28]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
sub esp, 8
fld dword [ebp - 0x54]
cvtpd2ps xmm0, xmm0
fstp dword [esp + 4]
mulss xmm0, dword [0x1019b9e0]
fld dword [ebp - 0x58]
fstp dword [esp]
movss dword [ebp - 0x20], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__hypotf
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
add esp, 8
fld qword [0x110da740]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x40], xmm0
fld qword [ebp - 0x40]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x40]
lea ecx, [ebp - 0x50]
cvtpd2ps xmm0, xmm0
mov dword [ebp - 0x48], 0
mulss xmm0, dword [0x1019b9e0]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [ebp - 0x4c], xmm0
call fcn.100276b0
movss xmm0, dword [ebp - 0x4c]
subss xmm0, dword [esi + 0x10]
mulss xmm0, dword [0x1019b9b4]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x40], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x20], xmm0
movsd xmm0, qword [ebp - 0x40]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
xorps xmm0, xmm0
xorps xmm1, xmmword [0x1019ba70]
cvtsi2ss xmm0, edi
movaps xmm2, xmm0
mulss xmm1, xmm0
mulss xmm2, dword [ebp - 0x20]
movss dword [ebp - 0x18], xmm1
movss dword [ebp - 0x2c], xmm2
push esi
lea ecx, [ebp - 0x2c8]
call fcn.1002bc90
movss xmm0, dword [ebp - 0x2c]
lea eax, [ebp - 0x2c8]
mov ecx, dword [0x11320294]
movss dword [ebp - 0x2a4], xmm0
movss xmm0, dword [ebp - 0x18]
push eax
mov dword [ebp - 4], 2
movss dword [ebp - 0x2a0], xmm0
call fcn.10063e60
mov eax, dword [0x1131f3ec]
mov ecx, dword [eax]
call fcn.1003aca0
movss xmm0, dword [eax + 8]
ucomiss xmm0, dword [0x110da760]
lahf
test ah, 0x44
jnp 0x10039b10
movss xmm0, dword [ebp - 0x54]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x58]
fld qword [ebp - 0x28]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
sub esp, 8
fld dword [ebp - 0x54]
cvtpd2ps xmm0, xmm0
fstp dword [esp + 4]
mulss xmm0, dword [0x1019b9e0]
fld dword [ebp - 0x58]
fstp dword [esp]
movss dword [ebp - 0x20], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__hypotf
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
add esp, 8
fld qword [0x110da740]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x40], xmm0
fld qword [ebp - 0x40]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x40]
lea ecx, [ebp - 0x90]
cvtpd2ps xmm0, xmm0
mov dword [ebp - 0x88], 0
mulss xmm0, dword [0x1019b9e0]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [ebp - 0x8c], xmm0
call fcn.100276b0
movss xmm0, dword [ebp - 0x8c]
subss xmm0, dword [esi + 0x10]
mulss xmm0, dword [0x1019b9b4]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x40], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x20], xmm0
movsd xmm0, qword [ebp - 0x40]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
xorps xmm1, xmm1
xorps xmm2, xmm2
cvtsd2ss xmm1, xmm0
cvtsi2ss xmm2, edi
xorps xmm1, xmmword [0x1019ba70]
movaps xmm0, xmm2
mulss xmm1, xmm2
mulss xmm0, dword [ebp - 0x20]
movss dword [esi + 0x28], xmm1
movss dword [ebp - 0x38], xmm2
movss dword [esi + 0x24], xmm0
mov eax, dword [0x1118f47c]
mov ecx, dword [eax]
mov eax, dword [0x11320304]
mov eax, dword [eax + 0x1c]
dec eax
push eax
push 0
call ecx
movss xmm0, dword [ebp - 0x38]
subss xmm0, dword [0x110da68c]
mov dword [ebp - 4], 0xffffffff
cvttss2si edi, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, edi
comiss xmm0, dword [0x1019b994]
ja 0x100397d1
jmp 0x10039b39
mov eax, dword [0x11320304]
mov eax, dword [eax + 0x1c]
dec eax
push eax
mov eax, dword [0x1118f47c]
push 0
mov eax, dword [eax]
call eax
movss xmm0, dword [ebp - 0x2c]
movss dword [esi + 0x24], xmm0
movss xmm0, dword [ebp - 0x18]
movss dword [esi + 0x28], xmm0
movss xmm1, dword [esi + 0x24]
xorps xmm0, xmm0
comiss xmm0, xmm1
movss xmm2, dword [0x110da72c]
jbe 0x10039b5e
test byte [esi + 0x30], 8
je 0x10039b5e
mov dword [esi + 0x24], 0x43e10000
movaps xmm1, xmm2
comiss xmm1, xmm0
jbe 0x10039b70
test byte [esi + 0x30], 0x10
je 0x10039b70
mov dword [esi + 0x24], 0xc3e10000
movss xmm1, dword [esi + 0x28]
comiss xmm0, xmm1
jbe 0x10039b8d
test dword [esi + 0x30], 0x400
je 0x10039b8d
mov dword [esi + 0x28], 0x43e10000
movaps xmm1, xmm2
comiss xmm1, xmm0
jbe 0x10039ba2
test dword [esi + 0x30], 0x200
je 0x10039ba2
mov dword [esi + 0x28], 0xc3e10000
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret