Function at 0x404a00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
cmp dword [ebp + 0xc], 0
jne 0x404a19
mov eax, 0x80000002
jmp 0x40505e
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x4c], 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x168]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00405070
add esp, 8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jge 0x404a5c
mov eax, dword [ebp - 0x16c]
jmp 0x40505e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004052a0
add esp, 4
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jge 0x404a82
mov eax, dword [ebp - 0x16c]
jmp 0x40505e
mov edx, 0x10b
mov word [ebp - 0x170], dx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x59]
test ecx, ecx
jne 0x404b45
mov edx, dword [ebp - 0x168]
movzx eax, word [edx + 4]
cmp eax, 0x14c
jne 0x404abc
mov ecx, 0x10b
mov word [ebp - 0x170], cx
jmp 0x404b0b
mov edx, dword [ebp - 0x168]
movzx eax, word [edx + 4]
cmp eax, 0x200
jne 0x404adb
mov ecx, 0x20b
mov word [ebp - 0x170], cx
jmp 0x404b0b
mov edx, dword [ebp - 0x168]
movzx eax, word [edx + 4]
cmp eax, 0x8664
jne 0x404afa
mov ecx, 0x20b
mov word [ebp - 0x170], cx
jmp 0x404b0b
mov edx, dword [ebp - 0x168]
mov ax, word [edx + 0x18]
mov word [ebp - 0x170], ax
movzx ecx, word [ebp - 0x170]
cmp ecx, 0x10b
jne 0x404b2f
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x34]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x404b43
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x30]
mov dword [eax], edx
mov ecx, dword [ecx + 0x34]
mov dword [eax + 4], ecx
jmp 0x404b6c
mov edx, dword [ebp - 0x168]
movzx eax, word [edx + 6]
cdq
mov ecx, dword [ebp - 0x168]
add eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
adc ecx, edx
sub eax, 0x28
sbb ecx, 0
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x59]
test ecx, ecx
jne 0x404bb4
mov edx, dword [ebp - 0x168]
movzx eax, word [edx + 0x16]
and eax, 1
je 0x404bb4
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x58], 1
jmp 0x404bbb
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x58], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x59]
test ecx, ecx
jne 0x404e38
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x50]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x38]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x54]
mov dword [eax + 0x40], edx
movzx eax, word [ebp - 0x170]
cmp eax, 0x10b
jne 0x404c2c
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x74]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x168]
add eax, 0xa8
mov dword [ebp - 0x144], eax
jmp 0x404c4f
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x168]
add eax, 0xb8
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x148], 6
jbe 0x404e33
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx]
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x168]
movzx eax, word [edx + 0x14]
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x140], ecx
mov dword [ebp - 4], 0
jmp 0x404ca0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x168]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jae 0x404d58
mov dword [ebp - 0x114], 0x28
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
call edx
add esp, 0x10
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jge 0x404d08
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x4c], 1
mov eax, dword [ebp - 0x16c]
jmp 0x40505e
mov ecx, dword [ebp - 0x178]
cmp ecx, dword [ebp - 0x130]
jb 0x404d44
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x134]
cmp dword [ebp - 0x178], edx
jae 0x404d44
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x128]
mov dword [ebp - 0x174], eax
jmp 0x404d58
mov ecx, dword [ebp - 0x140]
add ecx, 0x28
mov dword [ebp - 0x140], ecx
jmp 0x404c97
cmp dword [ebp - 0x174], 0
je 0x404e33
mov dword [ebp - 4], 0
jmp 0x404d77
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 4]
jae 0x404e33
mov dword [ebp - 0x114], 0x1c
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x174]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
call edx
add esp, 0x10
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jge 0x404dde
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x4c], 1
mov eax, dword [ebp - 0x16c]
jmp 0x40505e
cmp dword [ebp - 0x158], 2
jne 0x404e2e
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x1c
add ecx, dword [ebp - 0x178]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x34], ecx
cmp dword [ebp - 0x150], 0
jne 0x404e27
cmp dword [ebp - 0x14c], 0
je 0x404e27
mov eax, dword [ebp - 0x154]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
xor eax, eax
jmp 0x40505e
jmp 0x404d6e
jmp 0x40505c
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x168]
add eax, dword [ecx + 0x1c]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x168]
mov ecx, dword [edx + 0x20]
cmp ecx, dword [eax + 0x18]
jbe 0x404e86
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x168]
add eax, dword [ecx + 0x24]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x2c], 0x1000
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 0xc]
add ecx, 0x28
mov edx, dword [ebp - 0x168]
movzx eax, word [edx + 6]
sub ecx, eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x40], ecx
mov eax, dword [ebp - 0x168]
add eax, 0x20
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx]
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x140], 0x28
mov dword [ebp - 0x174], 0
mov dword [ebp - 4], 0
jmp 0x404ef1
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x168]
movzx edx, byte [ecx + 4]
cmp dword [ebp - 4], edx
jae 0x404fb9
mov dword [ebp - 0x114], 0x28
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x20]
call eax
add esp, 0x10
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jge 0x404f59
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x4c], 1
mov eax, dword [ebp - 0x16c]
jmp 0x40505e
mov edx, dword [ebp - 0x178]
cmp edx, dword [ebp - 0x130]
jb 0x404fa5
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x134]
cmp dword [ebp - 0x178], eax
jae 0x404fa5
mov ecx, dword [ebp - 0x178]
sub ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
lea eax, [ecx + edx + 0x28]
mov ecx, dword [ebp - 0x168]
movzx edx, word [ecx + 6]
sub eax, edx
mov dword [ebp - 0x174], eax
jmp 0x404fb9
mov eax, dword [ebp - 0x140]
add eax, 0x28
mov dword [ebp - 0x140], eax
jmp 0x404ee8
cmp dword [ebp - 0x174], 0
je 0x40505c
mov dword [ebp - 4], 0
jmp 0x404fd8
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 4]
jae 0x40505c
mov dword [ebp - 0x114], 0x1c
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x174]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
call ecx
add esp, 0x10
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jge 0x405038
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x4c], 1
mov eax, dword [ebp - 0x16c]
jmp 0x40505e
cmp dword [ebp - 0x158], 2
jne 0x405057
mov eax, dword [ebp - 4]
imul eax, eax, 0x1c
add eax, dword [ebp - 0x178]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x34], eax
xor eax, eax
jmp 0x40505e
jmp 0x404fcf
xor eax, eax
mov esp, ebp
pop ebp
ret