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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5c7025
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 0x5c6780
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.005c2a90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5c6719
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x6c
ret
nop
cmp edi, eax
jb 0x5c701d
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 + 0x24], ebp
cmp ebp, 0x10000
jle 0x5c695d
mov dword [esp], ebx
mov byte [esp + 4], 0x50
call fcn.005c5670
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00409530
mov eax, dword [esp + 4]
lea ecx, [0x68d640]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
lea eax, [0x72e9a8]
mov dword [esp + 0x68], eax
lea eax, [0x6dccb5]
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.004cbfe0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea edx, [0x69f2c0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409850
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5c68b4
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8e7a50]
test ecx, ecx
jne 0x5c68a3
mov eax, dword [esp + 0x40]
mov dword [edx + 0xd4], eax
jmp 0x5c6924
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x40]
call fcn.00464190
jmp 0x5c6924
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], ecx
lea eax, [0x697fc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x8e7a50]
test ecx, ecx
jne 0x5c68e7
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
jmp 0x5c68f7
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.00464190
mov eax, ecx
lea ecx, [0x73088c]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8e7a50]
test ecx, ecx
jne 0x5c6919
mov dword [edx + 0xd4], eax
jmp 0x5c6924
lea edi, [edx + 0xd4]
call fcn.00464190
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x24]
lea esi, [ebp + 4]
mov edi, dword [ebx + 0x1a8]
sub edi, dword [ebx + 0x1b0]
cmp edi, esi
jge 0x5c69b2
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.005c2a90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5c6955
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 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 0x5c69db
mov edi, esi
lea ecx, [edi + eax]
cmp edx, ecx
jb 0x5c7018
cmp eax, ecx
ja 0x5c7013
mov dword [ebx + 0x1b0], ecx
sub edx, eax
neg edx
sar edx, 0x1f
and eax, edx
lea edx, [ebp + eax]
test edi, edi
jle 0x5c6a0c
mov byte [ebx + 0x1b4], 0xff
jbe 0x5c700a
mov dword [esp + 0x20], edi
mov dword [esp + 0x50], edx
movzx eax, byte [ebp + eax]
cmp al, 0xb
ja 0x5c6b62
cmp al, 2
ja 0x5c6a89
test al, al
jne 0x5c6a42
lea ecx, [0x731538]
lea eax, [0x8e7718]
jmp 0x5c6df7
cmp al, 1
jne 0x5c6a68
lea eax, [0x6beea0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x7314c0]
jmp 0x5c6df7
lea eax, [0x6bd3c0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x7315b0]
jmp 0x5c6df7
cmp al, 5
ja 0x5c6af0
cmp al, 4
jne 0x5c6ad6
cmp word [ebx + 0x24], 0x304
jne 0x5c6ab5
lea eax, [0x6b0cc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x731580]
jmp 0x5c6acd
lea eax, [0x69e780]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x731568]
mov edi, dword [esp + 0x20]
jmp 0x5c6df7
cmp al, 5
jne 0x5c6ca1
lea ecx, [0x731508]
lea eax, [0x8e7718]
jmp 0x5c6df7
cmp al, 8
je 0x5c6b41
cmp al, 0xb
jne 0x5c6ca1
cmp word [ebx + 0x24], 0x304
jne 0x5c6b20
lea eax, [0x6a9ca0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x731448]
jmp 0x5c6b38
lea eax, [0x69e4e0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x731430]
mov edi, dword [esp + 0x20]
jmp 0x5c6df7
lea eax, [0x69e600]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x7314f0]
jmp 0x5c6df7
cmp al, 0xf
ja 0x5c6c3e
cmp al, 0xd
ja 0x5c6bf5
cmp al, 0xc
je 0x5c6bd4
cmp word [ebx + 0x24], 0x304
jne 0x5c6ba1
lea eax, [0x6b0c20]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x731478]
mov edx, eax
mov eax, dword [esp + 0x70]
jmp 0x5c6bc9
lea eax, [0x6adee0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 0x70]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
lea ecx, [0x731460]
mov edi, dword [esp + 0x20]
mov eax, edx
jmp 0x5c6df7
lea eax, [0x69e8a0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x7315c8]
jmp 0x5c6df7
cmp al, 0xe
jne 0x5c6c0b
lea ecx, [0x731598]
lea eax, [0x8e7718]
jmp 0x5c6df7
lea eax, [0x6a9d20]
mov dword [esp], eax
call fcn.0040bd00
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 + 0x20]
lea ecx, [0x7314a8]
mov eax, edx
jmp 0x5c6df7
cmp al, 0x14
ja 0x5c6c8f
cmp al, 0x10
je 0x5c6c6e
cmp al, 0x14
jne 0x5c6ca1
lea eax, [0x69e660]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x731520]
jmp 0x5c6df7
lea eax, [0x69e5a0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x7314d8]
jmp 0x5c6df7
cmp al, 0x16
je 0x5c6ddb
cmp al, 0x18
je 0x5c6dbd
mov dword [esp], ebx
mov byte [esp + 4], 0xa
call fcn.005c5840
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
lea edx, [0x69f2c0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409850
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5c6d1c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8e7a50]
test ecx, ecx
jne 0x5c6d0b
mov eax, dword [esp + 0x3c]
mov dword [edx + 0xd4], eax
jmp 0x5c6d8c
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x3c]
call fcn.00464190
jmp 0x5c6d8c
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], ecx
lea eax, [0x697fc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x8e7a50]
test ecx, ecx
jne 0x5c6d4f
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
jmp 0x5c6d5f
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x48]
call fcn.00464190
mov eax, ecx
lea ecx, [0x73088c]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8e7a50]
test ecx, ecx
jne 0x5c6d81
mov dword [edx + 0xd4], eax
jmp 0x5c6d8c
lea edi, [edx + 0xd4]
call fcn.00464190
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x6c
ret
lea eax, [0x69e720]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x731550]
jmp 0x5c6df7
lea eax, [0x69e540]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x731490]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp], 0
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], edi
lea edx, [0x68e040]
mov dword [esp + 0x10], edx
call fcn.0044af60
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 + 0x20]
mov dword [esp + 8], ebx
call fcn.00464b20
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp], edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], esi
call ecx
movzx eax, byte [esp + 0x10]
test al, al
je 0x5c6eea
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5c6eb2
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5c6ebf
mov ecx, dword [eax + 4]
jmp 0x5c6ec1
mov ecx, eax
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x6c
ret
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov byte [esp + 4], 0xa
call fcn.005c5840
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
lea edx, [0x69f2c0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409850
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5c6f69
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8e7a50]
test ecx, ecx
jne 0x5c6f58
mov eax, dword [esp + 0x38]
mov dword [edx + 0xd4], eax
jmp 0x5c6fd9
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x38]
call fcn.00464190
jmp 0x5c6fd9
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], edx
lea eax, [0x697fc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x8e7a50]
test ecx, ecx
jne 0x5c6f9c
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
jmp 0x5c6fac
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x44]
call fcn.00464190
mov eax, ecx
lea ecx, [0x73088c]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8e7a50]
test ecx, ecx
jne 0x5c6fce
mov dword [edx + 0xd4], eax
jmp 0x5c6fd9
lea edi, [edx + 0xd4]
call fcn.00464190
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x6c
ret
xor eax, eax
mov ecx, eax
call fcn.00464210
call fcn.00464270
call fcn.00464250
mov ecx, edi
call fcn.00464270
nop
call fcn.00462d80
jmp fcn.005c6700