Function at 0x4e6c10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c
mov eax, dword [edx + 8]
push ebx
mov ebx, dword [edx]
push ebp
mov ebp, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [edx + 0xc]
xor eax, eax
mov al, byte [ebx + 5]
push esi
mov dword [esp + 0x10], ecx
mov esi, eax
mov ecx, eax
and eax, 4
xor edx, edx
mov dword [esp + 0x2c], eax
mov dl, byte [ebx + 4]
xor eax, eax
mov al, byte [ebx + 0xd]
and ecx, 2
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
cdq
push edi
mov ecx, 8
mov dword [esp + 0x10], 0
and esi, 1
call fcn.00503020
mov edi, eax
xor eax, eax
mov al, byte [ebx + 0xc]
mov dword [esp + 0x24], edi
mov edi, edx
mov ecx, 8
cdq
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x24]
or eax, edi
mov edi, dword [esp + 0x18]
or edi, edx
mov edx, edi
call fcn.00503020
mov edi, eax
xor eax, eax
mov al, byte [ebx + 0xb]
mov dword [esp + 0x24], edi
mov edi, edx
mov ecx, 8
cdq
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x24]
or eax, edi
mov edi, dword [esp + 0x18]
or edi, edx
mov edx, edi
call fcn.00503020
mov edi, eax
xor eax, eax
mov al, byte [ebx + 0xa]
mov dword [esp + 0x24], edi
mov edi, edx
mov ecx, 8
cdq
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x24]
or eax, edi
mov edi, dword [esp + 0x18]
or edi, edx
mov edx, edi
call fcn.00503020
mov edi, eax
xor eax, eax
mov al, byte [ebx + 9]
mov dword [esp + 0x24], edi
mov edi, edx
cdq
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x24]
or eax, edi
mov edi, dword [esp + 0x18]
or edi, edx
mov ecx, 8
mov edx, edi
call fcn.00503020
mov edi, eax
xor eax, eax
mov al, byte [ebx + 8]
mov dword [esp + 0x24], edi
mov edi, edx
mov ecx, 8
cdq
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x24]
or eax, edi
mov edi, dword [esp + 0x18]
or edi, edx
mov edx, edi
call fcn.00503020
mov edi, eax
xor eax, eax
mov al, byte [ebx + 7]
mov dword [esp + 0x24], edi
mov edi, edx
mov ecx, 8
cdq
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x24]
or eax, edi
mov edi, dword [esp + 0x18]
or edi, edx
mov edx, edi
call fcn.00503020
mov ecx, eax
xor eax, eax
mov al, byte [ebx + 6]
mov edi, edx
cdq
or ecx, eax
xor eax, eax
mov ah, byte [ebx + 0x11]
mov dword [esp + 0x34], ecx
mov al, byte [ebx + 0x10]
xor ecx, ecx
mov cl, byte [ebx + 0xf]
or edi, edx
shl eax, 8
or eax, ecx
xor edx, edx
mov dl, byte [ebx + 0xe]
xor ecx, ecx
shl eax, 8
or eax, edx
mov cl, byte [ebx + 0x13]
mov dword [esp + 0x28], eax
xor eax, eax
mov ah, byte [ebx + 0x15]
xor edx, edx
mov al, byte [ebx + 0x14]
mov dl, byte [ebx + 0x12]
shl eax, 8
or eax, ecx
mov dword [esp + 0x38], edi
shl eax, 8
or eax, edx
mov edi, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
xor eax, eax
mov al, byte [ebx + 0x1a]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4e6ded
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [ebp + 8], ecx
mov edx, ecx
je 0x4e6de6
mov ecx, dword [ebp]
push edx
lea edx, [ecx + eax]
push edx
push ecx
call fcn.00500650
add esp, 0xc
mov dword [ebp + 0xc], 0
test edi, edi
je 0x4e6e4b
mov ecx, dword [ebp + 0x1c]
mov eax, ecx
sub eax, edi
je 0x4e6e34
mov eax, dword [ebp + 0x10]
mov edx, edi
shl edx, 0x1e
sub edx, edi
add edx, ecx
lea ecx, [eax + edi*4]
shl edx, 2
push edx
push ecx
push eax
call fcn.00500650
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov edx, edi
shl edx, 0x1d
sub edx, edi
add edx, ecx
lea ecx, [eax + edi*8]
shl edx, 3
push edx
push ecx
push eax
call fcn.00500650
add esp, 0x18
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
sub ecx, edi
sub eax, edi
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], 0
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x150]
cmp edx, eax
je 0x4e6e64
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4e6e77
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
inc eax
add edx, eax
cmp ecx, edx
jg 0x4e6eb5
lea eax, [ecx + eax + 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x18], eax
shl eax, 2
push eax
push ecx
call fcn.0050282e
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
shl edx, 3
push edx
push eax
call fcn.0050282e
add esp, 0x10
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0x154]
cmp ecx, eax
je 0x4e6f5b
mov edi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
cmp edi, ecx
jge 0x4e6eea
mov edx, dword [ebp + 0x10]
sub ecx, edi
lea eax, [edx + edi*4]
mov edx, dword [eax]
add eax, 4
and edx, 0xff
sub dword [ebp + 8], edx
dec ecx
jne 0x4e6ed9
mov eax, dword [ebp + 0x154]
mov dword [ebp + 0x1c], edi
cmp eax, 0xffffffff
je 0x4e6f10
mov eax, dword [ebp + 0x10]
mov dword [eax + edi*4], 0x400
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
inc ecx
inc eax
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x20], eax
test esi, esi
je 0x4e6f5b
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], 0
test esi, esi
jle 0x4e6f5b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
xor eax, eax
mov al, byte [ebx + ecx + 0x1b]
add edx, eax
sub edi, eax
cmp eax, 0xff
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
jl 0x4e6f54
inc ecx
cmp ecx, esi
mov dword [esp + 0x10], ecx
jl 0x4e6f24
jmp 0x4e6f5f
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x4e6f5f
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4e6fbb
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ecx, esi
add ecx, edi
cmp eax, ecx
jg 0x4e6f8f
mov edx, dword [ebp]
lea eax, [eax + esi + 0x400]
push eax
push edx
mov dword [ebp + 4], eax
call fcn.0050282e
add esp, 8
mov dword [ebp], eax
mov edi, dword [ebp]
mov eax, dword [ebp + 8]
mov ecx, esi
mov esi, dword [esp + 0x1c]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x18]
or edi, 0xffffffff
cmp ecx, eax
jge 0x4e7043
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ebx + ecx + 0x1b]
mov dword [esi + edx*4], eax
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x14]
mov dword [esi + edx*8], 0xffffffff
mov dword [esi + edx*8 + 4], 0xffffffff
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4e700a
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x20], 0
lea esi, [esi + edx*4]
mov edx, dword [esi]
or dh, 1
mov dword [esi], edx
cmp eax, 0xff
jge 0x4e7014
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x1c]
inc esi
inc ecx
cmp eax, 0xff
mov dword [ebp + 0x1c], esi
jge 0x4e7026
mov dword [ebp + 0x20], esi
cmp ecx, dword [esp + 0x18]
jl 0x4e6fc6
cmp edi, 0xffffffff
je 0x4e7043
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [eax + edi*8], ecx
mov dword [eax + edi*8 + 4], edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4e706a
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x148], 1
test eax, eax
jle 0x4e706a
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + eax*4 - 4]
mov ecx, dword [eax]
or ch, 2
mov dword [eax], ecx
mov edx, dword [esp + 0x24]
pop edi
inc edx
pop esi
mov dword [ebp + 0x154], edx
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret