Function at 0x401700
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x40172e
jmp 0x4019f8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x18]
jge 0x40174e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
and edx, 1
je 0x4017c4
cmp dword [ebp - 0x18], 0
jle 0x4017c4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
add ecx, edx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xffff
jle 0x401794
mov eax, dword [ebp - 0x14]
sub eax, 0xffff
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
jmp 0x40179a
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
shl eax, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0x18]
sub edx, 0x20
mov dword [ebp - 0x18], edx
js 0x4018b0
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 2]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 6]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0xa]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0xe]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x10]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x12]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x14]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x16]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x18]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x1a]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x1c]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x1e]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
add edx, 0x20
mov dword [ebp - 4], edx
jmp 0x4017c4
mov eax, dword [ebp - 0x18]
add eax, 0x20
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 8
mov dword [ebp - 0x18], ecx
js 0x401902
mov edx, dword [ebp - 4]
movzx eax, word [edx]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 2]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 4]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 6]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
jmp 0x4018b9
mov edx, dword [ebp - 0x18]
add edx, 8
mov dword [ebp - 0x18], edx
jne 0x40191d
cmp dword [ebp - 8], 0
jne 0x40191d
jmp 0x4019f8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
add ecx, edx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xffff
jle 0x40194c
mov eax, dword [ebp - 0x14]
sub eax, 0xffff
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
jmp 0x401952
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
sub eax, 2
mov dword [ebp - 0x18], eax
js 0x401974
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x401952
cmp dword [ebp - 8], 0
je 0x4019ea
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
movzx edx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
add edx, eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0xffff
jle 0x4019aa
mov ecx, dword [ebp - 0x14]
sub ecx, 0xffff
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
jmp 0x4019b0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4019e1
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 0xf], al
movzx ecx, word [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
jmp 0x4019e8
mov dword [ebp - 0x18], 0xffffffff
jmp 0x4019f8
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4019f8
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 0x10], al
cmp dword [ebp + 0xc], 0
je 0x401a5c
mov ecx, dword [0x42f5cc]
and ecx, 4
je 0x401a2b
push str.cksum:_out_of_data_n
mov edx, dword [0x42f5c8]
push edx
call fcn.00414be4
add esp, 8
mov eax, dword [0x42f5c8]
push eax
call fcn.00414b88
add esp, 4
mov ecx, dword [0x42f5cc]
and ecx, 4
je 0x401a5c
mov edx, dword [ebp + 0xc]
push edx
push str._len___d_n
mov eax, dword [0x42f5c8]
push eax
call fcn.00414be4
add esp, 0xc
mov ecx, dword [0x42f5c8]
push ecx
call fcn.00414b88
add esp, 4
cmp dword [ebp - 0x18], 0xffffffff
jne 0x401a70
mov byte [ebp - 0xf], 0
movzx edx, word [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
add ecx, edx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xffff
jle 0x401a9f
mov eax, dword [ebp - 0x14]
sub eax, 0xffff
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
jmp 0x401aa5
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x14]
not eax
and eax, 0xffff
mov esp, ebp
pop ebp
ret