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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5c2945
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 0x5c20a0
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.005be3b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5c2039
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 0x5c293d
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 0x5c227d
mov dword [esp], ebx
mov byte [esp + 4], 0x50
call fcn.005c0f90
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.00409560
mov eax, dword [esp + 4]
lea ecx, [0x698320]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
lea eax, [0x739e74]
mov dword [esp + 0x68], eax
lea eax, [0x6e7555]
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.005242a0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea edx, [0x6a9800]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409880
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5c21d4
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5c21c3
mov eax, dword [esp + 0x40]
mov dword [edx + 0xd4], eax
jmp 0x5c2244
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x40]
call fcn.004642e0
jmp 0x5c2244
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], ecx
lea eax, [0x6a2aa0]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5c2207
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
jmp 0x5c2217
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.004642e0
mov eax, ecx
lea ecx, [0x73bd64]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5c2239
mov dword [edx + 0xd4], eax
jmp 0x5c2244
lea edi, [edx + 0xd4]
call fcn.004642e0
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 0x5c22d2
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.005be3b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5c2275
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 0x5c22fb
mov edi, esi
lea ecx, [edi + eax]
cmp edx, ecx
jb 0x5c2938
cmp eax, ecx
ja 0x5c2933
mov dword [ebx + 0x1b0], ecx
sub edx, eax
neg edx
sar edx, 0x1f
and eax, edx
lea edx, [ebp + eax]
test edi, edi
jle 0x5c232c
mov byte [ebx + 0x1b4], 0xff
jbe 0x5c292a
mov dword [esp + 0x20], edi
mov dword [esp + 0x50], edx
movzx eax, byte [ebp + eax]
cmp al, 0xb
ja 0x5c2482
cmp al, 2
ja 0x5c23a9
test al, al
jne 0x5c2362
lea ecx, [0x73c8d8]
lea eax, [0x8f4fa0]
jmp 0x5c2717
cmp al, 1
jne 0x5c2388
lea eax, [0x6c8e80]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x73c860]
jmp 0x5c2717
lea eax, [0x6c7900]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x73c950]
jmp 0x5c2717
cmp al, 5
ja 0x5c2410
cmp al, 4
jne 0x5c23f6
cmp word [ebx + 0x24], 0x304
jne 0x5c23d5
lea eax, [0x6bb880]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
lea ecx, [0x73c920]
jmp 0x5c23ed
lea eax, [0x6a8cc0]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
lea ecx, [0x73c908]
mov edi, dword [esp + 0x20]
jmp 0x5c2717
cmp al, 5
jne 0x5c25c1
lea ecx, [0x73c8a8]
lea eax, [0x8f4fa0]
jmp 0x5c2717
cmp al, 8
je 0x5c2461
cmp al, 0xb
jne 0x5c25c1
cmp word [ebx + 0x24], 0x304
jne 0x5c2440
lea eax, [0x6b47a0]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
lea ecx, [0x73c7e8]
jmp 0x5c2458
lea eax, [0x6a8a20]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
lea ecx, [0x73c7d0]
mov edi, dword [esp + 0x20]
jmp 0x5c2717
lea eax, [0x6a8b40]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x73c890]
jmp 0x5c2717
cmp al, 0xf
ja 0x5c255e
cmp al, 0xd
ja 0x5c2515
cmp al, 0xc
je 0x5c24f4
cmp word [ebx + 0x24], 0x304
jne 0x5c24c1
lea eax, [0x6bb7e0]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
lea ecx, [0x73c818]
mov edx, eax
mov eax, dword [esp + 0x70]
jmp 0x5c24e9
lea eax, [0x6b8a60]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 0x70]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
lea ecx, [0x73c800]
mov edi, dword [esp + 0x20]
mov eax, edx
jmp 0x5c2717
lea eax, [0x6a8de0]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x73c968]
jmp 0x5c2717
cmp al, 0xe
jne 0x5c252b
lea ecx, [0x73c938]
lea eax, [0x8f4fa0]
jmp 0x5c2717
lea eax, [0x6b4820]
mov dword [esp], eax
call fcn.0040bd30
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, [0x73c848]
mov eax, edx
jmp 0x5c2717
cmp al, 0x14
ja 0x5c25af
cmp al, 0x10
je 0x5c258e
cmp al, 0x14
jne 0x5c25c1
lea eax, [0x6a8ba0]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x73c8c0]
jmp 0x5c2717
lea eax, [0x6a8ae0]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x73c878]
jmp 0x5c2717
cmp al, 0x16
je 0x5c26fb
cmp al, 0x18
je 0x5c26dd
mov dword [esp], ebx
mov byte [esp + 4], 0xa
call fcn.005c1160
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
lea edx, [0x6a9800]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409880
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5c263c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5c262b
mov eax, dword [esp + 0x3c]
mov dword [edx + 0xd4], eax
jmp 0x5c26ac
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x3c]
call fcn.004642e0
jmp 0x5c26ac
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], ecx
lea eax, [0x6a2aa0]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5c266f
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
jmp 0x5c267f
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x48]
call fcn.004642e0
mov eax, ecx
lea ecx, [0x73bd64]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5c26a1
mov dword [edx + 0xd4], eax
jmp 0x5c26ac
lea edi, [edx + 0xd4]
call fcn.004642e0
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, [0x6a8c60]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x73c8f0]
jmp 0x5c2717
lea eax, [0x6a8a80]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x73c830]
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, [0x698da0]
mov dword [esp + 0x10], edx
call fcn.0044b130
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.00464c70
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 0x5c280a
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5c27d2
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 0x5c27df
mov ecx, dword [eax + 4]
jmp 0x5c27e1
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.005c1160
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
lea edx, [0x6a9800]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409880
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5c2889
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5c2878
mov eax, dword [esp + 0x38]
mov dword [edx + 0xd4], eax
jmp 0x5c28f9
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x38]
call fcn.004642e0
jmp 0x5c28f9
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], edx
lea eax, [0x6a2aa0]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5c28bc
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
jmp 0x5c28cc
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x44]
call fcn.004642e0
mov eax, ecx
lea ecx, [0x73bd64]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x5c28ee
mov dword [edx + 0xd4], eax
jmp 0x5c28f9
lea edi, [edx + 0xd4]
call fcn.004642e0
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.00464360
call fcn.004643c0
call fcn.004643a0
mov ecx, edi
call fcn.004643c0
nop
call fcn.00462ed0
jmp fcn.005c2020