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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], 0
push 0x40
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.00405b10
test eax, eax
jne 0x406449
xor eax, eax
jmp 0x406873
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x40646e
push 0xc1
call dword [0x4576ac]
xor eax, eax
jmp 0x406873
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x3c]
add edx, 0xf8
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.00405b10
test eax, eax
jne 0x406492
xor eax, eax
jmp 0x406873
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x4064bb
push 0xc1
call dword [0x4576ac]
xor eax, eax
jmp 0x406873
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 4]
cmp edx, 0x14c
je 0x4064dc
push 0xc1
call dword [0x4576ac]
xor eax, eax
jmp 0x406873
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
and ecx, 1
je 0x4064f9
push 0xc1
call dword [0x4576ac]
xor eax, eax
jmp 0x406873
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], 0
jmp 0x40652e
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x18], edx
jae 0x406570
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
jne 0x406551
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edx
jmp 0x406560
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jbe 0x40656e
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
jmp 0x40651c
lea edx, [ebp - 0x60]
push edx
call dword [0x4576bc]
mov eax, dword [ebp - 0x5c]
sub eax, 1
not eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ebp - 0x5c]
lea edx, [edx + ecx - 1]
and edx, eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x5c]
sub eax, 1
not eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x20]
lea ecx, [edx + ecx - 1]
and ecx, eax
cmp dword [ebp - 0x24], ecx
je 0x4065bf
push 0xc1
call dword [0x4576ac]
xor eax, eax
jmp 0x406873
mov edx, dword [ebp + 0x24]
push edx
push 4
push 0x3000
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
push edx
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406613
mov eax, dword [ebp + 0x24]
push eax
push 4
push 0x3000
mov ecx, dword [ebp - 0x24]
push ecx
push 0
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406613
push 0xe
call dword [0x4576ac]
xor eax, eax
jmp 0x406873
push 0x40
push 8
call dword [0x4576b8]
push eax
call dword [0x4576b0]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x406655
mov ecx, dword [ebp + 0x24]
push ecx
push 0x8000
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp + 0x14]
add esp, 0x10
push 0xe
call dword [0x4576ac]
xor eax, eax
jmp 0x406873
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x16]
and ecx, 0x2000
je 0x406678
mov dword [ebp - 0x28], 1
jmp 0x40667f
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00405b10
test eax, eax
jne 0x4066f8
jmp 0x406869
mov edx, dword [ebp + 0x24]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00450af1
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ecx], edx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00405b40
test eax, eax
jne 0x40676d
jmp 0x406869
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0x34]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x30], ecx
je 0x406798
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 4]
call fcn.00406920
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [edx + 0x18], eax
jmp 0x4067a4
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ecx + 0x18], 1
mov ecx, dword [ebp - 4]
call fcn.00405860
test eax, eax
jne 0x4067ba
jmp 0x406869
mov ecx, dword [ebp - 4]
call fcn.00405eb0
test eax, eax
jne 0x4067d0
jmp 0x406869
mov ecx, dword [ebp - 4]
call fcn.00405cc0
test eax, eax
jne 0x4067e6
jmp 0x406869
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x406856
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp dword [eax + 0x14], 0
je 0x40683f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x38], ecx
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x406831
push 0x45a
call dword [0x4576ac]
jmp 0x406869
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ecx + 0x10], 1
jmp 0x406854
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x28]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ecx + 0x38], edx
jmp 0x406862
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [eax + 0x38], 0
mov eax, 1
jmp 0x406873
mov ecx, dword [ebp - 4]
call fcn.00406030
xor eax, eax
mov esp, ebp
pop ebp
ret 0x20