Function at 0x47f427
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 4
mov ebx, eax
mov esi, dword [ebx + 0x3c]
push 0x1000
push dword [esi + ebx + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov eax, dword [esi + ebx + 0x54]
add eax, dword [ebx + 0x3c]
push eax
push ebx
push dword [ebp - 4]
call fcn.004a5470
mov esi, dword [ebx + 0x3c]
add esi, dword [ebp - 4]
and dword [ebp - 8], 0
movzx eax, word [esi + 0x14]
lea edi, [eax + esi + 0x18]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x10], edi
cmp ax, word [esi + 6]
jae 0x47f4ef
add edi, 0x10
mov eax, dword [edi]
test eax, eax
jne 0x47f4b1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x47f4e0
push 4
push 0x1000
push eax
mov eax, dword [edi - 4]
add eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi - 8], eax
push dword [esi + 0x38]
push 0
push eax
call fcn.004a63e0
jmp 0x47f4dd
push 4
push 0x1000
push eax
mov eax, dword [edi - 4]
add eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [edi]
mov ecx, dword [edi + 4]
add ecx, ebx
push ecx
push eax
mov dword [ebp - 0xc], eax
call fcn.004a5470
mov eax, dword [ebp - 0xc]
mov dword [edi - 8], eax
add esp, 0xc
movzx eax, word [esi + 6]
inc dword [ebp - 8]
add edi, 0x28
cmp dword [ebp - 8], eax
jl 0x47f47f
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xa0]
sub edx, dword [esi + 0x34]
add eax, dword [ebp - 4]
jmp 0x47f544
add ecx, 0xfffffff8
shr ecx, 1
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edi
test ecx, ecx
jle 0x47f541
movzx ecx, word [eax + edi*2 + 8]
mov edi, ecx
and edi, 0xf000
mov ebx, 0x3000
cmp di, bx
jne 0x47f535
and ecx, 0xfff
add ecx, dword [eax]
add ecx, dword [ebp - 4]
add dword [ecx], edx
mov edi, dword [ebp - 8]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0xc]
jl 0x47f511
add eax, dword [eax + 4]
mov edi, dword [eax]
mov ecx, dword [eax + 4]
add edi, ecx
jne 0x47f500
cmp dword [esi + 0x84], edi
jbe 0x47f5c2
mov edi, dword [esi + 0x80]
add edi, dword [ebp - 4]
jmp 0x47f5bb
mov ebx, dword [ebp - 4]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47f5c2
mov eax, dword [edi]
test eax, eax
jne 0x47f57c
mov eax, dword [edi + 0x10]
add eax, ebx
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x47f5b2
jns 0x47f592
and eax, 0xffff
jmp 0x47f598
add eax, dword [ebp - 4]
add eax, 2
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
test eax, eax
je 0x47f5c2
add dword [ebp - 8], 4
mov eax, dword [ebp - 8]
add ebx, 4
mov eax, dword [eax]
test eax, eax
jne 0x47f589
add edi, 0x14
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x47f560
and dword [ebp - 8], 0
xor eax, eax
cmp ax, word [esi + 6]
jae 0x47f662
mov edi, dword [ebp - 0x10]
add edi, 0x24
mov ecx, dword [edi]
test ecx, 0x2000000
je 0x47f5f5
push 0x4000
push dword [edi - 0x14]
push dword [edi - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x47f64f
mov edx, dword [edi - 0x14]
test edx, edx
jne 0x47f611
test cl, 0x40
je 0x47f606
mov eax, dword [esi + 0x20]
jmp 0x47f60d
test cl, cl
jns 0x47f64f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x47f64f
mov eax, ecx
shr eax, 0x1d
mov ebx, ecx
shr ebx, 0x1e
and eax, 1
and ebx, 1
lea eax, [ebx + eax*2]
mov ebx, ecx
shr ebx, 0x1f
lea eax, [ebx + eax*2]
mov eax, dword [eax*4 + 0x4f2ffc]
test ecx, 0x4000000
je 0x47f640
or eax, 0x200
lea ecx, [ebp - 0x10]
push ecx
push eax
push edx
push dword [edi - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [esi + 6]
inc dword [ebp - 8]
add edi, 0x28
cmp dword [ebp - 8], eax
jl 0x47f5d8
mov esi, dword [esi + 0x28]
test esi, esi
je 0x47f67a
mov ecx, dword [ebp - 4]
lea eax, [esi + ecx]
test eax, eax
je 0x47f67a
push 0
push 1
push ecx
call eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret