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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x720190
push 0x71ea50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], edx
mov esi, ecx
mov dword [ebp - 0x44], esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x40], ecx
cmp edx, 0x40
jb 0x409724
mov dword [ebp - 0x60], esi
cmp word [esi], 0x5a4d
jne 0x409724
mov eax, dword [esi + 0x3c]
lea edi, [eax + 0xf8]
cmp edi, edx
ja 0x409724
lea edi, [eax + esi]
mov dword [ebp - 0x1c], edi
cmp dword [edi], 0x4550
jne 0x409724
cmp dword [edi + 0x28], ecx
je 0x409724
test byte [edi + 0x16], 1
jne 0x409724
cmp dword [edi + 0xa4], ecx
je 0x409724
movzx eax, word [edi + 0x14]
lea edx, [eax + edi + 0x18]
mov dword [ebp - 0x3c], edx
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
push ecx
call dword [0x71f10c]
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x409724
mov ecx, dword [edi + 0x54]
cmp ecx, dword [ebp - 0x2c]
ja 0x4095e4
mov edi, ebx
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]
xor edx, edx
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 6]
cmp edx, eax
jge 0x40947f
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x3c]
lea eax, [eax + ecx*8]
mov esi, dword [eax + 0x14]
test esi, esi
je 0x40947c
mov ecx, dword [eax + 0x10]
lea edi, [ecx + esi]
cmp edi, dword [ebp - 0x2c]
ja 0x4095e4
mov edi, dword [ebp - 0x44]
add esi, edi
mov edi, dword [eax + 0xc]
add edi, ebx
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]
inc edx
jmp 0x409437
mov eax, dword [ecx + 0x84]
test eax, eax
je 0x409517
mov edi, dword [ecx + 0x80]
add edi, ebx
mov dword [ebp - 0x20], edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x409517
add eax, ebx
mov dword [ebp - 0x64], eax
push eax
call dword [0x71f128]
mov ecx, eax
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x4095e4
mov esi, dword [edi + 0x10]
add esi, ebx
mov dword [ebp - 0x4c], esi
mov eax, dword [edi + 4]
test eax, eax
jne 0x4094cb
mov edi, esi
jmp 0x4094cf
mov edi, dword [edi]
add edi, ebx
mov dword [ebp - 0x30], edi
mov eax, dword [edi]
test eax, eax
je 0x409507
jns 0x4094e0
movzx edx, ax
push edx
jmp 0x4094e5
lea eax, [eax + ebx + 2]
push eax
push ecx
call dword [0x71f0ac]
mov dword [esi], eax
test eax, eax
je 0x4095e4
add edi, 4
mov dword [ebp - 0x30], edi
add esi, 4
mov dword [ebp - 0x4c], esi
mov ecx, dword [ebp - 0x50]
jmp 0x4094d2
mov eax, dword [ebp - 0x20]
add eax, 0x14
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edi, eax
jmp 0x409498
mov edi, ebx
sub edi, dword [ecx + 0x34]
mov dword [ebp - 0x34], edi
mov esi, dword [ecx + 0xa0]
add esi, ebx
mov dword [ebp - 0x54], esi
lea ebx, [ebx]
cmp dword [esi], 0
je 0x40960d
lea edx, [esi + 8]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], 0
mov ecx, dword [esi + 4]
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 0x24], ecx
jae 0x4095ff
movzx ecx, word [edx]
mov eax, ecx
and eax, 0xfff
add eax, dword [esi]
add eax, ebx
mov dword [ebp - 0x68], eax
shr ecx, 0xc
cmp ecx, 4
ja 0x4095e4
jmp dword [ecx*4 + 0x718b40]
test ebx, ebx
je 0x409724
push 0x8000
push 0
push ebx
call dword [0x71f104]
jmp 0x409724
add esi, dword [esi + 4]
mov dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x1c]
jmp 0x409530
lea edx, [ebp - 0x58]
push edx
push 2
mov eax, dword [ecx + 0x54]
push eax
push ebx
mov edi, dword [0x71f144]
call edi
xor esi, esi
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 6]
cmp esi, ecx
jge 0x409655
lea edx, [esi + esi*4]
mov eax, dword [ebp - 0x3c]
lea edx, [eax + edx*8]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [edx + 0x24]
call fcn.00409300
push eax
mov eax, dword [edx + 8]
push eax
mov ecx, dword [edx + 0xc]
add ecx, ebx
push ecx
call edi
inc esi
jmp 0x409622
mov dword [ebp - 0x28], 0xffffffff
mov esi, 1
mov dword [ebp - 4], esi
test byte [eax + 0x17], 0x20
mov eax, dword [eax + 0x28]
je 0x4096bf
add eax, ebx
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp + 8]
push edx
push esi
push ebx
call eax
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x28], esi
jne 0x4096c9
push 0x8000
push 0
push ebx
call dword [0x71f104]
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add eax, ebx
mov dword [ebp - 0x70], eax
call eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4