Function at 0x10158530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x1036900c]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
mov eax, ecx
mov dword [esp + 8], 0
push esi
mov dword [esp + 0x10], eax
xor esi, esi
push edi
mov edi, dword [eax]
mov ebx, 1
xorps xmm0, xmm0
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 2
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x20]
sub eax, dword [edi + 0x24]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x30]
sub eax, 4
mov dword [esp + 0x94], 0
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov word [esp + 0x98], 1
mov byte [esp + 0x9b], 0
mov word [esp + 0x60], bx
mov dword [esp + 0x44], 4
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], esi
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], 2
mov dword [esp + 0x58], 2
cmp byte [edi + 0x18], al
je 0x10158628
push dword [edi + 0x28]
lea ecx, [edi + 8]
push dword [edi + 0x1c]
call fcn.10187700
mov byte [edi + 0x19], al
mov byte [edi + 0x18], 0
cmp byte [edi + 0x19], 0
je 0x10158924
push 1
push 1
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x84]
call fcn.10153ab0
cmp eax, 6
je 0x101588ca
movss xmm7, dword [esp + 0x2c]
nop dword [eax]
cmp eax, 5
ja case.default.0x10158669
jmp dword [eax*4 + 0x1015893c]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 1
jg case.default.0x10158669
movss xmm0, dword [esp + 0x9c]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0xa0]
movss dword [esp + 0xa8], xmm0
mov ecx, 1
mov byte [esp + 0x61], 0
mov dword [esp + 0xc], ecx
jmp 0x101586fd
xor ecx, ecx
mov byte [esp + 0x61], 1
cmp eax, 4
sete cl
add ecx, 2
jmp 0x101586f0
mov byte [esp + 0x61], 0
cmp esi, 2
jle 0x101586ee
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.101584b0
mov esi, dword [esp + 0x40]
movss xmm7, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp ecx, 1
jb 0x10158899
mov edi, 1
cmp ebx, 2
je 0x10158890
cmp byte [esp + 0x60], 0
je 0x10158890
movss xmm4, dword [esp + edi*8 + 0x9c]
test esi, esi
jne 0x10158749
movss xmm7, dword [esp + edi*8 + 0xa0]
movaps xmm1, xmm4
mov esi, 1
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x2c], xmm7
mov dword [esp + 0x40], esi
jmp 0x10158890
movss xmm3, dword [esp + edi*8 + 0xa0]
movaps xmm2, xmm4
movss xmm1, dword [esp + 0x28]
subss xmm3, xmm7
subss xmm2, xmm1
xorps xmm6, xmm6
movaps xmm0, xmm3
movss dword [esp + 0x6c], xmm3
movaps xmm5, xmm2
mulss xmm0, xmm3
mulss xmm5, xmm2
movss dword [esp + 0x68], xmm2
movss dword [esp + 0x70], xmm2
addss xmm5, xmm0
movss dword [esp + 0x74], xmm3
movaps xmm0, xmm5
mulss xmm0, xmm6
ucomiss xmm0, xmm0
lahf
test ah, 0x44
jnp 0x101587aa
mov byte [esp + 0x60], 0
jmp 0x10158890
ucomiss xmm5, xmm6
lahf
test ah, 0x44
jnp 0x10158890
movss xmm0, dword [esp + 0x20]
inc esi
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x24], xmm7
movss xmm7, dword [esp + edi*8 + 0xa0]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x28], xmm4
movss dword [esp + 0x2c], xmm7
mov dword [esp + 0x40], esi
cmp esi, 2
jne 0x10158814
movss dword [esp + 0x30], xmm2
movss dword [esp + 0x34], xmm3
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x3c], xmm3
jmp 0x1015883b
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
call fcn.101584b0
mov esi, dword [esp + 0x40]
xorps xmm6, xmm6
movss xmm7, dword [esp + 0x2c]
movss xmm2, dword [esp + 0x68]
movss xmm3, dword [esp + 0x6c]
xor ebx, ebx
comiss xmm6, xmm2
seta bl
xor edx, edx
comiss xmm6, xmm3
seta dl
xor eax, eax
cmp ebx, dword [esp + 0x58]
mov dword [esp + 0x58], ebx
setne al
xor ecx, ecx
add dword [esp + 0x50], eax
cmp edx, dword [esp + 0x5c]
mov dword [esp + 0x5c], edx
setne cl
add ecx, dword [esp + 0x54]
cmp dword [esp + 0x50], 3
mov dword [esp + 0x54], ecx
jg 0x1015887d
cmp ecx, 3
jle 0x10158888
mov ebx, 2
mov dword [esp + 0x48], ebx
jmp 0x1015888c
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0xc]
inc edi
cmp edi, ecx
jle 0x10158702
cmp byte [esp + 0x60], 0
je 0x10158924
cmp ebx, 2
je case.default.0x10158669
push 1
push 1
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x84]
call fcn.10153ab0
cmp eax, 6
jne 0x10158660
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x48]
mov byte [edx + 9], al
cmp al, 1
jne 0x101588e9
mov al, byte [edx + 0xa]
lea ecx, [edx + 0xa]
cmp al, 2
jne 0x101588e9
mov al, byte [esp + 0x4c]
xchg byte [ecx], al
movzx eax, byte [edx + 9]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.102af895
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
mov eax, 2
mov byte [edx + 9], 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.102af895
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.102af895
mov esp, ebp
pop ebp
ret