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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5c0477
sub esp, 0x6c
mov ebx, dword [esp + 0x70]
mov ebp, dword [ebx + 0x1a4]
mov ecx, dword [ebx + 0x1a8]
mov esi, dword [ebx + 0x1ac]
mov eax, dword [ebx + 0x1b0]
mov edi, ecx
sub ecx, eax
cmp ecx, 4
jge 0x5bfc1a
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.005bc0d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5bfbb9
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
add esp, 0x6c
ret
nop
cmp edi, eax
jb 0x5c046f
sub esi, eax
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and eax, esi
movzx esi, byte [ebp + eax + 1]
shl esi, 0x10
movzx edi, byte [ebp + eax + 2]
shl edi, 8
or edi, esi
movzx ebp, byte [ebp + eax + 3]
or ebp, edi
mov dword [esp + 0x28], ebp
cmp ebp, 0x10000
jle 0x5bfdf2
mov dword [esp], ebx
mov byte [esp + 4], 0x50
call fcn.005becb0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00408f90
mov eax, dword [esp + 4]
lea ecx, [0x733f60]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
lea eax, [0x7c8254]
mov dword [esp + 0x68], eax
lea eax, [0x77b63a]
mov dword [esp], eax
mov dword [esp + 4], 0x45
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a4ad0
nop
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
lea edx, [0x7422a0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004092b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5bfd4f
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x900e70]
test ecx, ecx
jne 0x5bfd3e
mov eax, dword [esp + 0x3c]
mov dword [edx + 0xd4], eax
jmp 0x5bfdbf
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x3c]
call fcn.00456ac0
jmp 0x5bfdbf
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], ecx
lea eax, [0x73c5c0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x900e70]
test ecx, ecx
jne 0x5bfd82
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
jmp 0x5bfd92
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.00456ac0
mov eax, ecx
lea ecx, [0x7ca4ec]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x900e70]
test ecx, ecx
jne 0x5bfdb4
mov dword [edx + 0xd4], eax
jmp 0x5bfdbf
lea edi, [edx + 0xd4]
call fcn.00456ac0
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x28]
lea esi, [ebp + 4]
mov edi, dword [ebx + 0x1a8]
sub edi, dword [ebx + 0x1b0]
cmp edi, esi
jge 0x5bfe41
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.005bc0d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5bfdea
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
add esp, 0x6c
ret
nop
mov byte [ebx + 0x1b4], 0
nop
mov edx, dword [ebx + 0x1ac]
mov ebp, dword [ebx + 0x1a4]
mov edi, dword [ebx + 0x1a8]
mov eax, dword [ebx + 0x1b0]
sub edi, eax
cmp edi, esi
jl 0x5bfe6a
mov edi, esi
lea ecx, [edi + eax]
cmp edx, ecx
jb 0x5c046a
cmp eax, ecx
ja 0x5c0465
mov dword [ebx + 0x1b0], ecx
sub edx, eax
neg edx
sar edx, 0x1f
and eax, edx
lea edx, [ebp + eax]
test edi, edi
jle 0x5bfe9b
mov byte [ebx + 0x1b4], 0xff
jbe 0x5c045c
mov dword [esp + 0x24], edi
mov dword [esp + 0x50], edx
movzx eax, byte [ebp + eax]
cmp al, 0xb
ja 0x5bfff1
cmp al, 2
ja 0x5bff18
test al, al
jne 0x5bfed1
lea ecx, [0x7cafe4]
lea eax, [0x900b24]
jmp 0x5c0281
cmp al, 1
jne 0x5bfef7
lea eax, [0x7602c0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea ecx, [0x7caf6c]
jmp 0x5c0281
lea eax, [0x75eda0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea ecx, [0x7caf54]
jmp 0x5c0281
cmp al, 5
ja 0x5bff7f
cmp al, 4
jne 0x5bff65
cmp word [ebx + 0x24], 0x304
jne 0x5bff44
lea eax, [0x752f20]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
lea ecx, [0x7caf0c]
jmp 0x5bff5c
lea eax, [0x741940]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
lea ecx, [0x7caf84]
mov edi, dword [esp + 0x24]
jmp 0x5c0281
cmp al, 5
jne 0x5c0130
lea ecx, [0x7caf9c]
lea eax, [0x900b24]
jmp 0x5c0281
cmp al, 8
je 0x5bffd0
cmp al, 0xb
jne 0x5c0130
cmp word [ebx + 0x24], 0x304
jne 0x5bffaf
lea eax, [0x74b860]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
lea ecx, [0x7cae7c]
jmp 0x5bffc7
lea eax, [0x741760]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
lea ecx, [0x7caedc]
mov edi, dword [esp + 0x24]
jmp 0x5c0281
lea eax, [0x7416a0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea ecx, [0x7cae64]
jmp 0x5c0281
cmp al, 0xf
ja 0x5c00cd
cmp al, 0xd
ja 0x5c0084
cmp al, 0xc
je 0x5c0063
cmp word [ebx + 0x24], 0x304
jne 0x5c0030
lea eax, [0x752fc0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
lea ecx, [0x7cafb4]
mov edx, eax
mov eax, dword [esp + 0x70]
jmp 0x5c0058
lea eax, [0x74f9e0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 0x70]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
lea ecx, [0x7caec4]
mov edi, dword [esp + 0x24]
mov eax, edx
jmp 0x5c0281
lea eax, [0x741880]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea ecx, [0x7caf3c]
jmp 0x5c0281
cmp al, 0xe
jne 0x5c009a
lea ecx, [0x7caeac]
lea eax, [0x900b24]
jmp 0x5c0281
lea eax, [0x74b9e0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 0x70]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
mov edi, dword [esp + 0x24]
lea ecx, [0x7cafcc]
mov eax, edx
jmp 0x5c0281
cmp al, 0x14
ja 0x5c011e
cmp al, 0x10
je 0x5c00fd
cmp al, 0x14
jne 0x5c0130
lea eax, [0x741b20]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea ecx, [0x7caffc]
jmp 0x5c0281
lea eax, [0x741820]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea ecx, [0x7caf24]
jmp 0x5c0281
cmp al, 0x16
je 0x5c0265
cmp al, 0x18
je 0x5c0247
mov dword [esp], ebx
mov byte [esp + 4], 0xa
call fcn.005bee80
nop
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
lea edx, [0x7422a0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004092b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5c01ac
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x900e70]
test ecx, ecx
jne 0x5c019b
mov eax, dword [esp + 0x38]
mov dword [edx + 0xd4], eax
jmp 0x5c021c
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x38]
call fcn.00456ac0
jmp 0x5c021c
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], ecx
lea eax, [0x73c5c0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x900e70]
test ecx, ecx
jne 0x5c01df
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
jmp 0x5c01ef
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x48]
call fcn.00456ac0
mov eax, ecx
lea ecx, [0x7ca4ec]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x900e70]
test ecx, ecx
jne 0x5c0211
mov dword [edx + 0xd4], eax
jmp 0x5c021c
lea edi, [edx + 0xd4]
call fcn.00456ac0
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x6c
ret
lea eax, [0x7417c0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea ecx, [0x7caef4]
jmp 0x5c0281
lea eax, [0x741700]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea ecx, [0x7cae94]
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ecx
mov dword [esp], 0
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], edi
lea edx, [0x7347e0]
mov dword [esp + 0x10], edx
call fcn.00442820
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp], eax
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 8], ebx
call fcn.00457450
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x40]
mov dword [esp], edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
call ecx
movzx eax, byte [esp + 0x10]
test al, al
je 0x5c0342
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5c031d
mov ecx, dword [eax + 4]
jmp 0x5c031f
mov ecx, eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x6c
ret
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov byte [esp + 4], 0xa
call fcn.005bee80
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x34], ecx
lea edx, [0x7422a0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004092b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5c03c1
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x900e70]
test ecx, ecx
jne 0x5c03b0
mov eax, dword [esp + 0x34]
mov dword [edx + 0xd4], eax
jmp 0x5c0431
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x34]
call fcn.00456ac0
jmp 0x5c0431
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], edx
lea eax, [0x73c5c0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x900e70]
test ecx, ecx
jne 0x5c03f4
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
jmp 0x5c0404
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x44]
call fcn.00456ac0
mov eax, ecx
lea ecx, [0x7ca4ec]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x900e70]
test ecx, ecx
jne 0x5c0426
mov dword [edx + 0xd4], eax
jmp 0x5c0431
lea edi, [edx + 0xd4]
call fcn.00456ac0
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x6c
ret
xor eax, eax
mov ecx, eax
call fcn.00456b40
call fcn.00456ba0
call fcn.00456b80
mov ecx, edi
call fcn.00456ba0
nop
call fcn.00455690
jmp fcn.005bfba0