Function at 0x5c5d20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
lea edi, [ebp - 0x130]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 6
je 0x5c5d5a
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005c6360
add esp, 8
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 0x20]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 6]
test ecx, ecx
jne 0x5c5f54
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
sub edx, dword [ecx + 8]
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 0x4b]
shl ecx, 4
cmp edx, ecx
jg 0x5c5dc3
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 0x4b]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005c5b40
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 0x4a]
test ecx, ecx
jne 0x5c5e0d
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 0x49]
shl ecx, 4
add ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
cmp dword [edx + 8], ecx
jbe 0x5c5e0b
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 0x49]
shl ecx, 4
add ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
jmp 0x5c5e42
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
sub ecx, dword [ebp + 0xc]
sar ecx, 4
sub ecx, 1
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005c6130
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x14]
cmp edx, dword [ecx + 0x24]
jne 0x5c5e64
mov eax, dword [ebp + 8]
push eax
call fcn.005c6090
add esp, 4
mov dword [ebp - 0x130], eax
jmp 0x5c5e7f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, 0x18
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 0x4b]
shl ecx, 4
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
jmp 0x5c5eeb
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 8]
jae 0x5c5f02
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], 0
jmp 0x5c5ee2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x36]
and ecx, 1
je 0x5c5f48
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
add ecx, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
push 0xffffffffffffffff
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.005c5bb0
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
sub ecx, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
xor eax, eax
jmp 0x5c606d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
sub edx, dword [ecx + 8]
cmp edx, 0x140
jg 0x5c5f76
push 0x14
mov eax, dword [ebp + 8]
push eax
call fcn.005c5b40
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x14]
cmp edx, dword [ecx + 0x24]
jne 0x5c5f98
mov eax, dword [ebp + 8]
push eax
call fcn.005c6090
add esp, 4
mov dword [ebp - 0x130], eax
jmp 0x5c5fb3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, 0x18
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x5c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 4]
add ecx, 0x10
mov edx, dword [ebp - 0x5c]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 0x140
mov edx, dword [ebp - 0x5c]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x36]
and ecx, 1
je 0x5c601b
push 0xffffffffffffffff
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.005c5bb0
add esp, 0xc
mov esi, esp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
call edx
add esp, 4
cmp esi, esp
call fcn.0074703b
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jge 0x5c604d
mov eax, 2
jmp 0x5c606d
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sub edx, eax
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005c6480
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x130
cmp ebp, esp
call fcn.0074703b
mov esp, ebp
pop ebp
ret