Function at 0x501be0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x580280]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x43]
cmp ecx, 1
jne 0x501c97
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x42]
test eax, eax
je 0x501c97
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
movzx eax, byte [edx + 3]
test eax, eax
je 0x501c97
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0x28]
cmp eax, dword [ebp + 0x14]
jne 0x501c55
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx + 0x2c]
cmp edx, dword [ebp + 0x18]
jne 0x501c55
mov eax, dword [ebp + 0x20]
mov dword [eax], 0
xor eax, eax
jmp 0x502218
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x41]
test edx, edx
je 0x501c97
mov eax, dword [ebp + 8]
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx + 0x2c]
cmp edx, dword [ebp + 0x18]
jg 0x501c97
jl 0x501c87
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 0x28]
cmp ecx, dword [ebp + 0x14]
jae 0x501c97
mov edx, dword [ebp + 0x20]
mov dword [edx], 0xffffffff
xor eax, eax
jmp 0x502218
mov eax, dword [ebp + 8]
push eax
call fcn.00501850
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x501cb4
mov eax, dword [ebp - 4]
jmp 0x502218
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x43]
test edx, edx
jne 0x501ccf
mov eax, dword [ebp + 0x20]
mov dword [eax], 0xffffffff
xor eax, eax
jmp 0x502218
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
movzx eax, byte [edx + 3]
test eax, eax
je 0x501cdf
jmp 0x501d1b
cmp dword [ebp + 0x10], 0
jne 0x501d1b
push 0xc8
lea ecx, [ebp - 0xd0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.004f13b0
add esp, 0x14
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x501d1b
mov eax, 7
jmp 0x502218
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe0], 0xffffffff
mov dword [ebp - 0xe4], 0
mov edx, dword [ebp - 0xdc]
movzx eax, word [edx + 0x14]
sub eax, 1
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xdc]
movzx edx, byte [ecx + 3]
test edx, edx
jne 0x501d6e
cmp dword [ebp + 0x10], 0
jne 0x501d6e
mov dword [ebp - 4], 0xb
jmp 0x502203
cmp dword [ebp + 0x1c], 0
je 0x501d82
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
mov dword [eax + 0x1c], ecx
jmp 0x501d99
mov eax, dword [ebp - 0xd8]
add eax, dword [ebp - 0xe4]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xd8]
jg 0x5020ec
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + 0x3e], cx
mov eax, dword [ebp + 8]
mov byte [eax + 0x42], 1
mov ecx, dword [ebp - 0xdc]
movzx edx, byte [ecx + 3]
test edx, edx
je 0x501f02
mov eax, dword [ebp - 0xdc]
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
lea ecx, [ecx + eax*2]
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x44]
movzx ecx, byte [eax + ecx]
shl ecx, 8
mov edx, dword [ebp - 0xdc]
movzx eax, word [edx + 0xe]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x1c]
lea eax, [eax + edx*2]
mov edx, dword [ebp - 0xdc]
mov edx, dword [edx + 0x44]
movzx eax, byte [edx + eax + 1]
or ecx, eax
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x44]
add eax, ecx
mov ecx, dword [ebp - 0xdc]
movzx edx, byte [ecx + 9]
add eax, edx
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xdc]
movzx ecx, byte [eax + 7]
test ecx, ecx
je 0x501e97
mov edx, dword [ebp - 0xf4]
movzx eax, byte [edx]
cmp eax, 0x80
jge 0x501e69
mov ecx, dword [ebp - 0xf4]
movzx edx, byte [ecx]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0x108], 1
jmp 0x501e85
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.004f4b70
add esp, 8
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0xf4]
add edx, dword [ebp - 0x108]
mov dword [ebp - 0xf4], edx
lea eax, [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.004f4780
add esp, 8
mov edx, dword [ebp - 0xf0]
cmp edx, dword [ebp + 0x14]
jne 0x501ecf
mov eax, dword [ebp - 0xec]
cmp eax, dword [ebp + 0x18]
jne 0x501ecf
mov dword [ebp - 0xe0], 0
jmp 0x501efd
mov ecx, dword [ebp - 0xec]
cmp ecx, dword [ebp + 0x18]
jg 0x501ef3
jl 0x501ee7
mov edx, dword [ebp - 0xf0]
cmp edx, dword [ebp + 0x14]
jae 0x501ef3
mov dword [ebp - 0xe0], 0xffffffff
jmp 0x501efd
mov dword [ebp - 0xe0], 1
jmp 0x50200b
push 0
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00501650
add esp, 0xc
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0xf0], eax
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0xec], ecx
mov eax, dword [ebp - 0xfc]
cdq
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edx
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ebp - 0xec]
jl 0x501f88
jg 0x501f63
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0xf0]
jb 0x501f88
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xf0]
push eax
call fcn.004f15f0
add esp, 0xc
mov dword [ebp - 0xe0], eax
jmp 0x50200b
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.004f3640
add esp, 4
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jne 0x501fb2
mov dword [ebp - 4], 7
jmp 0x502203
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xf0]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00501040
add esp, 0x10
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.004f15f0
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xe8]
push edx
call fcn.004f3800
add esp, 4
cmp dword [ebp - 4], 0
je 0x50200b
jmp 0x502203
cmp dword [ebp - 0xe0], 0
jne 0x502082
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xf0]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0xec]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0xdc]
movzx ecx, byte [eax + 6]
test ecx, ecx
je 0x502067
mov edx, dword [ebp - 0xdc]
movzx eax, byte [edx + 4]
test eax, eax
jne 0x502067
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
sub eax, 1
mov dword [ebp - 0xd8], eax
jmp 0x5020ec
cmp dword [ebp + 0x20], 0
je 0x502076
mov ecx, dword [ebp + 0x20]
mov dword [ecx], 0
mov dword [ebp - 4], 0
jmp 0x502203
cmp dword [ebp - 0xe0], 0
jge 0x50209c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
add eax, 1
mov dword [ebp - 0xe4], eax
jmp 0x5020ab
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
sub edx, 1
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xd8]
jle 0x5020d0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xf0]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0xec]
mov dword [ecx + 0x2c], eax
jmp 0x5020ec
mov eax, dword [ebp - 0xe4]
add eax, dword [ebp - 0xd8]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
jmp 0x501dab
mov edx, dword [ebp - 0xdc]
movzx eax, byte [edx + 4]
test eax, eax
je 0x502109
mov dword [ebp - 0xd4], 0
jmp 0x5021a1
mov ecx, dword [ebp - 0xdc]
movzx edx, word [ecx + 0x14]
cmp dword [ebp - 0xe4], edx
jl 0x502143
mov eax, dword [ebp - 0xdc]
movzx ecx, byte [eax + 8]
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x44]
lea ecx, [ecx + eax + 8]
push ecx
call fcn.004f4d50
add esp, 4
mov dword [ebp - 0xd4], eax
jmp 0x5021a1
mov edx, dword [ebp - 0xdc]
movzx eax, word [edx + 0xe]
mov ecx, dword [ebp - 0xe4]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x44]
movzx edx, byte [ecx + edx]
shl edx, 8
mov eax, dword [ebp - 0xdc]
movzx ecx, word [eax + 0xe]
mov eax, dword [ebp - 0xe4]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 0x44]
movzx ecx, byte [eax + ecx + 1]
or edx, ecx
mov eax, dword [ebp - 0xdc]
add edx, dword [eax + 0x44]
push edx
call fcn.004f4d50
add esp, 4
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x5021c4
cmp dword [ebp + 0x20], 0
je 0x5021bb
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0xe0]
mov dword [ecx], edx
mov dword [ebp - 4], 0
jmp 0x502203
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xe4]
mov dword [eax + 0x1c], ecx
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + 0x3e], dx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x42], 0
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005019a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5021fe
jmp 0x502203
jmp 0x501d1b
cmp dword [ebp + 0xc], 0
je 0x502215
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004f1570
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00486c08
mov esp, ebp
pop ebp
ret