Function at 0x4d7994
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d7f32
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
call fcn.004cdc24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, pe_nt_image_headers32
call fcn.00402f14
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, 0xc0
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x4d7f10
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x50], 0x1e
jne 0x4d7a4d
mov eax, dword [ebp - 4]
test byte [eax + 0x328], 1
jne 0x4d7a2d
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004ced14
test al, al
jne 0x4d7a2d
call fcn.0040429c
jmp 0x4d7f17
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 6]
inc ecx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004cea14
test al, al
jne 0x4d7a4d
call fcn.0040429c
jmp 0x4d7f17
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004cd0d0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 6]
inc eax
mov edx, dword [ebp - 0x18]
movsx edx, word [edx + 4]
inc edx
sub edx, eax
jl 0x4d7ee0
inc edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add eax, 0x58
push eax
push 0
push 0
push 0x2e
push 0
mov edx, dword [esi]
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [ebx + 0x4b4]
call dword [ebx + 0x4b0]
mov eax, dword [ebp - 4]
test word [eax + 0x60], 0x40
seta al
mov edx, dword [ebp - 4]
mov byte [edx + 0x9dc], al
test al, al
je 0x4d7ca1
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004cd0d0
mov eax, dword [ebp - 4]
add eax, 0x8c
push eax
push 0
push 0
push 0x2e
push 0
mov edx, dword [esi]
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [ebx + 0x4b4]
call dword [ebx + 0x4b0]
mov eax, dword [ebp - 4]
lea ebx, [eax + 0x8c]
jmp 0x4d7c90
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
test al, al
jne 0x4d7e9e
movzx eax, word [ebx + 0x1c]
push eax
mov edx, dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004ce304
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0040b424
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dl, byte [edx + 0x418]
call fcn.004d0df8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add eax, 0x9cc
call fcn.004048e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9cc], 0
je 0x4d7c41
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x9cc]
mov eax, dword [ebp - 4]
call fcn.004cf3a4
test al, al
je 0x4d7c41
mov eax, dword [ebp - 4]
add eax, 0x9b8
mov byte [eax + 6], 1
mov dx, word [ebx + 0x22]
inc edx
mov word [eax + 4], dx
mov edx, dword [ebx + 0x2a]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0x26]
mov dword [eax], edx
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x50], 0x1e
je 0x4d7be3
mov edx, dword [ebx + 0x2a]
mov eax, dword [esi]
xor ecx, ecx
call fcn.004cd0d0
push ebx
push 0
push 0
push 4
push 0
mov edx, dword [esi]
mov edi, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [edi + 0x4b4]
call dword [edi + 0x4b0]
cmp dword [ebx], 0x4034b50
setne byte [ebp - 5]
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004cd0d0
cmp byte [ebp - 5], 0
jne 0x4d7c41
mov eax, dword [ebp - 4]
lea edx, [eax + 0x9b8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9b4]
call fcn.004ce070
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x408]
jle 0x4d7c17
mov edx, dword [ebp - 4]
mov dword [edx + 0x408], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x488], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp - 4]
add dword [edx + 0x48c], eax
test word [ebx + 8], 1
jbe 0x4d7c41
mov eax, dword [ebp - 4]
sub dword [eax + 0x488], 0xc
movzx eax, word [ebx + 0x1c]
add eax, 0x2e
movzx edx, word [ebx + 0x20]
add eax, edx
movzx edx, word [ebx + 0x1e]
add eax, edx
add dword [ebp - 0x10], eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004cd0d0
mov eax, dword [ebp - 4]
add eax, 0x8c
push eax
push 0
push 0
push 0x2e
push 0
mov edx, dword [esi]
mov edi, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [edi + 0x4b4]
call dword [edi + 0x4b0]
cmp eax, 0x2e
je 0x4d7c90
xor eax, eax
mov dword [ebx], eax
cmp dword [ebx], 0x2014b50
je 0x4d7afe
jmp 0x4d7e9e
mov eax, dword [ebp - 4]
lea ebx, [eax + 0x58]
jmp 0x4d7e92
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
test al, al
jne 0x4d7e9e
movzx eax, word [ebx + 0x1c]
push eax
mov edx, dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004ce304
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040b424
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 4]
mov dl, byte [edx + 0x418]
call fcn.004d0df8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 0x9cc
call fcn.004048e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9cc], 0
je 0x4d7e39
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x9cc]
mov eax, dword [ebp - 4]
call fcn.004cf3a4
test al, al
je 0x4d7e39
mov eax, dword [ebp - 4]
add eax, 0x9b8
mov byte [eax + 6], 0
mov dx, word [ebx + 0x22]
inc edx
mov word [eax + 4], dx
mov edx, dword [ebx + 0x2a]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0x26]
mov dword [eax], edx
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x50], 0x1e
je 0x4d7ddb
mov edx, dword [ebx + 0x2a]
mov eax, dword [esi]
xor ecx, ecx
call fcn.004cd0d0
mov eax, dword [ebp - 4]
add eax, 0xdc
push eax
push 0
push 0
push 0x1e
push 0
mov edx, dword [esi]
mov edi, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [edi + 0x4b4]
call dword [edi + 0x4b0]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xdc], 0x4034b50
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x4d7dcf
mov eax, dword [ebp - 4]
cmp dword [eax + 0xee], 0
jne 0x4d7dc4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0
jbe 0x4d7dc4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x9d8], eax
jmp 0x4d7dcf
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x9d8], edx
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004cd0d0
cmp byte [ebp - 5], 0
jne 0x4d7e39
mov eax, dword [ebp - 4]
lea edx, [eax + 0x9b8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9b4]
call fcn.004ce070
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x408]
jle 0x4d7e0f
mov edx, dword [ebp - 4]
mov dword [edx + 0x408], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x488], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp - 4]
add dword [edx + 0x48c], eax
test word [ebx + 8], 1
jbe 0x4d7e39
mov eax, dword [ebp - 4]
sub dword [eax + 0x488], 0xc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
test al, al
jne 0x4d7e9e
movzx eax, word [ebx + 0x1c]
add eax, 0x2e
movzx edx, word [ebx + 0x20]
add eax, edx
movzx edx, word [ebx + 0x1e]
add eax, edx
add dword [ebp - 0x10], eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004cd0d0
mov eax, dword [ebp - 4]
add eax, 0x58
push eax
push 0
push 0
push 0x2e
push 0
mov edx, dword [esi]
mov edi, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [edi + 0x4b4]
call dword [edi + 0x4b0]
cmp eax, 0x2e
je 0x4d7e92
xor eax, eax
mov dword [ebx], eax
cmp dword [ebx], 0x2014b50
je 0x4d7cac
mov eax, dword [ebp - 4]
cmp byte [eax + 0x50], 0x1e
jne 0x4d7ed4
mov eax, dword [ebp - 0x14]
dec eax
mov edx, dword [ebp - 0x18]
movsx edx, word [edx + 4]
cmp eax, edx
jge 0x4d7ed4
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 6]
add ecx, dword [ebp - 0x14]
inc ecx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004cea14
test al, al
je 0x4d7ee0
xor eax, eax
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x4d7a81
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7f17
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9b4]
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 0xc]
call fcn.00402f2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
call fcn.004cdc38
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7f39
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.004048b8
ret