Function at 0x4018e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push esi
cmp dword [0x4178a0], 0
je 0x401914
mov eax, dword [0x417890]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + edx + 0x50]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x34]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x24], edx
push 0x40
push 0x3000
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x50]
push ecx
push 0
call dword [0x4178c8]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + 6]
imul edx, edx, 0x28
lea eax, [eax + edx + 0x138]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004010c0
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x401993
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x10], edx
jae 0x4019f8
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x14], 0
je 0x4019ed
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x10], 0
je 0x4019ed
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x3c]
lea eax, [eax + edx - 1]
mov ecx, dword [ebp - 0x34]
xor edx, edx
div dword [ecx + 0x3c]
mov edx, dword [ebp - 0x34]
imul eax, dword [edx + 0x3c]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
add eax, dword [edx + 0xc]
push eax
call fcn.004010c0
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, 0x28
mov dword [ebp - 0x24], ecx
jmp 0x40198a
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb0]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.004018b0
add esp, 4
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0xb4], eax
cmp dword [0x4178a0], 0
jne 0x401a4d
push 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x50]
push ecx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [0x4178ec]
mov dword [ebp - 0xc], eax
jmp 0x401a54
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xb4]
cmp dword [edx + 0x10], 0
je 0x401b6f
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0xc]
push ecx
call dword [0x4178e4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xb4]
cmp dword [edx], 0
je 0x401aa4
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x2c]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
jmp 0x401ac1
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0xb4]
cmp dword [edx + 0x10], 0
je 0x401ae6
mov eax, dword [ebp - 0xb4]
cmp dword [eax], 0
je 0x401ae6
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0
je 0x401b5b
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
and eax, 0x80000000
je 0x401b19
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
and edx, 0x7fffffff
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401890
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x401b37
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + ecx + 2]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401890
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
cmp dword [ebp - 0x14], 0
je 0x401b47
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x30], eax
jmp 0x401ae6
mov ecx, dword [ebp - 0xb4]
add ecx, 0x14
mov dword [ebp - 0xb4], ecx
jmp 0x401a54
cmp dword [0x4178a0], 0
jne 0x401b98
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x34]
push eax
push 0
push 0
push 0
push 0x22
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x4178e0]
mov dword [0x417880], eax
jmp 0x401ba2
mov dword [0x417880], 0
cmp dword [0x417880], 0
jne 0x401c59
cmp dword [0x4178a0], 0
je 0x401bc3
mov edx, dword [0x417890]
mov dword [ebp - 8], edx
jmp 0x401bce
push 0
call dword [0x4178c0]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [0x4178e8]
test eax, eax
jne 0x401bf8
push 0x8000
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [0x4178cc]
test eax, eax
jne 0x401bf8
xor eax, eax
jmp 0x401f64
cmp dword [0x4178a0], 0
jne 0x401c44
mov edx, dword [ebp - 8]
push edx
push 0
push 0
push 0
push 0x22
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4178e0]
mov dword [0x417880], eax
cmp dword [0x417880], 0
jne 0x401c42
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [0x4178c8]
mov dword [0x417880], eax
jmp 0x401c59
push 0x40
push 0x3000
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [0x4178c8]
cmp dword [0x4178a0], 0
jne 0x401dd0
mov eax, dword [ebp - 0x34]
mov ecx, dword [0x417880]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0xa4], 0
je 0x401d5c
cmp dword [ebp - 0x38], 0
je 0x401d5c
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xb0]
add ecx, dword [eax + 0xa0]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 0
je 0x401d5c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xb8], 0xfffff75a
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx + 0x8ae]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x10], 0
jmp 0x401cee
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jae 0x401d4b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xac]
movzx eax, word [edx + ecx*2]
sar eax, 0xc
cmp eax, 3
jne 0x401d49
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xac]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [edx + eax]
add ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xac]
movzx edx, word [eax + edx*2]
and edx, 0xfff
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
add esi, dword [eax]
mov dword [esi + edx], ecx
jmp 0x401ce5
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 4]
mov dword [ebp - 0x1c], edx
jmp 0x401ca1
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [0x417880]
push eax
call fcn.004010c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x4178f0]
mov edx, dword [0x417880]
push edx
call fcn.00402160
add esp, 4
mov eax, dword [0x417880]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [0x417880]
add edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00401f70
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov edx, dword [0x417880]
add edx, dword [ecx + 0x28]
mov dword [0x417904], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [0x417904]
mov dword [eax + 0x28], ecx
jmp 0x401f5f
mov edx, dword [ebp - 0x2c]
mov dword [0x417880], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0xa4], 0
je 0x401ec2
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xb0]
add ecx, dword [eax + 0xa0]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 0
je 0x401ec2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc0], 0xfffff75a
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx + 0x8ae]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x10], 0
jmp 0x401e54
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jae 0x401eb1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xac]
movzx eax, word [edx + ecx*2]
sar eax, 0xc
cmp eax, 3
jne 0x401eaf
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xac]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [edx + eax]
add ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xac]
movzx edx, word [eax + edx*2]
and edx, 0xfff
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
add esi, dword [eax]
mov dword [esi + edx], ecx
jmp 0x401e4b
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 4]
mov dword [ebp - 0x1c], edx
jmp 0x401e07
mov eax, dword [ebp - 0x34]
mov ecx, dword [0x417880]
add ecx, dword [eax + 0x28]
mov dword [0x417904], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x28]
mov dword [ebp - 0xc4], eax
mov ecx, dword [0x417890]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + 0x16]
or eax, 0x2000
mov ecx, dword [ebp - 0x34]
mov word [ecx + 0x16], ax
lea edx, [ebp - 0xbc]
push edx
push 0x40
push 6
mov eax, dword [ebp - 0xc4]
push eax
call dword [0x4178dc]
mov eax, dword [ebp - 0xc4]
mov byte [eax], 0x68
mov ecx, dword [0x417904]
mov dword [eax + 1], ecx
mov byte [eax + 5], 0xc3
mov ecx, dword [0x417880]
mov dword [0x41789c], ecx
mov edx, dword [0x417880]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [0x417880]
add ecx, dword [eax + 0x28]
push ecx
mov edx, dword [0x417890]
push edx
call fcn.00401f70
add esp, 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4