Function at 0x1002e7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a394d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x10112040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x10115e28]
mov ecx, dword [0x10115e34]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x10115e28]
push eax
call esi
test eax, eax
je 0x1002edef
mov ecx, eax
call fcn.10037c90
mov ecx, dword [0x10115e28]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x10]
mov ecx, dword [eax]
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x10115e28]
call edx
mov esi, eax
test esi, esi
je 0x1002edef
mov edi, dword [ebx + 0x14]
movss xmm1, dword [edi + 4]
subss xmm1, dword [ebx + 0xc]
movss xmm0, dword [edi + 8]
subss xmm0, dword [ebx + 0x10]
movss xmm2, dword [edi]
subss xmm2, dword [ebx + 8]
movss dword [ebp - 0x2c], xmm1
movss dword [ebp - 0x20], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movaps xmm1, xmm2
movss dword [ebp - 0x38], xmm2
mulss xmm1, xmm2
addss xmm0, xmm1
call fcn.10024090
mov eax, dword [ebp - 0x1c]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [eax + 0xc]
movss dword [ebp - 0x14], xmm0
call fcn.1002a660
mov ecx, dword [ebp - 0x1c]
movaps xmm3, xmm0
xorps xmm5, xmm5
mulss xmm3, dword [ecx + 0x10]
ucomiss xmm3, xmm5
movss dword [ebp - 0x48], xmm3
lahf
test ah, 0x44
jnp 0x1002ebe0
cmp byte [ecx + 0x14], 0
je 0x1002e918
movss xmm0, dword [0x10108570]
minss xmm0, dword [ebp - 0x14]
movss dword [ebp - 0x14], xmm0
jmp 0x1002e91d
movss xmm0, dword [ebp - 0x14]
movss xmm1, dword [ebp - 0x20]
movaps xmm4, xmm3
mulss xmm4, dword [ebp - 0x24]
addss xmm1, xmm1
movaps xmm2, xmm0
mulss xmm2, xmm0
movss dword [ebp - 0x20], xmm1
mulss xmm1, xmm0
movss dword [ebp - 0x28], xmm4
mulss xmm4, dword [ebp - 0x24]
mulss xmm1, xmm0
movss dword [ebp - 0x18], xmm2
mulss xmm2, xmm0
addss xmm1, xmm4
movss dword [ebp - 0x44], xmm4
mulss xmm2, xmm0
mulss xmm1, xmm3
subss xmm2, xmm1
comiss xmm5, xmm2
ja 0x1002edef
movaps xmm0, xmm2
call fcn.10024090
movss xmm1, dword [ebp - 0x18]
subss xmm1, xmm0
divss xmm1, dword [ebp - 0x28]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x101084cc]
xorps xmm0, xmmword [0x101086c0]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 0x2c]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x38]
fld qword [ebp - 0x30]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x40], xmm0
fld qword [ebp - 0x40]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
mov eax, dword [ebx + 0x18]
movss xmm0, dword [ebp - 0x18]
fstp qword [ebp - 0x40]
movsd xmm1, qword [ebp - 0x40]
cvtpd2ps xmm1, xmm1
mov dword [eax + 8], 0
movss dword [eax], xmm0
mulss xmm1, dword [0x101084cc]
mulss xmm0, dword [0x10108354]
movss dword [ebp - 0x2c], xmm1
movss dword [eax + 4], xmm1
xorps xmm0, xmmword [0x101086c0]
call fcn.1002a1f0
mulss xmm0, dword [ebp - 0x14]
mov edi, dword [ebx + 0x1c]
movss xmm1, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
divss xmm1, xmm0
movss dword [edi], xmm1
cmp byte [eax + 0x14], 0
je 0x1002ed06
mov eax, dword [esi]
xorps xmm2, xmm2
mov ecx, esi
movss dword [ebp - 0x18], xmm2
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x17
jne 0x1002ead8
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10115de8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10116034]
cmp eax, dword [ecx + 4]
jle 0x1002eab3
push 0x10116034
call fcn.100a0bb4
add esp, 4
cmp dword [0x10116034], 0xffffffff
jne 0x1002eab3
mov edx, str.m_iItemDefinitionIndex
mov dword [ebp - 4], 0
mov ecx, str.CEconEntity
call fcn.1009c3f0
push 0x10116034
mov dword [0x10116004], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a0b63
add esp, 4
mov eax, dword [0x10116004]
cmp dword [esi + eax], 0x134
jne 0x1002eacb
movss xmm0, dword [0x1010836c]
jmp 0x1002ead3
movss xmm0, dword [0x10108384]
movss dword [ebp - 0x18], xmm0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x18
jne 0x1002eaf6
movss xmm0, dword [0x10108390]
movss dword [ebp - 0x18], xmm0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x5b
jne 0x1002eb14
movss xmm0, dword [0x101083b8]
movss dword [ebp - 0x18], xmm0
movss xmm1, dword [ebp - 0x14]
movaps xmm0, xmm1
mulss xmm0, dword [edi]
mulss xmm0, dword [ebp - 0x18]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [ebp - 0x14], xmm1
mulss xmm0, xmm1
movaps xmm2, xmm0
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [ebp - 0x20]
mulss xmm0, xmm1
mulss xmm2, xmm1
mulss xmm0, xmm1
mulss xmm2, xmm1
addss xmm0, dword [ebp - 0x44]
mulss xmm0, dword [ebp - 0x48]
subss xmm2, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
ja 0x1002edef
movaps xmm0, xmm2
call fcn.10024090
movss xmm1, dword [ebp - 0x38]
subss xmm1, xmm0
divss xmm1, dword [ebp - 0x28]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
mov eax, dword [ebx + 0x18]
movss xmm2, dword [ebp - 0x2c]
cvtsd2ss xmm0, xmm0
mov dword [eax + 8], 0
movss dword [eax + 4], xmm2
mulss xmm0, dword [0x101084cc]
xorps xmm0, xmmword [0x101086c0]
movss dword [eax], xmm0
mulss xmm0, dword [0x10108354]
xorps xmm0, xmmword [0x101086c0]
call fcn.1002a1f0
mulss xmm0, dword [ebp - 0x14]
movss xmm1, dword [ebp - 0x24]
divss xmm1, xmm0
movss dword [edi], xmm1
jmp 0x1002ed06
movss xmm1, dword [ebx + 0xc]
subss xmm1, dword [edi + 4]
movss xmm0, dword [ebx + 0x10]
subss xmm0, dword [edi + 8]
movss xmm2, dword [ebx + 8]
subss xmm2, dword [edi]
movss dword [ebp - 0x44], xmm1
movss dword [ebp - 0x48], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movaps xmm1, xmm2
movss dword [ebp - 0x28], xmm2
mulss xmm1, xmm2
addss xmm0, xmm1
call fcn.10024090
movss xmm1, dword [ebp - 0x48]
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x10108468]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [ebp - 0x44]
divss xmm0, dword [ebp - 0x28]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
cvtsd2ss xmm0, xmm0
mov dword [ebp - 0x38], 0
xorps xmm1, xmm1
xorps xmm2, xmm2
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x10108468]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [ebp - 0x28]
comiss xmm0, xmm2
movss dword [ebp - 0x3c], xmm1
jb 0x1002ec9c
addss xmm1, dword [0x10108514]
movss dword [ebp - 0x3c], xmm1
lea ecx, [ebp - 0x40]
call fcn.10023080
mov eax, dword [ebx + 0x18]
movss xmm0, dword [ebp - 0x40]
movss xmm1, dword [ebx + 0xc]
movss xmm2, dword [ebx + 0x10]
movss dword [eax], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [eax + 8], xmm0
movss xmm0, dword [ebx + 8]
subss xmm0, dword [edi]
subss xmm1, dword [edi + 4]
subss xmm2, dword [edi + 8]
mulss xmm0, xmm0
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm0, xmm1
addss xmm0, xmm2
call fcn.10024090
divss xmm0, dword [ebp - 0x14]
mov edi, dword [ebx + 0x1c]
movss dword [edi], xmm0
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x14], 0
je 0x1002edb9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x5b
jne 0x1002ed34
movss xmm0, dword [edi]
comiss xmm0, dword [0x101083f4]
jmp 0x1002edb7
mov eax, dword [0x10115de8]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x10116034]
cmp eax, dword [ecx + 4]
jle 0x1002ed95
push 0x10116034
call fcn.100a0bb4
add esp, 4
cmp dword [0x10116034], 0xffffffff
jne 0x1002ed95
mov edx, str.m_iItemDefinitionIndex
mov dword [ebp - 4], 1
mov ecx, str.CEconEntity
call fcn.1009c3f0
push 0x10116034
mov dword [0x10116004], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a0b63
add esp, 4
mov eax, dword [0x10116004]
movss xmm0, dword [edi]
cmp dword [esi + eax], 0x47f
jne 0x1002edb0
comiss xmm0, dword [0x1010841c]
jmp 0x1002edb7
comiss xmm0, dword [0x10108444]
ja 0x1002edef
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x6d
je 0x1002eddf
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x19
je 0x1002eddf
mov al, 1
jmp 0x1002edf1
movss xmm0, dword [edi]
comiss xmm0, dword [0x10108398]
setbe al
jmp 0x1002edf1
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18