Function at 0x1005b8c4
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 [0x10110f1c]
push edi
cmp byte [ebp + 0x67], 0
mov dword [esp + 0x30], esi
je 0x1005b90c
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.1006c86f
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 0x1005b966
push dword [esp + 0xac]
push dword [esp + 0xa4]
push ebp
call fcn.1006c82e
mov ecx, dword [esp + 0xb0]
add esp, 0xc
mov edi, eax
mov dword [esp + 0x68], edi
test ecx, ecx
je 0x1005b973
cmp byte [ecx], 0
jne 0x1005b973
push 8
push 0
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [esp + 0x64], xmm0
call fcn.1001269c
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 0x1005b98d
and dword [esp + 0xa4], 0
jmp 0x1005b99a
test ecx, ecx
jne 0x1005b99a
or eax, edx
mov dword [esp + 0xa8], eax
push edi
push ebp
call fcn.1005b5e2
mov ebx, eax
mov byte [esp + 0x1a], 0
pop ecx
pop ecx
test ebx, ebx
jne 0x1005b9d6
lea ecx, [esp + 0x6c]
call fcn.1006bc11
push eax
mov ecx, ebp
call fcn.1006d640
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 0x1005b9fd
test byte [esp + 0xa8], 1
jne 0x1005b9fd
xor al, al
jmp 0x1005b9ff
mov al, 1
push eax
push dword [esp + 0xa4]
lea eax, [esp + 0x54]
push eax
call fcn.1005bfff
add esp, 0xc
mov dword [ebx + 0x1c], 0xbf800000
test byte [esi + 0x46a0], 1
je 0x1005ba33
movss xmm1, dword [esi + 0x46a4]
movss dword [ebx + 0x1c], xmm1
jmp 0x1005ba39
movss xmm1, dword [esp + 0x4c]
cmp byte [esp + 0x12], 0
movss xmm5, dword [0x100ba4c4]
je 0x1005ba54
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 0x1005baa8
test byte [ebx + 4], 1
mov byte [esp + 0x15], 1
je 0x1005baad
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 0x1005bb21
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 0x1005baed
sub edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
add eax, edx
push eax
push ecx
lea ecx, [ebp + 0x84]
call fcn.1000e815
movss xmm5, dword [0x100ba4c4]
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
test al, al
jne 0x1005bb57
cmp dword [esp + 0x34], edx
jge 0x1005bb48
test byte [ebp + 0xc], 2
je 0x1005bb48
cmp dword [ebp + 0x18], 0
jne 0x1005bb48
cmp dword [esp + 0x20], edx
jge 0x1005bb43
cmp dword [ebp + 0x14], 0
jne 0x1005bb48
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
test cl, 2
je 0x1005bb57
cmp dword [ebp + 0x14], edi
je 0x1005bb57
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x1c], edi
sete byte [esp + 0x18]
jne 0x1005bb6a
mov byte [ebp + 0x68], 1
lea ecx, [ebp + 0x14]
jmp 0x1005bb8b
lea eax, [ebp + 0x14]
cmp dword [eax], 0
mov ecx, eax
jne 0x1005bb8b
cmp dword [esp + 0x20], edx
jge 0x1005bb8b
cmp dword [ebp], 1
jne 0x1005bb8b
test byte [ebp + 0xc], 2
jne 0x1005bb8b
mov byte [esp + 0x18], 1
cmp dword [esp + 0x34], edx
jge 0x1005bbc8
cmp dword [esp + 0x20], edx
jge 0x1005bb9e
cmp byte [esp + 0x12], 0
je 0x1005bbc8
push 8
push 0
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [esp + 0x64], xmm0
call fcn.1001269c
add esp, 0x10
cmp byte [esp + 0x1c], 0
jne 0x1005b966
jmp 0x1005bd4c
cmp dword [ecx], edi
jne 0x1005bbd5
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 0x1005bc17
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 0x1005bcc0
movss xmm3, dword [ebp + 0x58]
comiss xmm3, xmm1
ja 0x1005bc68
comiss xmm0, dword [ebp + 0x5c]
jbe 0x1005bcc0
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.1000c128
movss xmm4, dword [esp + 0x54]
add esp, 0xc
movss xmm0, dword [esp + 0x44]
movss xmm2, dword [esp + 0x40]
movss xmm1, dword [esp + 0x3c]
jmp 0x1005bcc5
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.1001254b
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.1001269c
add esp, 0x18
test al, al
jne 0x1005bd55
cmp byte [esp + 0x12], al
je 0x1005bd38
call fcn.1000c19d
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 0x1005b968
mov esi, dword [esp + 0x30]
mov eax, 0x1000
mov ecx, 0x1200
cmp byte [esi + 0x4944], 0
cmove ecx, eax
mov eax, dword [esp + 0x1c]
movzx eax, al
inc eax
shl eax, 4
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.1005e521
add esp, 0x14
mov byte [esp + 0x17], al
test al, al
je 0x1005bda7
cmp byte [esp + 0x1c], 0
jne 0x1005bda7
mov ecx, dword [ebx]
mov dword [ebp + 0x18], ecx
cmp dword [esi + 0x3e8c], edi
je 0x1005bdb4
call fcn.1000c6ff
cmp byte [esp + 0x13], 0
je 0x1005be32
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x28]
jl 0x1005be32
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.1000d228
pop ecx
pop ecx
test al, al
je 0x1005be32
cmp byte [esi + 0x4944], 0
jne 0x1005be32
test byte [ebp + 0xc], 1
je 0x1005be32
movss xmm1, dword [esi + 0xb8]
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1005be08
movss xmm0, dword [esp + 0x3c]
comiss xmm0, dword [esi + 0xdc0]
jmp 0x1005be1a
comiss xmm1, xmm0
jbe 0x1005be32
movss xmm0, dword [esi + 0xdc0]
comiss xmm0, dword [esp + 0x44]
jbe 0x1005be32
push dword [esi + 0xdc4]
push dword [esi + 0xdc0]
push ebx
push ebp
call fcn.1005b6fa
add esp, 0x10
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x264]
mov dword [esp + 0x28], eax
jne 0x1005be7b
cmp byte [esp + 0x14], 0
jne 0x1005be7b
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 0x1005be7e
push 0x22
pop ecx
push ecx
mov dword [esp], 0x3f800000
push ecx
call fcn.1000ab6c
push eax
push dword [esp + 0xb4]
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x3c]
call fcn.1005c0a3
push 1
lea eax, [esp + 0x58]
push edi
push eax
call fcn.10015571
push 0x20
call fcn.1000c3ce
add esp, 0x28
test al, al
je 0x1005bee4
push 0
push 1
call fcn.1000d022
pop ecx
pop ecx
test al, al
jne 0x1005bed8
push 1
call fcn.1000d037
pop ecx
test al, al
je 0x1005bee4
cmp byte [esp + 0x1c], 0
jne 0x1005bee4
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
test byte [ebp + 0xc], 8
je 0x1005bef2
or dword [esp + 0xa8], 4
cmp dword [esp + 0xa4], 0
je 0x1005bf0e
push edi
push 0
push str.CLOSE
call fcn.100124cb
add esp, 0xc
jmp 0x1005bf10
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.1005c329
add esp, 0x2c
cmp byte [esp + 0x14], 0
je 0x1005bf71
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x1005bf71
push ebx
push ebp
mov byte [eax], 0
call fcn.1005b69b
pop ecx
pop ecx
cmp byte [esp + 0x12], 0
je 0x1005bf7d
call fcn.1000c19d
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 0x1005bfe8
cmp dword [esi + 0x3e78], edi
jne 0x1005bfe8
cmp byte [esp + 0x13], 0
jne 0x1005bfe8
test byte [ebp + 0xc], 0x20
jne 0x1005bfe8
test byte [ebx + 4], 0x10
jne 0x1005bfe8
push 0x800
call fcn.1000c3ce
pop ecx
test al, al
je 0x1005bfe8
mov ebx, dword [esp + 0xa0]
push ebx
push 0
push ebx
call fcn.100157b2
pop ecx
pop ecx
sub eax, ebx
push eax
push str._.s
call fcn.1000b421
add esp, 0xc
cmp byte [esp + 0x1c], 0
movzx eax, byte [esp + 0x18]
movzx ecx, byte [esp + 0x17]
cmovne eax, ecx
jmp 0x1005b968