Function at 0x4878a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ecx, dword [eax]
push 0x1c
push 0x5b20d0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je case.0x487a83.1
mov eax, dword [0x5b20d4]
mov esi, eax
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], esi
jne case.0x487a83.1
mov ecx, dword [eax + 0x3c]
xor edi, edi
add ecx, eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x14], ecx
mov ax, word [ecx + 0x14]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 4], eax
cmp word [ecx + 6], di
jbe 0x48796d
test edi, edi
jne 0x487920
mov ecx, 7
mov edi, str..trace
mov esi, eax
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x487920
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 1
jmp 0x487944
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x487944
mov ecx, 3
mov edi, str..text
mov esi, eax
xor ebx, ebx
repe cmpsw word [esi], word es:[edi]
jne 0x487944
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
add eax, 0x28
xor ecx, ecx
mov dword [ebp - 4], eax
mov cx, word [esi + 6]
inc edx
cmp edx, ecx
jb 0x4878fe
test edi, edi
je 0x48796a
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], edx
jmp 0x487981
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
call fcn.00487d90
add esp, 4
test eax, eax
je case.0x487a83.1
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.00487d40
add esp, 8
cmp eax, 1
jne 0x4879b1
mov edx, dword [ebp + 8]
mov edi, str.Unknown
or ecx, 0xffffffff
mov esi, str.Unknown
mov dword [edx], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x487ca7
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
cmp ebx, 0x10
jb case.0x487a83.1
test edi, edi
jne 0x4879c9
mov edi, dword [eax + 0x14]
jmp 0x4879cc
mov edi, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
add edi, esi
xor eax, eax
mov esi, dword [ecx]
mov dword [ebp - 8], esi
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
add ecx, edx
mov edx, dword [edi + 0xc]
add eax, edx
cmp esi, ecx
jb 0x487a0b
cmp eax, ebx
je case.0x487a83.1
add edi, edx
cmp byte [edi], 0
jne 0x487a07
inc edi
inc eax
cmp eax, ebx
je case.0x487a83.1
cmp byte [edi], 0
je 0x4879f8
cmp esi, ecx
jae 0x4879d8
lea eax, [edi + 1]
xor ebx, ebx
mov dword [ebp + 0xc], ebx
mov ecx, 0x10
mov dx, word [eax]
mov word [ebp + 0xc], dx
mov al, byte [eax + 2]
mov byte [ebp + 0xe], al
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jbe 0x487a42
lea edx, [edi + 0x10]
mov ax, word [edx]
and eax, 0xffff
dec esi
lea ecx, [ecx + eax + 2]
lea edx, [edx + eax + 2]
jne 0x487a2f
lea eax, [ecx + edi]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0xc], ebx
xor esi, esi
cmp ecx, dword [edi + 0xc]
je case.0x487a83.1
xor edx, edx
mov dl, byte [eax]
mov ebx, edx
and ebx, 0xc0
sub ebx, 0x80
je 0x487bae
sub ebx, 0x40
je 0x487b88
cmp edx, 9
ja case.0x487a83.1
jmp dword [edx*4 + 0x487d10]
inc eax
inc ecx
jmp 0x487a50
mov edx, dword [eax + 1]
lea ecx, [edi + 0x10]
inc edx
mov dword [ebp - 0x10], edx
xor edx, edx
lea ebx, [ecx + 2]
mov dx, word [ecx]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
lea ecx, [ecx + edx + 2]
mov edx, dword [ebp - 0x10]
dec edx
mov dword [ebp - 0x10], edx
jne 0x487a98
add eax, 5
mov ecx, eax
sub ecx, edi
jmp 0x487a50
mov esi, dword [eax + 4]
mov ecx, dword [ebp - 8]
cmp ecx, esi
jb case.0x487a83.1
xor ecx, ecx
mov cx, word [eax + 2]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x487add
lea edx, [eax + 8]
mov dword [ebp - 0xc], edx
lea eax, [eax + ecx + 8]
mov ecx, eax
sub ecx, edi
jmp 0x487a50
movsx ecx, byte [eax + 1]
mov edx, dword [ebp + 0xc]
add eax, 2
add edx, ecx
mov ecx, eax
mov dword [ebp + 0xc], edx
sub ecx, edi
jmp 0x487a50
movsx edx, word [eax + 1]
mov ecx, dword [ebp + 0xc]
add eax, 3
add ecx, edx
mov dword [ebp + 0xc], ecx
mov ecx, eax
sub ecx, edi
jmp 0x487a50
mov ecx, dword [eax + 1]
mov edx, dword [ebp + 0xc]
add eax, 5
add edx, ecx
mov ecx, eax
mov dword [ebp + 0xc], edx
sub ecx, edi
jmp 0x487a50
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + 1]
lea esi, [esi + edx + 1]
cmp esi, ecx
jae 0x487bcd
add eax, 2
mov ecx, eax
sub ecx, edi
jmp 0x487a50
xor ecx, ecx
mov cx, word [eax + 1]
lea esi, [esi + ecx + 1]
mov ecx, dword [ebp - 8]
cmp esi, ecx
jae 0x487bcd
add eax, 3
mov ecx, eax
sub ecx, edi
jmp 0x487a50
mov edx, dword [eax + 1]
mov ecx, dword [ebp - 8]
lea esi, [esi + edx + 1]
cmp esi, ecx
jae 0x487bcd
add eax, 5
mov ecx, eax
sub ecx, edi
jmp 0x487a50
movsx ecx, byte [eax + 1]
mov ebx, dword [ebp + 0xc]
and edx, 0x3f
add ebx, ecx
mov ecx, dword [ebp - 8]
lea esi, [esi + edx + 1]
mov dword [ebp + 0xc], ebx
cmp esi, ecx
jae 0x487bcd
add eax, 2
mov ecx, eax
sub ecx, edi
jmp 0x487a50
mov ecx, dword [ebp + 0xc]
and edx, 0x3f
inc ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 8]
lea esi, [esi + edx + 1]
cmp esi, ecx
jae 0x487bcd
inc eax
mov ecx, eax
sub ecx, edi
jmp 0x487a50
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0xa
lea eax, [ebx + 0x20c]
push eax
push ecx
call fcn.004a60bc
mov esi, dword [ebp - 0xc]
add esp, 0xc
test esi, esi
je 0x487c09
mov eax, dword [ebp - 0x1c]
lea edi, [ebx + 4]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebx + 4], 0
jmp 0x487c2e
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
mov esi, str.Unknown
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + 4]
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 esi, dword [ebp - 0x14]
test esi, esi
je 0x487c5f
mov eax, dword [ebp - 0x18]
lea edi, [ebx + 0x108]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov byte [eax + ebx + 0x108], 0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
mov esi, str.Unknown
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + 0x108]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, str.Unknown
mov eax, ecx
lea edi, [edx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Unknown
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, str.Unknown
mov eax, ecx
lea edi, [edx + 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Unknown
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + 0x20c]
mov edx, ecx
mov esi, str.Unknown
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret