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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [0x1010ef08]
push edi
cmp byte [ebp + 0x67], 0
mov dword [esp + 0x30], esi
je 0x10058deb
lea ebx, [esi + 0x46a0]
push 5
pop ecx
mov esi, ebx
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
push ebp
call fcn.10069f7e
pop ecx
push 5
pop ecx
lea esi, [esp + 0x54]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x3e40]
mov dword [esp + 0x24], eax
cmp byte [eax + 0xaf], 0
jne 0x10058e45
push dword [esp + 0xac]
push dword [esp + 0xa4]
push ebp
call fcn.10069f3d
mov ecx, dword [esp + 0xb0]
add esp, 0xc
mov edi, eax
mov dword [esp + 0x68], edi
test ecx, ecx
je 0x10058e52
cmp byte [ecx], 0
jne 0x10058e52
push 8
push 0
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [esp + 0x64], xmm0
call fcn.1000f7a8
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [esp + 0xa8]
mov edx, 0x100000
test edx, eax
je 0x10058e6c
and dword [esp + 0xa4], 0
jmp 0x10058e79
test ecx, ecx
jne 0x10058e79
or eax, edx
mov dword [esp + 0xa8], eax
push edi
push ebp
call fcn.10058ac1
mov ebx, eax
mov byte [esp + 0x1a], 0
pop ecx
pop ecx
test ebx, ebx
jne 0x10058eb5
lea ecx, [esp + 0x6c]
call fcn.1006931a
push eax
mov ecx, ebp
call fcn.1006ad50
imul ecx, dword [ebp], 0x2c
mov ebx, dword [ebp + 8]
add ebx, 0xffffffd4
mov byte [esp + 0x12], 1
add ebx, ecx
mov dword [ebx], edi
mov byte [ebp + 0x69], 1
mov eax, ebx
sub eax, dword [ebp + 8]
push 0x2c
cdq
pop ecx
idiv ecx
cmp dword [esp + 0xa4], 0
mov word [ebp + 0x6c], ax
jne 0x10058edc
test byte [esp + 0xa8], 1
jne 0x10058edc
xor al, al
jmp 0x10058ede
mov al, 1
push eax
push dword [esp + 0xa4]
lea eax, [esp + 0x54]
push eax
call fcn.100594de
add esp, 0xc
mov dword [ebx + 0x1c], 0xbf800000
test byte [esi + 0x46a0], 1
je 0x10058f12
movss xmm1, dword [esi + 0x46a4]
movss dword [ebx + 0x1c], xmm1
jmp 0x10058f18
movss xmm1, dword [esp + 0x4c]
cmp byte [esp + 0x12], 0
movss xmm5, dword [0x100bbe20]
je 0x10058f33
movaps xmm0, xmm1
maxss xmm0, xmm5
movss dword [ebx + 0x14], xmm0
movss dword [ebx + 0x18], xmm1
movzx ecx, word [ebp + 0x6a]
lea eax, [ecx + 1]
mov word [ebp + 0x6a], ax
mov word [ebx + 0x24], cx
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0xa8]
inc eax
mov edx, dword [esi + 0x3de0]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x15
and eax, 0xffffff01
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 8]
inc eax
mov dword [esp + 0x34], eax
test cl, 1
je 0x10058f87
test byte [ebx + 4], 1
mov byte [esp + 0x15], 1
je 0x10058f8c
mov byte [esp + 0x15], 0
mov eax, ecx
mov dword [ebx + 8], edx
shr eax, 0x15
and eax, 0xffffff01
mov dword [ebx + 4], ecx
cmp dword [esp + 0xac], 0
mov dword [esp + 0x1c], eax
jne 0x10059000
mov ecx, dword [ebp + 0x84]
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0xa0]
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x2c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10058fcc
sub edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
add eax, edx
push eax
push ecx
lea ecx, [ebp + 0x84]
call fcn.1000b948
movss xmm5, dword [0x100bbe20]
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
test al, al
jne 0x10059036
cmp dword [esp + 0x34], edx
jge 0x10059027
test byte [ebp + 0xc], 2
je 0x10059027
cmp dword [ebp + 0x18], 0
jne 0x10059027
cmp dword [esp + 0x20], edx
jge 0x10059022
cmp dword [ebp + 0x14], 0
jne 0x10059027
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
test cl, 2
je 0x10059036
cmp dword [ebp + 0x14], edi
je 0x10059036
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x1c], edi
sete byte [esp + 0x18]
jne 0x10059049
mov byte [ebp + 0x68], 1
lea ecx, [ebp + 0x14]
jmp 0x1005906a
lea eax, [ebp + 0x14]
cmp dword [eax], 0
mov ecx, eax
jne 0x1005906a
cmp dword [esp + 0x20], edx
jge 0x1005906a
cmp dword [ebp], 1
jne 0x1005906a
test byte [ebp + 0xc], 2
jne 0x1005906a
mov byte [esp + 0x18], 1
cmp dword [esp + 0x34], edx
jge 0x100590a7
cmp dword [esp + 0x20], edx
jge 0x1005907d
cmp byte [esp + 0x12], 0
je 0x100590a7
push 8
push 0
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [esp + 0x64], xmm0
call fcn.1000f7a8
add esp, 0x10
cmp byte [esp + 0x1c], 0
jne 0x10058e45
jmp 0x1005922b
cmp dword [ecx], edi
jne 0x100590b4
mov eax, dword [esi + 0x3de0]
mov dword [ebx + 0xc], eax
mov edi, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
movss xmm3, dword [ebx + 0x14]
movss xmm1, dword [ebx + 0x10]
mov eax, dword [edi + 0xf0]
movss xmm2, dword [ebp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xf4]
mov dword [esp + 0x2c], eax
and ecx, 0xc0
jne 0x100590f6
subss xmm1, dword [ebp + 0x48]
cvttss2si eax, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movaps xmm4, xmm2
addss xmm1, dword [ebp + 0x28]
movss dword [edi + 0xf0], xmm1
movaps xmm0, xmm1
movss dword [edi + 0xf4], xmm2
addss xmm0, xmm3
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0x40], xmm2
addss xmm4, dword [esp + 0x50]
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x48], xmm4
test ecx, ecx
jne 0x1005919f
movss xmm3, dword [ebp + 0x58]
comiss xmm3, xmm1
ja 0x10059147
comiss xmm0, dword [ebp + 0x5c]
jbe 0x1005919f
movss xmm0, dword [ebp + 0x5c]
maxss xmm3, xmm1
subss xmm2, xmm5
mov byte [esp + 0x12], 1
push 1
lea eax, [esp + 0x50]
movss dword [esp + 0x50], xmm0
push eax
lea eax, [esp + 0x5c]
movss dword [esp + 0x58], xmm4
push eax
movss dword [esp + 0x60], xmm3
movss dword [esp + 0x64], xmm2
call fcn.10009290
movss xmm4, dword [esp + 0x54]
add esp, 0xc
movss xmm0, dword [esp + 0x44]
movss xmm2, dword [esp + 0x40]
movss xmm1, dword [esp + 0x3c]
jmp 0x100591a4
mov byte [esp + 0x12], 0
mov eax, dword [esp + 0x30]
subss xmm0, xmm1
mov esi, dword [edi + 0x108]
subss xmm4, xmm2
mov edi, dword [edi + 0x10c]
push ecx
movss dword [esp + 0x58], xmm0
movss xmm0, dword [eax + 0x37e0]
lea eax, [esp + 0x58]
movss dword [esp], xmm0
push eax
movss dword [esp + 0x60], xmm4
call fcn.1000f657
mov eax, dword [esp + 0x2c]
push 0
push 0
mov dword [eax + 0x108], esi
mov esi, eax
lea eax, [esp + 0x4c]
mov dword [esi + 0x10c], edi
mov edi, dword [esp + 0x78]
push edi
push eax
call fcn.1000f7a8
add esp, 0x18
test al, al
jne 0x10059234
cmp byte [esp + 0x12], al
je 0x10059217
call fcn.10009305
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xf0], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0xf4], ecx
mov al, byte [esp + 0x18]
jmp 0x10058e47
mov eax, dword [esp + 0x1c]
mov edx, 0x1000
mov esi, dword [esp + 0x30]
movzx ecx, al
mov eax, 0x1200
inc ecx
shl ecx, 4
cmp byte [esi + 0x4944], 0
cmove eax, edx
or ecx, eax
lea eax, [esp + 0x13]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push edi
push eax
call fcn.1005b9bb
add esp, 0x14
mov byte [esp + 0x17], al
test al, al
je 0x10059286
cmp byte [esp + 0x1c], 0
jne 0x10059286
mov ecx, dword [ebx]
mov dword [ebp + 0x18], ecx
cmp dword [esi + 0x3e8c], edi
je 0x10059293
call fcn.10009860
cmp byte [esp + 0x13], 0
je 0x10059311
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x28]
jl 0x10059311
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.1000a386
pop ecx
pop ecx
test al, al
je 0x10059311
cmp byte [esi + 0x4944], 0
jne 0x10059311
test byte [ebp + 0xc], 1
je 0x10059311
movss xmm1, dword [esi + 0xb8]
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x100592e7
movss xmm0, dword [esp + 0x3c]
comiss xmm0, dword [esi + 0xdc0]
jmp 0x100592f9
comiss xmm1, xmm0
jbe 0x10059311
movss xmm0, dword [esi + 0xdc0]
comiss xmm0, dword [esp + 0x44]
jbe 0x10059311
push dword [esi + 0xdc4]
push dword [esi + 0xdc0]
push ebx
push ebp
call fcn.10058bd9
add esp, 0x10
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x264]
mov dword [esp + 0x28], eax
jne 0x1005935a
cmp byte [esp + 0x14], 0
jne 0x1005935a
mov edx, dword [esp + 0x38]
movzx eax, dl
xor eax, 1
mov dword [esp + 0x38], 0x21
push 0x24
test dl, dl
pop ecx
cmovne ecx, dword [esp + 0x38]
lea eax, [eax*2 + 0x23]
cmp byte [esp + 0x18], 0
cmovne ecx, eax
jmp 0x1005935d
push 0x22
pop ecx
push ecx
mov dword [esp], 0x3f800000
push ecx
call fcn.10007cd0
push eax
push dword [esp + 0xb4]
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x3c]
call fcn.10059582
push 1
lea eax, [esp + 0x58]
push edi
push eax
call fcn.1001269f
push 0x20
call fcn.1000952f
add esp, 0x28
test al, al
je 0x100593c3
push 0
push 1
call fcn.1000a185
pop ecx
pop ecx
test al, al
jne 0x100593b7
push 1
call fcn.1000a19a
pop ecx
test al, al
je 0x100593c3
cmp byte [esp + 0x1c], 0
jne 0x100593c3
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
test byte [ebp + 0xc], 8
je 0x100593d1
or dword [esp + 0xa8], 4
cmp dword [esp + 0xa4], 0
je 0x100593ed
push edi
push 0
push str.CLOSE
call fcn.1000f5d7
add esp, 0xc
jmp 0x100593ef
xor eax, eax
lea ecx, [esp + 0x16]
push ecx
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x20]
mov ecx, dword [esp + 0xb4]
push eax
push edi
push dword [esp + 0xb4]
mov eax, ecx
push dword [ebp + 0x78]
and eax, 0xfffffffe
cmp byte [esp + 0x31], 0
push dword [ebp + 0x74]
cmovne ecx, eax
lea eax, [esp + 0x5c]
push ecx
push eax
push dword [esp + 0x50]
call fcn.10059810
add esp, 0x2c
cmp byte [esp + 0x14], 0
je 0x10059450
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x10059450
push ebx
push ebp
mov byte [eax], 0
call fcn.10058b7a
pop ecx
pop ecx
cmp byte [esp + 0x12], 0
je 0x1005945c
call fcn.10009305
cmp byte [esp + 0x16], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xf0], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xf4], ecx
je 0x100594c7
cmp dword [esi + 0x3e78], edi
jne 0x100594c7
cmp byte [esp + 0x13], 0
jne 0x100594c7
test byte [ebp + 0xc], 0x20
jne 0x100594c7
test byte [ebx + 4], 0x10
jne 0x100594c7
push 0x800
call fcn.1000952f
pop ecx
test al, al
je 0x100594c7
mov ebx, dword [esp + 0xa0]
push ebx
push 0
push ebx
call fcn.100128e0
pop ecx
pop ecx
sub eax, ebx
push eax
push str._.s
call fcn.10008589
add esp, 0xc
cmp byte [esp + 0x1c], 0
movzx eax, byte [esp + 0x18]
movzx ecx, byte [esp + 0x17]
cmovne eax, ecx
jmp 0x10058e47