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

Disassembly:
sub esp, 0x68
push esi
mov esi, dword [0x10185028]
mov dword [esp + 0x50], esi
mov eax, dword [esi + 0x3e40]
mov dword [esp + 0x5c], eax
cmp byte [eax + 0xaf], 0
jne 0x10059545
push edi
mov edi, dword [esi + 0x49e4]
mov ecx, 0x100d6368
push 0
mov eax, dword [edi + 0x48]
mov dword [esp + 0x68], eax
imul eax, eax, 0x70
add eax, dword [edi + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
test eax, eax
cmovne ecx, eax
push ecx
mov dword [esp + 0x60], ecx
call fcn.1001e650
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp], 0xbf800000
push 1
push eax
push dword [esp + 0x64]
lea eax, [esp + 0x40]
push eax
call fcn.100136f0
mov eax, dword [esp + 0x74]
push dword [esp + 0x78]
push edi
movss xmm0, dword [eax + 0xf0]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [eax + 0xf4]
lea eax, [esp + 0x34]
push eax
movss dword [esp + 0x5c], xmm0
call fcn.1005ec30
movss xmm0, dword [edi + 0x94]
add esp, 0x20
movss xmm1, dword [edi + 0x58]
addss xmm0, xmm0
mov ecx, dword [esp + 0x68]
xorps xmm2, xmm2
mov dword [esp + 0x4c], 0
test byte [edi + 4], 8
movss dword [esp + 0x48], xmm2
subss xmm1, xmm0
xorps xmm0, xmm0
movss dword [esp + 0x50], xmm0
maxss xmm1, dword [esp + 0x34]
movss dword [esp + 0x44], xmm1
je 0x10058fe5
test dword [ecx], 0x200
jne 0x10058fe5
movss xmm0, dword [esi + 0x3bd0]
mulss xmm0, dword [0x100d932c]
addss xmm0, dword [esi + 0x37dc]
cvttss2si eax, xmm0
movd xmm1, eax
movzx eax, word [ecx + 0x5a]
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x50], xmm1
test ax, ax
jle 0x10058fe5
cwde
inc eax
push eax
push 0x100d76a4
lea eax, [esp + 0x54]
push 4
push eax
call fcn.10016790
add esp, 0xc
lea eax, [esp + 0x50]
mov dword [esp], 0xbf800000
push 0
push 0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100136f0
movss xmm2, dword [esi + 0x37f4]
add esp, 0x14
mov ecx, dword [esp + 0x68]
addss xmm2, dword [eax]
movss dword [esp + 0x48], xmm2
movss xmm1, dword [esp + 0x30]
addss xmm1, dword [esp + 0x38]
movss xmm0, dword [ecx + 0x38]
maxss xmm0, dword [ecx + 0x48]
addss xmm1, xmm2
movss dword [ecx + 0x48], xmm0
movss xmm0, dword [ecx + 0x4c]
addss xmm1, dword [esp + 0x50]
maxss xmm0, xmm1
movss dword [ecx + 0x4c], xmm0
cmp byte [edi + 0x1db], 0
je 0x1005903d
movsx eax, word [edi + 0x1c4]
cmp eax, dword [esp + 0x64]
jne 0x1005903d
mov ax, word [edi + 0x4e]
mov byte [esp + 0x6e], 1
cmp ax, word [edi + 0x4c]
je 0x10059042
mov byte [esp + 0x6e], 0
mov ecx, dword [esp + 0x60]
push 0
push dword [esp + 0x5c]
call fcn.10017eb0
movss xmm1, dword [esi + 0x3800]
movss xmm0, dword [esp + 0x18]
addss xmm1, xmm1
movss xmm2, dword [esp + 0x20]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x10], xmm2
movss xmm2, dword [esp + 0x44]
movss dword [esp + 0xc], xmm0
addss xmm0, xmm2
push ecx
mov dword [esp + 0x60], eax
lea eax, [esp + 0x2c]
mov dword [esp], 0xbf800000
push eax
addss xmm1, xmm0
mov dword [esp + 0x30], 0
movss dword [esp + 0x34], xmm2
maxss xmm1, dword [esp + 0x2c]
movss dword [esp + 0x1c], xmm1
call fcn.1001ad60
push 0
push 0
push dword [esp + 0x6c]
lea eax, [esp + 0x1c]
push eax
call fcn.1001aec0
add esp, 0x18
test al, al
je 0x10059544
push 0x1000
lea eax, [esp + 0x73]
push eax
lea eax, [esp + 0x75]
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x18]
push eax
call fcn.1006ec70
mov byte [esp + 0x80], al
add esp, 0x14
mov eax, dword [esp + 0x5c]
cmp dword [esi + 0x3e8c], eax
je 0x10059114
call fcn.10013250
cmp byte [esp + 0x6f], 0
jne 0x1005915c
mov cl, byte [esp + 0x6d]
test cl, cl
jne 0x10059150
cmp byte [esp + 0x6e], cl
jne 0x10059150
test byte [edi + 0x64], 1
jne 0x1005917d
mov esi, dword [edi + 0x48]
push ecx
mov dword [esp], 0x3f800000
push 0x2a
call fcn.10011380
push esi
push eax
push 3
call fcn.10059690
mov esi, dword [esp + 0x68]
jmp 0x1005917a
xor eax, eax
test cl, cl
setne al
add eax, 0x18
jmp 0x10059161
mov eax, 0x1a
push ecx
mov dword [esp], 0x3f800000
push eax
call fcn.10011380
push dword [edi + 0x48]
push eax
push 3
call fcn.10059690
add esp, 0x14
push 0xa
push dword [esp + 0x60]
lea eax, [esp + 0x10]
push eax
call fcn.1001e3e0
mov eax, dword [esp + 0x70]
add esp, 0xc
cmp byte [esp + 0x6f], 0
movzx eax, ax
je 0x100591a5
mov word [edi + 0x1b6], ax
movss xmm1, dword [esi + 0x37f0]
mov eax, dword [esp + 0x60]
mulss xmm1, dword [0x100d5910]
movss xmm0, dword [eax + 0xf4]
subss xmm0, xmm1
movss dword [eax + 0xf4], xmm0
cmp byte [esp + 0x6f], 0
je 0x10059306
test byte [edi + 4], 2
je 0x10059306
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.10013ec0
add esp, 8
test al, al
je 0x10059306
cmp byte [esi + 0x4944], 0
jne 0x10059306
mov ecx, dword [esp + 0x64]
xorps xmm1, xmm1
movzx eax, cx
mov ecx, dword [esp + 0x68]
mov word [edi + 0x1b8], ax
mov ax, word [edi + 0x4c]
mov word [edi + 0x4e], ax
comiss xmm1, dword [esi + 0xb8]
jbe 0x10059296
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [esi + 0xdc0]
jbe 0x10059296
movzx eax, word [ecx + 0x56]
cmp ax, 0xffff
je 0x10059296
cwde
imul edx, eax, 0x70
add edx, dword [edi + 0x10]
mov dword [esp + 0x5c], edx
je 0x10059296
mov eax, dword [ecx]
or eax, dword [edx]
test al, 0x40
jne 0x10059296
mov eax, dword [esp + 0x5c]
xor edx, edx
movzx ecx, word [edi + 0x1ca]
mov esi, dword [esp + 0x68]
cmp word [eax + 0x54], cx
setl dl
xor eax, eax
cmp word [esi + 0x54], cx
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x68]
setl al
cmp eax, edx
jne 0x10059296
mov eax, 0xffffffff
mov word [edi + 0x1ba], ax
movss xmm0, dword [esi + 0xb8]
comiss xmm0, xmm1
jbe 0x10059306
movss xmm0, dword [esi + 0xdc0]
comiss xmm0, dword [esp + 0x20]
jbe 0x10059306
movzx eax, word [ecx + 0x58]
cmp ax, 0xffff
je 0x10059306
cwde
imul edx, eax, 0x70
add edx, dword [edi + 0x10]
mov dword [esp + 0x5c], edx
je 0x10059306
mov eax, dword [ecx]
or eax, dword [edx]
test al, 0x40
jne 0x10059306
mov eax, dword [esp + 0x5c]
xor edx, edx
movzx ecx, word [edi + 0x1ca]
mov esi, dword [esp + 0x68]
cmp word [eax + 0x54], cx
setl dl
xor eax, eax
cmp word [esi + 0x54], cx
mov esi, dword [esp + 0x54]
setl al
cmp eax, edx
jne 0x10059306
mov eax, 1
mov word [edi + 0x1ba], ax
test byte [edi + 4], 8
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0x50]
subss xmm0, dword [esp + 0x48]
movss dword [esp + 0x54], xmm0
je 0x1005946d
mov ecx, dword [esp + 0x68]
test dword [ecx], 0x200
jne 0x1005946d
movzx eax, word [ecx + 0x5a]
cmp ax, 0xffff
je 0x1005943d
maxss xmm0, dword [esp + 0x18]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x50], xmm0
test ax, ax
jle 0x100593d3
push ecx
mov dword [esp], 0x3f333333
push 0
call fcn.10011380
push eax
push 0
call fcn.10010e70
movss xmm0, dword [esp + 0x6c]
lea eax, [esp + 0x5c]
addss xmm0, dword [esi + 0x37f4]
push 1
push 0
push eax
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x48], xmm0
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.1001db20
push 1
call fcn.10010f70
movss xmm0, dword [esp + 0x84]
add esp, 0x28
addss xmm0, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
movss dword [esp + 0x5c], xmm0
mov al, byte [ecx + 0x6d]
xor ecx, ecx
and al, 3
cmp al, 1
setne cl
add ecx, 2
push ecx
mov dword [esp], 0x3f800000
push 0
mov dword [esp + 0x50], ecx
call fcn.10011380
movss xmm0, dword [esp + 0x64]
add esp, 4
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esp + 0x30], xmm0
mov dword [esp], 0x3f266666
push dword [esp + 0x4c]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x70]
push dword [esp + 0x38]
push dword [eax + 0x264]
call fcn.1004c760
mov ecx, dword [esp + 0x80]
add esp, 0x18
cmp byte [esp + 0x6c], 0
je 0x1005946d
movsx eax, word [edi + 0x1b8]
mov edi, dword [esp + 0x64]
cmp eax, edi
je 0x10059471
push ecx
call fcn.1005e2a0
movzx ecx, byte [esi + 0xdd9]
push ecx
push eax
push edi
call fcn.1005a7d0
add esp, 0x10
jmp 0x10059471
mov edi, dword [esp + 0x64]
movss xmm1, dword [esp + 0x54]
lea eax, [esp + 0x30]
movss xmm0, dword [esp + 0x3c]
addss xmm0, dword [esp + 0x44]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x30]
movss dword [esp + 0x30], xmm1
push dword [esp + 0x60]
addss xmm0, dword [esi + 0x37e0]
sub esp, 8
movss dword [esp + 4], xmm1
movss dword [esp], xmm1
push eax
lea eax, [esp + 0x50]
movss dword [esp + 0x44], xmm0
push eax
mov eax, dword [esp + 0x7c]
push dword [eax + 0x264]
call fcn.1001de80
movss xmm1, dword [esp + 0x74]
add esp, 0x20
subss xmm1, dword [esp + 0x38]
movss xmm0, dword [esp + 0x30]
comiss xmm0, xmm1
jbe 0x1005951f
cmp byte [esp + 0x6d], 0
je 0x1005951f
cmp dword [esi + 0x3e8c], 0
jne 0x1005951f
push 0x800
call fcn.10012e70
add esp, 4
test al, al
je 0x1005951f
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x40]
push ecx
sub eax, ecx
push eax
push str._.s
call fcn.10011d40
add esp, 0xc
push 1
call fcn.10013c90
add esp, 4
test al, al
je 0x10059544
push 0
call fcn.10012e70
add esp, 4
test al, al
je 0x10059544
push edi
call fcn.1005a650
add esp, 4
pop edi
pop esi
add esp, 0x68
ret