Function at 0x4fb9eb
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x30], eax
push 0xc
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.004faf77
add esp, 0xc
mov eax, 1
test eax, eax
je 0x4fba38
mov ecx, dword [ebp - 5]
and ecx, 0xff
and ecx, 0x20
test ecx, ecx
je 0x4fba38
mov eax, 6
jmp 0x4fbd59
mov edx, dword [ebp - 5]
and edx, 0xff
and edx, 1
test edx, edx
je 0x4fbae7
mov eax, dword [ebp - 0x20]
mov byte [eax + 0xb], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0
mov word [ebp - 0x2c], 1
jmp 0x4fba71
mov dx, word [ebp - 0x2c]
add dx, 1
mov word [ebp - 0x2c], dx
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
cmp eax, 0x64
jge 0x4fbab0
mov cx, word [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004fae3b
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.004fc4d2
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4fbaae
jmp 0x4fbab0
jmp 0x4fba65
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
cmp eax, 0x64
jne 0x4fbac7
mov eax, 7
jmp 0x4fbd59
cmp dword [ebp - 0x1c], 4
je 0x4fbad5
mov eax, dword [ebp - 0x1c]
jmp 0x4fbd59
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp - 5]
mov byte [ecx + 0xb], dl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 5]
and edx, 0xff
and edx, 2
test edx, edx
je 0x4fbb3c
mov word [ebp - 0x14], 0
jmp 0x4fbb0b
mov ax, word [ebp - 0x14]
add ax, 1
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
mov edx, dword [ebp - 0x30]
xor eax, eax
mov ax, word [edx + ecx*2]
test eax, eax
je 0x4fbb23
jmp 0x4fbaff
mov eax, dword [ebp - 0x14]
and eax, 0xffff
add eax, 0x19
cdq
mov ecx, 0xd
idiv ecx
mov word [ebp - 0x14], ax
jmp 0x4fbb42
mov word [ebp - 0x14], 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004fbd8e
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4fbb61
mov eax, dword [ebp - 0x1c]
jmp 0x4fbd59
mov word [ebp - 0x24], 0
mov ax, word [ebp - 0x24]
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004fb3ee
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4fbb92
jmp 0x4fbc18
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov cl, byte [eax]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
and edx, 0xff
cmp edx, 0xe5
je 0x4fbbba
mov eax, dword [ebp - 0x18]
and eax, 0xff
test eax, eax
jne 0x4fbbf7
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
test ecx, ecx
jne 0x4fbbd2
mov edx, dword [ebp + 8]
mov ax, word [edx + 6]
mov word [ebp - 0x24], ax
mov cx, word [ebp - 0x2c]
add cx, 1
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 0x2c]
and edx, 0xffff
mov eax, dword [ebp - 0x14]
and eax, 0xffff
cmp edx, eax
jne 0x4fbbf5
jmp 0x4fbc18
jmp 0x4fbbfd
mov word [ebp - 0x2c], 0
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fbf9a
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4fbb6f
cmp dword [ebp - 0x1c], 0
jne 0x4fbce7
mov edx, dword [ebp - 0x14]
and edx, 0xffff
cmp edx, 1
jle 0x4fbce7
mov ax, word [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fbd8e
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4fbce7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call fcn.004fc47e
add esp, 4
mov byte [ebp - 4], al
mov cx, word [ebp - 0x14]
sub cx, 1
mov word [ebp - 0x14], cx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.004fb3ee
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4fbc90
jmp 0x4fbce7
mov al, byte [ebp - 4]
push eax
mov cl, byte [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004fc3a1
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov byte [ecx + 4], 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004fbf9a
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4fbce7
mov ax, word [ebp - 0x14]
sub ax, 1
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
test ecx, ecx
jne 0x4fbc70
cmp dword [ebp - 0x1c], 0
jne 0x4fbd56
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.004fb3ee
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4fbd56
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x28], ecx
push 0x20
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.004fbd5d
add esp, 0xc
push 0xb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004faf77
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
xor edx, edx
mov dl, byte [ecx + 0xb]
and edx, 0x18
mov eax, dword [ebp - 0x28]
mov byte [eax + 0xc], dl
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov byte [edx + 4], 1
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret