Function at 0x1002f130
Capabilities:
Access peb ldr_data
Get kernel32 base address

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
push 0xffffffffffffffff
push 0x100a39b1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x10112040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [0x10115e34]
mov dword [ebp - 0x128], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x114], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x124], eax
mov eax, dword [0x10115e28]
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
mov edi, eax
test edi, edi
je 0x1002f88c
mov ecx, dword [0x10115e28]
mov ecx, dword [ecx]
mov esi, dword [ecx + 0xc]
mov ecx, dword [0x10115e34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x10115e28]
push eax
call esi
test eax, eax
je 0x1002f88c
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 0x1002f88c
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push dword [ebp - 0x114]
mov edx, esi
mov dword [ebp - 0x48], 0
mov ecx, edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
call fcn.1006d080
add esp, 8
test al, al
je 0x1002f88c
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 0x1002f2cc
push 0x10116034
call fcn.100a0bb4
add esp, 4
cmp dword [0x10116034], 0xffffffff
jne 0x1002f2cc
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 0x1002f2ec
movss xmm0, dword [ebp - 0x38]
addss xmm0, dword [0x101084b8]
movss dword [ebp - 0x38], xmm0
mov dl, 1
lea ecx, [ebp - 0x54]
call fcn.1006d9c0
test al, al
je 0x1002f88c
movss xmm0, dword [ebx + 0x14]
xor edi, edi
mulss xmm0, dword [0x1010840c]
mov edx, dword [0x10115e58]
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0xb4], eax
movss dword [ebx + 0x14], xmm0
mov dword [ebp - 0xb8], 0x10101450
divss xmm0, dword [edx + 0x1c]
addss xmm0, dword [0x101083cc]
cvttss2si eax, xmm0
test eax, eax
jle 0x1002f888
nop word [eax + eax]
mov ecx, dword [0x10117da8]
test ecx, ecx
jne 0x1002f372
xorps xmm1, xmm1
xorps xmm0, xmm0
movss dword [ebp - 0x120], xmm1
movss dword [ebp - 0x11c], xmm1
jmp 0x1002f3c0
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push 0
push edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call dword [eax + 0xbc]
movss xmm0, dword [ebp - 0x20]
mov edx, dword [0x10115e58]
mov ecx, dword [0x10117da8]
movss dword [ebp - 0x11c], xmm0
movss xmm0, dword [ebp - 0x1c]
movss dword [ebp - 0x120], xmm0
movss xmm0, dword [ebp - 0x18]
mov esi, dword [0x10117dac]
movss dword [ebp - 0x114], xmm0
test esi, esi
je 0x1002f3ed
mov eax, dword [esi]
movss xmm0, dword [edx + 0x1c]
push ecx
mov ecx, esi
movss dword [esp], xmm0
call dword [eax + 0x88]
mov ecx, dword [0x10117da8]
test ecx, ecx
jne 0x1002f3fc
xorps xmm4, xmm4
xorps xmm1, xmm1
xorps xmm3, xmm3
jmp 0x1002f42e
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push 0
push edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call dword [eax + 0xbc]
movss xmm3, dword [ebp - 0x2c]
movss xmm1, dword [ebp - 0x28]
movss xmm4, dword [ebp - 0x24]
movss xmm5, dword [0x101085c4]
xor eax, eax
mov dword [ebp - 0xdc], eax
xorps xmm0, xmm0
mov dword [ebp - 0xd8], eax
xorps xmm2, xmm2
mov dword [ebp - 0xcc], eax
mov word [ebp - 0xc8], ax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x54]
movq qword [ebp - 0xd4], xmm0
add eax, 0xfffffffd
movss xmm0, dword [0x1010847c]
mov dword [ebp - 0x108], 0
movaps xmm6, xmm0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
movss dword [ebp - 0x118], xmm0
cmp eax, 0xe
ja case.0x1002f512.5
movzx eax, byte [eax + 0x1002f8bc]
jmp dword [eax*4 + 0x1002f8b0]
movss xmm6, dword [0x10108488]
movss xmm0, dword [0x1010849c]
jmp 0x1002f536
movss xmm0, dword [0x10108488]
movaps xmm6, xmm0
movss xmm5, dword [0x101085c8]
movss dword [ebp - 0x118], xmm0
subss xmm1, dword [ebp - 0x120]
subss xmm3, dword [ebp - 0x11c]
movss xmm7, dword [ebp - 0x114]
subss xmm4, xmm7
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x94], 0
movss dword [ebp - 0x9c], xmm1
movss dword [ebp - 0xa0], xmm3
mulss xmm1, xmm1
mov dword [ebp - 0x84], 0
mulss xmm3, xmm3
mov dword [ebp - 0x74], 0
movss dword [ebp - 0x98], xmm4
mulss xmm4, xmm4
mov byte [ebp - 0x6f], 1
addss xmm1, xmm3
addss xmm1, xmm4
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x1002f5c4
mov byte [ebp - 0x6f], 0
movss xmm2, dword [0x101083cc]
subss xmm0, xmm5
movaps xmm1, xmm6
mov ecx, dword [0x10115e64]
subss xmm1, xmm5
addss xmm6, xmm5
addss xmm5, dword [ebp - 0x118]
mulss xmm0, xmm2
lea edx, [ebp - 0x110]
push edx
mulss xmm1, xmm2
lea edx, [ebp - 0xb8]
push edx
movss dword [ebp - 0x78], xmm0
lea edx, [ebp - 0xb0]
mulss xmm0, xmm0
push 0x200400b
movss dword [ebp - 0x80], xmm1
movss dword [ebp - 0x7c], xmm1
mulss xmm1, xmm1
push edx
mulss xmm6, xmm2
addss xmm1, xmm1
mulss xmm5, xmm2
movaps xmm2, xmm6
addss xmm2, dword [ebp - 0x11c]
addss xmm1, xmm0
movss dword [ebp - 0xb0], xmm2
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x101083b0]
comisd xmm1, xmm0
movaps xmm1, xmm6
movaps xmm0, xmm5
addss xmm1, dword [ebp - 0x120]
mulss xmm6, dword [0x101085b8]
addss xmm0, xmm7
mulss xmm5, dword [0x101085b8]
seta byte [ebp - 0x70]
movss dword [ebp - 0xac], xmm1
movss dword [ebp - 0xa8], xmm0
movss dword [ebp - 0x90], xmm6
movss dword [ebp - 0x8c], xmm6
movss dword [ebp - 0x88], xmm5
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [ebp - 0x124]
cmp dword [ebp - 0xc4], esi
je 0x1002f888
movss xmm0, dword [0x101083fc]
comiss xmm0, dword [ebp - 0xe4]
ja 0x1002f708
cmp byte [ebp - 0xda], 0
jne 0x1002f708
cmp byte [ebp - 0xd9], 0
jne 0x1002f708
mov edx, dword [0x10115e58]
inc edi
movss xmm0, dword [ebx + 0x14]
divss xmm0, dword [edx + 0x1c]
addss xmm0, dword [0x101083cc]
cvttss2si eax, xmm0
cmp edi, eax
jl 0x1002f350
mov al, 1
jmp 0x1002f88e
mov edi, dword [ebp - 0x128]
movss xmm5, dword [ebp - 0x50]
movss xmm4, dword [ebp - 0x4c]
movaps xmm2, xmm5
subss xmm2, dword [ebp - 0x104]
movss xmm6, dword [edi]
movaps xmm1, xmm4
subss xmm1, dword [ebp - 0x100]
movss xmm3, dword [ebp - 0x48]
subss xmm5, xmm6
movaps xmm0, xmm3
movss dword [ebp - 0x11c], xmm6
subss xmm0, dword [ebp - 0xfc]
mulss xmm2, xmm2
movss dword [ebp - 0x124], xmm5
movss xmm5, dword [edi + 4]
subss xmm4, xmm5
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm2
movss dword [ebp - 0x118], xmm5
movss dword [ebp - 0x128], xmm4
movss xmm4, dword [edi + 8]
subss xmm3, xmm4
movss dword [ebp - 0x12c], xmm4
addss xmm0, xmm1
movss dword [ebp - 0x114], xmm3
call fcn.10024090
movss xmm1, dword [ebp - 0x124]
movss dword [ebp - 0x120], xmm0
movss xmm0, dword [ebp - 0x128]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm0, xmm1
movss xmm1, dword [ebp - 0x114]
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10024090
movss xmm1, dword [ebp - 0x120]
comiss xmm1, xmm0
ja 0x1002f888
movss xmm1, dword [ebp - 0x104]
movss xmm0, dword [ebp - 0x100]
subss xmm0, dword [ebp - 0x118]
subss xmm1, dword [ebp - 0x11c]
movss xmm2, dword [ebp - 0xfc]
subss xmm2, dword [ebp - 0x12c]
mulss xmm0, xmm0
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm0, xmm1
addss xmm0, xmm2
call fcn.10024090
comiss xmm0, dword [0x101084b4]
ja 0x1002f88c
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xb8]
push eax
push 0x200400b
push edi
lea eax, [ebp - 0x104]
push eax
call fcn.10036810
movss xmm0, dword [0x101083fc]
comiss xmm0, dword [ebp - 0xe4]
ja 0x1002f880
cmp byte [ebp - 0xda], 0
jne 0x1002f880
cmp byte [ebp - 0xd9], 0
je 0x1002f888
cmp dword [ebp - 0xc4], esi
jne 0x1002f88c
mov al, 1
jmp 0x1002f88e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100a07a5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14