Function at 0x5c5830
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
sub esp, 0x44
cmp eax, 0x6bec20
jne 0x5c584b
mov dword [0x69d928], 1
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
push ebx
mov ebx, dword [eax]
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ebx
jne 0x5c587a
cmp eax, 0x6bec20
jne 0x5c5e52
mov dword [0x69d928], edi
pop edi
pop ebx
add esp, 0x44
ret
push ebp
movsx ebp, word [ebx]
lea eax, [edx + 2]
add ecx, 0xfffffff0
push esi
mov dword [esp + 0x24], 0x7fff
mov dword [esp + 0x20], 0xffff8000
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
lea ecx, [ecx]
test edi, edi
je 0x5c58e0
mov eax, dword [edi]
test eax, eax
je 0x5c58e0
cmp dword [eax], 0
je 0x5c58c8
mov eax, edi
call fcn.005c5450
jmp 0x5c58da
mov cx, word [edi + 6]
cmp cx, word [eax + 6]
jle 0x5c58e0
mov dword [eax], edi
mov dword [edi], 0
mov edi, eax
mov dword [esp + 0x1c], edi
test ebx, ebx
je 0x5c593e
movsx edx, word [ebx]
cmp edx, ebp
jne 0x5c593e
mov ecx, dword [ebx + 4]
cmp dword [ecx], 0
jne 0x5c592a
test edi, edi
jne 0x5c58fb
mov edi, ecx
jmp 0x5c5933
mov eax, dword [edi]
test eax, eax
je 0x5c592a
cmp dword [eax], 0
jne 0x5c592a
movsx edx, word [ecx + 6]
movsx esi, word [edi + 6]
cmp edx, esi
jg 0x5c5918
mov dword [ecx], edi
mov edi, ecx
jmp 0x5c5933
movsx esi, word [eax + 6]
cmp edx, esi
jl 0x5c5924
mov dword [eax], ecx
jmp 0x5c5937
mov dword [edi], ecx
mov dword [ecx], eax
jmp 0x5c5937
mov edx, edi
call fcn.005c54a0
mov edi, eax
mov dword [esp + 0x1c], edi
mov ebx, dword [ebx + 8]
mov dword [esp + 0x44], ebx
test edi, edi
jne 0x5c594a
test ebx, ebx
je 0x5c5e0b
movsx eax, word [esp + 0x70]
cmp ebp, eax
jg 0x5c5e0b
mov edx, dword [esp + 0x6c]
movsx esi, dx
cmp ebp, esi
jge 0x5c59a4
test ebx, ebx
je 0x5c598c
cmp word [ebx], dx
jg 0x5c5988
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
test eax, eax
je 0x5c597c
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x5c5974
mov dword [ecx], edi
mov edi, dword [ebx + 4]
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x5c5966
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x6c]
push ecx
push ebp
push edi
call fcn.005c5500
add esp, 0xc
mov edi, eax
mov ebp, esi
jmp 0x5c58a1
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
je 0x5c5a6a
mov eax, dword [edi]
cmp eax, ecx
je 0x5c59d0
cmp dword [eax], ecx
mov dword [esp + 0x48], 1
je 0x5c59d4
mov dword [esp + 0x48], ecx
xor eax, eax
mov ax, word [edi + 6]
cmp ax, word [esp + 0x24]
jge 0x5c59e5
mov dword [esp + 0x24], eax
movsx ebp, word [edi + 6]
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x34], ebp
jne 0x5c5a04
lea edx, [ebp + 1]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], edx
mov eax, ebp
cmp eax, ebp
jg 0x5c5b8e
mov edi, edi
mov ebx, dword [edi + 0x1c]
test bl, 4
jne 0x5c5a25
movsx ecx, word [esp + 0x40]
cmp eax, ecx
jge 0x5c5a25
mov dword [esp + 0x40], eax
mov dx, word [edi + 8]
movsx ecx, dx
cmp ecx, ebp
jle 0x5c5a36
mov ebp, ecx
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x5c5aa0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x5c5a7b
movsx eax, word [edi + 4]
mov esi, dword [esp + 0x18]
cmp eax, esi
jne 0x5c5a56
test bl, 0x10
je 0x5c5a63
movsx eax, word [edi + 0xc]
cmp eax, esi
jne 0x5c5a74
test bl, 8
jne 0x5c5a74
mov eax, 1
jmp 0x5c5a8d
movsx ebp, word [esp + 0x20]
jmp 0x5c5d81
mov eax, 2
jmp 0x5c5a8d
xor eax, eax
test bl, 0x10
je 0x5c5a87
mov eax, 1
test bl, 8
je 0x5c5a8d
inc eax
test bl, 2
mov esi, dword [esp + 0x28]
je 0x5c5a9a
add esi, eax
jmp 0x5c5a9c
sub esi, eax
mov dword [esp + 0x28], esi
mov esi, dword [edi + 0x10]
test esi, esi
je 0x5c5b6e
movsx eax, word [edi + 0xc]
mov ebp, dword [esp + 0x18]
cmp eax, ebp
je 0x5c5beb
dec eax
cmp eax, ebp
jne 0x5c5b02
test bl, 1
je 0x5c5ae2
mov eax, dword [edi + 0x18]
test eax, eax
mov word [edi + 6], dx
jne 0x5c5ad5
inc edx
mov word [edi + 6], dx
mov cx, word [edi + 0xa]
mov word [edi + 8], cx
jmp 0x5c5b6a
mov ecx, dword [edi + 0x18]
xor eax, eax
test ecx, ecx
mov ax, word [edi + 6]
mov word [edi + 8], ax
jne 0x5c5af8
dec eax
mov word [edi + 8], ax
mov dx, word [edi + 0xa]
mov word [edi + 6], dx
jmp 0x5c5b6a
test bl, 1
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
je 0x5c5b39
test eax, eax
mov word [edi + 6], cx
jne 0x5c5b1c
lea ebx, [ecx + 1]
mov word [edi + 6], bx
add eax, esi
test eax, eax
jle 0x5c5b29
sub eax, edx
inc ecx
test eax, eax
jg 0x5c5b22
movsx edx, word [edi + 0xa]
cmp ecx, edx
jle 0x5c5b33
mov ecx, edx
mov word [edi + 8], cx
jmp 0x5c5b67
test eax, eax
movsx ecx, word [edi + 6]
mov word [edi + 8], cx
jne 0x5c5b4c
lea ebx, [ecx - 1]
mov word [edi + 8], bx
sub eax, esi
test eax, eax
jle 0x5c5b59
sub eax, edx
dec ecx
test eax, eax
jg 0x5c5b52
movsx edx, word [edi + 0xa]
cmp ecx, edx
jge 0x5c5b63
mov ecx, edx
mov word [edi + 6], cx
mov dword [edi + 0x18], eax
mov ebp, dword [esp + 0x34]
movsx eax, word [edi + 0xc]
cmp eax, dword [esp + 0x18]
je 0x5c5bef
mov dword [esp + 0x4c], edi
mov edi, dword [edi]
test edi, edi
je 0x5c5b8e
movsx eax, word [edi + 6]
cmp eax, ebp
jle 0x5c5a10
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5c5c0b
test edi, edi
jne 0x5c59e5
mov ecx, dword [esp + 0x40]
movsx eax, cx
cmp eax, ebp
jle 0x5c5bab
mov ebp, eax
mov edx, dword [esp + 0x64]
cmp cx, dx
mov esi, dword [esp + 0x68]
jl 0x5c5d4b
movsx eax, si
cmp ebp, eax
jg 0x5c5d4b
mov eax, dword [esp + 0x10]
mov word [eax], cx
add eax, 2
lea ecx, [ebp + 1]
mov word [eax], cx
add eax, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
jmp 0x5c5d81
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x5c5c02
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
jmp 0x5c5b7c
mov ecx, dword [edi]
mov dword [eax], ecx
jmp 0x5c5b7c
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5c5d41
mov eax, dword [esp + 0x58]
test eax, eax
mov eax, dword [esp + 0x28]
je 0x5c5c26
and eax, 3
test eax, eax
jne 0x5c5d41
movsx ebx, word [esp + 0x40]
cmp ebx, ebp
mov dword [esp + 0x3c], eax
jle 0x5c5c3d
mov ebp, ebx
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x50]
jb 0x5c5cba
movsx ecx, word [esp + 0x20]
cmp ebp, ecx
mov dx, word [esp + 0x14]
mov eax, dword [esp + 0x30]
mov word [eax], dx
jle 0x5c5c62
mov ecx, ebp
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x38]
call fcn.005c5610
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, esi
add esp, 0x14
mov dword [esp + 0x30], eax
add eax, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffff8000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov ecx, eax
movsx edx, word [ecx - 2]
cmp ebx, edx
jg 0x5c5ce3
cmp word [esp + 0x14], 0
jle 0x5c5ce3
movsx eax, word [esp + 0x68]
cmp ebp, eax
jle 0x5c5cda
inc eax
mov word [ecx - 2], ax
jmp 0x5c5d41
lea eax, [ebp + 1]
mov word [ecx - 2], ax
jmp 0x5c5d41
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
movsx eax, dx
cmp ebx, eax
jl 0x5c5d0f
movsx eax, si
cmp ebp, eax
jg 0x5c5d0f
mov eax, dword [esp + 0x14]
mov word [ecx], bx
add ecx, 2
lea edx, [ebp + 1]
mov word [ecx], dx
add ecx, 2
inc eax
jmp 0x5c5d39
cmp bp, dx
mov eax, ebp
jl 0x5c5d41
cmp bx, si
jg 0x5c5d41
cmp bx, dx
jge 0x5c5d22
mov ebx, edx
cmp bp, si
jle 0x5c5d29
mov eax, esi
inc eax
mov word [ecx], bx
mov word [ecx + 2], ax
mov eax, dword [esp + 0x14]
inc eax
add ecx, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
test edi, edi
jne 0x5c59e5
jmp 0x5c5d81
cmp bp, dx
mov eax, ebp
jl 0x5c5d81
cmp cx, si
jg 0x5c5d81
cmp cx, dx
jge 0x5c5d5e
mov ecx, edx
cmp bp, si
jle 0x5c5d65
mov eax, esi
mov edx, dword [esp + 0x10]
inc eax
mov word [edx], cx
mov word [edx + 2], ax
mov eax, dword [esp + 0x14]
inc eax
add edx, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x20]
movsx edx, cx
cmp ebp, edx
jle 0x5c5d92
mov ecx, ebp
mov dword [esp + 0x20], ecx
mov ax, word [esp + 0x14]
mov edx, dword [esp + 0x30]
mov word [edx], ax
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x50]
jb 0x5c5de8
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x34]
push edi
push edx
mov edx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x38]
call fcn.005c5610
add esp, 0x14
inc edi
mov dword [esp + 0x24], 0x7fff
mov dword [esp + 0x20], 0xffff8000
mov dword [esp + 0x2c], edi
mov eax, esi
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
inc edx
mov dword [esp + 0x30], eax
add eax, 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov ebp, edx
jmp 0x5c58b0
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x30], eax
jbe 0x5c5e43
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x2c]
dec ebp
push ebp
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.005c5610
add esp, 0x14
mov edx, dword [esp + 0x5c]
push edx
call fcn.005c57e0
add esp, 4
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x44
ret