Function at 0x1005837a
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 [0x100e6f58]
push edi
cmp byte [ebp + 0x67], 0
mov dword [esp + 0x30], esi
je 0x100583c2
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.10069556
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 0x1005841c
push dword [esp + 0xac]
push dword [esp + 0xa4]
push ebp
call fcn.10069515
mov ecx, dword [esp + 0xb0]
add esp, 0xc
mov edi, eax
mov dword [esp + 0x68], edi
test ecx, ecx
je 0x10058429
cmp byte [ecx], 0
jne 0x10058429
push 8
push 0
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [esp + 0x64], xmm0
call fcn.1000ed6e
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 0x10058443
and dword [esp + 0xa4], 0
jmp 0x10058450
test ecx, ecx
jne 0x10058450
or eax, edx
mov dword [esp + 0xa8], eax
push edi
push ebp
call fcn.10058098
mov ebx, eax
mov byte [esp + 0x1a], 0
pop ecx
pop ecx
test ebx, ebx
jne 0x1005848c
lea ecx, [esp + 0x6c]
call fcn.100688f2
push eax
mov ecx, ebp
call fcn.1006a328
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 0x100584b3
test byte [esp + 0xa8], 1
jne 0x100584b3
xor al, al
jmp 0x100584b5
mov al, 1
push eax
push dword [esp + 0xa4]
lea eax, [esp + 0x54]
push eax
call fcn.10058ab5
add esp, 0xc
mov dword [ebx + 0x1c], 0xbf800000
test byte [esi + 0x46a0], 1
je 0x100584e9
movss xmm1, dword [esi + 0x46a4]
movss dword [ebx + 0x1c], xmm1
jmp 0x100584ef
movss xmm1, dword [esp + 0x4c]
cmp byte [esp + 0x12], 0
movss xmm5, dword [0x100b4c90]
je 0x1005850a
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 0x1005855e
test byte [ebx + 4], 1
mov byte [esp + 0x15], 1
je 0x10058563
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 0x100585d7
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 0x100585a3
sub edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
add eax, edx
push eax
push ecx
lea ecx, [ebp + 0x84]
call fcn.1000af0e
movss xmm5, dword [0x100b4c90]
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
test al, al
jne 0x1005860d
cmp dword [esp + 0x34], edx
jge 0x100585fe
test byte [ebp + 0xc], 2
je 0x100585fe
cmp dword [ebp + 0x18], 0
jne 0x100585fe
cmp dword [esp + 0x20], edx
jge 0x100585f9
cmp dword [ebp + 0x14], 0
jne 0x100585fe
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
test cl, 2
je 0x1005860d
cmp dword [ebp + 0x14], edi
je 0x1005860d
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x1c], edi
sete byte [esp + 0x18]
jne 0x10058620
mov byte [ebp + 0x68], 1
lea ecx, [ebp + 0x14]
jmp 0x10058641
lea eax, [ebp + 0x14]
cmp dword [eax], 0
mov ecx, eax
jne 0x10058641
cmp dword [esp + 0x20], edx
jge 0x10058641
cmp dword [ebp], 1
jne 0x10058641
test byte [ebp + 0xc], 2
jne 0x10058641
mov byte [esp + 0x18], 1
cmp dword [esp + 0x34], edx
jge 0x1005867e
cmp dword [esp + 0x20], edx
jge 0x10058654
cmp byte [esp + 0x12], 0
je 0x1005867e
push 8
push 0
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [esp + 0x64], xmm0
call fcn.1000ed6e
add esp, 0x10
cmp byte [esp + 0x1c], 0
jne 0x1005841c
jmp 0x10058802
cmp dword [ecx], edi
jne 0x1005868b
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 0x100586cd
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 0x10058776
movss xmm3, dword [ebp + 0x58]
comiss xmm3, xmm1
ja 0x1005871e
comiss xmm0, dword [ebp + 0x5c]
jbe 0x10058776
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.10008856
movss xmm4, dword [esp + 0x54]
add esp, 0xc
movss xmm0, dword [esp + 0x44]
movss xmm2, dword [esp + 0x40]
movss xmm1, dword [esp + 0x3c]
jmp 0x1005877b
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.1000ec1d
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.1000ed6e
add esp, 0x18
test al, al
jne 0x1005880b
cmp byte [esp + 0x12], al
je 0x100587ee
call fcn.100088cb
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 0x1005841e
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.1005af92
add esp, 0x14
mov byte [esp + 0x17], al
test al, al
je 0x1005885d
cmp byte [esp + 0x1c], 0
jne 0x1005885d
mov ecx, dword [ebx]
mov dword [ebp + 0x18], ecx
cmp dword [esi + 0x3e8c], edi
je 0x1005886a
call fcn.10008e26
cmp byte [esp + 0x13], 0
je 0x100588e8
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x28]
jl 0x100588e8
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.1000994c
pop ecx
pop ecx
test al, al
je 0x100588e8
cmp byte [esi + 0x4944], 0
jne 0x100588e8
test byte [ebp + 0xc], 1
je 0x100588e8
movss xmm1, dword [esi + 0xb8]
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x100588be
movss xmm0, dword [esp + 0x3c]
comiss xmm0, dword [esi + 0xdc0]
jmp 0x100588d0
comiss xmm1, xmm0
jbe 0x100588e8
movss xmm0, dword [esi + 0xdc0]
comiss xmm0, dword [esp + 0x44]
jbe 0x100588e8
push dword [esi + 0xdc4]
push dword [esi + 0xdc0]
push ebx
push ebp
call fcn.100581b0
add esp, 0x10
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x264]
mov dword [esp + 0x28], eax
jne 0x10058931
cmp byte [esp + 0x14], 0
jne 0x10058931
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 0x10058934
push 0x22
pop ecx
push ecx
mov dword [esp], 0x3f800000
push ecx
call fcn.10007296
push eax
push dword [esp + 0xb4]
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x3c]
call fcn.10058b59
push 1
lea eax, [esp + 0x58]
push edi
push eax
call fcn.10011c65
push 0x20
call fcn.10008af5
add esp, 0x28
test al, al
je 0x1005899a
push 0
push 1
call fcn.1000974b
pop ecx
pop ecx
test al, al
jne 0x1005898e
push 1
call fcn.10009760
pop ecx
test al, al
je 0x1005899a
cmp byte [esp + 0x1c], 0
jne 0x1005899a
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
test byte [ebp + 0xc], 8
je 0x100589a8
or dword [esp + 0xa8], 4
cmp dword [esp + 0xa4], 0
je 0x100589c4
push edi
push 0
push str.CLOSE
call fcn.1000eb9d
add esp, 0xc
jmp 0x100589c6
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.10058de7
add esp, 0x2c
cmp byte [esp + 0x14], 0
je 0x10058a27
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x10058a27
push ebx
push ebp
mov byte [eax], 0
call fcn.10058151
pop ecx
pop ecx
cmp byte [esp + 0x12], 0
je 0x10058a33
call fcn.100088cb
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 0x10058a9e
cmp dword [esi + 0x3e78], edi
jne 0x10058a9e
cmp byte [esp + 0x13], 0
jne 0x10058a9e
test byte [ebp + 0xc], 0x20
jne 0x10058a9e
test byte [ebx + 4], 0x10
jne 0x10058a9e
push 0x800
call fcn.10008af5
pop ecx
test al, al
je 0x10058a9e
mov ebx, dword [esp + 0xa0]
push ebx
push 0
push ebx
call fcn.10011ea6
pop ecx
pop ecx
sub eax, ebx
push eax
push str._.s
call fcn.10007b4f
add esp, 0xc
cmp byte [esp + 0x1c], 0
movzx eax, byte [esp + 0x18]
movzx ecx, byte [esp + 0x17]
cmovne eax, ecx
jmp 0x1005841e