Function at 0x4d0f14
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x4d0f27
xor eax, eax
jmp 0x4d10e9
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x10], eax
push 4
push 0x3000
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
shl eax, 2
push eax
push 0
call fcn.00485998
add esp, 0x10
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
jmp 0x4d0f7f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
je 0x4d0fd4
imul eax, dword [ebp - 4], 0x28
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax + 0x24]
and eax, 0x10000000
je 0x4d0f9f
jmp 0x4d0f78
imul eax, dword [ebp - 4], 0x28
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*4]
push eax
push 0x40
imul eax, dword [ebp - 4], 0x28
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call fcn.004859b8
add esp, 0x10
jmp 0x4d0f78
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x4d1074
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 0xc], 0
jmp 0x4d1004
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x30]
je 0x4d1063
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x4d101c
jmp 0x4d0ffd
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x4d1054
jmp 0x4d1061
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
jmp 0x4d0ffd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x4d0fd4
and dword [ebp - 8], 0
jmp 0x4d1081
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
cmp dword [ebp - 8], eax
je 0x4d10d5
imul eax, dword [ebp - 8], 0x28
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax + 0x24]
and eax, 0x10000000
je 0x4d10a1
jmp 0x4d107a
imul eax, dword [ebp - 8], 0x28
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + eax*4]
imul eax, dword [ebp - 8], 0x28
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call fcn.004859b8
add esp, 0x10
jmp 0x4d107a
push 0x8000
push 0
push dword [ebp - 0x1c]
call fcn.004859d8
add esp, 0xc
xor eax, eax
leave
ret