Function at 0x4d87a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 0xc], 0
jne 0x4d87cb
xor eax, eax
jmp 0x4d8967
push 0x50
mov eax, dword [ebp + 8]
push eax
call fcn.00486770
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4d87e9
xor eax, eax
jmp 0x4d8967
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d8620
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d8980
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d80c0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d8620
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d80c0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d8620
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 4]
mov byte [eax + 4], dl
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d87a0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x1c], edx
cmp dword [ebp - 0x14], 0
je 0x4d88d3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d80c0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d80c0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 6]
and ecx, 0xfffffff7
mov edx, dword [ebp - 8]
mov word [edx + 6], cx
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x38], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 0x3c], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 0x40], 0xffffffff
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.00504bf9
mov esp, ebp
pop ebp
ret