Function at 0x5dfe90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 6
je 0x5dfeb2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005dfa90
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 - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 6]
test eax, eax
jne 0x5e00a3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
sub edx, dword [ecx + 8]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x4b]
shl ecx, 4
cmp edx, ecx
jg 0x5dff1b
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x4b]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005df8c0
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
add eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x4a]
test edx, edx
jne 0x5dff65
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x49]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
cmp dword [eax + 8], edx
jbe 0x5dff63
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x49]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
jmp 0x5dff9a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
sar edx, 4
sub edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005dfc90
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
cmp ecx, dword [eax + 0x24]
jne 0x5dffb9
mov edx, dword [ebp + 8]
push edx
call fcn.005df620
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x5dffd1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
add ecx, 0x18
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x4b]
shl ecx, 4
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x18], edx
jmp 0x5e003a
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 8]
jae 0x5e0051
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], 0
jmp 0x5e0031
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x38]
and edx, 1
je 0x5e0097
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.005df900
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
sub edx, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], edx
xor eax, eax
jmp 0x5e01a9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
sub eax, dword [edx + 8]
cmp eax, 0x140
jg 0x5e00c4
push 0x14
mov ecx, dword [ebp + 8]
push ecx
call fcn.005df8c0
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
cmp ecx, dword [eax + 0x24]
jne 0x5e00e3
mov edx, dword [ebp + 8]
push edx
call fcn.005df620
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x5e00fb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
add ecx, 0x18
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
add ecx, 0x10
mov edx, dword [ebp - 0x24]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
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 - 0x24]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x38]
and eax, 1
je 0x5e0160
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.005df900
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
call ecx
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x5e0189
mov eax, 2
jmp 0x5e01a9
mov edx, dword [ebp - 0x20]
shl edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
sub ecx, edx
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005dfb90
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret