Function at 0x10180340
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
je 0x1018035d
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
cmp dword [ebp - 4], 0
je 0x10180369
cmp dword [ebp + 0x14], 0
jne 0x1018037c
push 0x18
mov edx, dword [ebp + 8]
push edx
call fcn.10182720
add esp, 8
jmp 0x10180819
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 4]
mov word [eax + 0x10], dx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 6]
mov word [eax + 0x12], dx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 8]
mov word [eax + 0x14], dx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0xa]
mov word [eax + 0x16], dx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xe]
push ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0xc]
push eax
call fcn.101827e0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
xor edx, edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x24]
mov word [ecx + 0x38], ax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x26]
mov dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2a]
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x40], edx
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1ff
jae 0x1018046b
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
jmp 0x10180472
mov dword [ebp - 0x20], 0x1ff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2e
push ecx
mov edx, dword [ebp + 0x14]
add edx, 0x58
push edx
call fcn.10070c70
add esp, 0xc
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 8]
mov byte [eax + 0x58], 0
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x20]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x1ff
jae 0x101804b7
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
jmp 0x101804be
mov dword [ebp - 0x24], 0x1ff
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 0x48], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x1c]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x2e]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x1e]
add edx, ecx
push edx
mov edx, dword [ebp + 0x14]
add edx, 0x258
push edx
call fcn.10070c70
add esp, 0xc
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 8]
mov byte [eax + 0x258], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10180820
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10180950
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.101808b0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x2c]
cmp eax, dword [edx + 0x34]
jb 0x10180585
ja 0x10180574
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 0x30]
jbe 0x10180585
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x50], edx
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x4c], eax
jmp 0x10180594
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x50], edx
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [edx + 0x44]
jb 0x1018060a
ja 0x101805b2
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x50]
cmp edx, dword [ecx + 0x40]
jbe 0x1018060a
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + 0x2c]
cmp ecx, dword [eax + 0x34]
jb 0x101805ed
ja 0x101805dc
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + 0x28]
cmp ecx, dword [eax + 0x30]
jbe 0x101805ed
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x58], eax
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0x54], ecx
jmp 0x101805fc
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x58], eax
mov ecx, dword [edx + 0x34]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
jmp 0x10180619
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x60], edx
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x60], 0xffffffff
jne 0x10180814
cmp dword [ebp - 0x5c], 0
jne 0x10180814
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x1e]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x10180814
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x1c]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 0x2e]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 4
jae 0x1018066b
push 9
mov ecx, dword [ebp + 8]
push ecx
call fcn.10182720
add esp, 8
jmp 0x10180819
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 2]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add eax, 4
cmp eax, dword [ebp - 0x14]
jbe 0x1018069c
push 9
mov ecx, dword [ebp + 8]
push ecx
call fcn.10182720
add esp, 8
jmp 0x10180819
cmp dword [ebp - 0x48], 1
jne 0x101807f5
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x18], 0
je 0x101806c4
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x30], 0xffffffff
jne 0x1018072a
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 0x34], 0
jne 0x1018072a
cmp dword [ebp - 0x10], 8
jae 0x101806f5
push 9
mov edx, dword [ebp + 8]
push edx
call fcn.10182720
add esp, 8
jmp 0x10180819
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
xor edi, edi
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ecx + 4]
mov cl, 0x20
call fcn.1018b6e0
or esi, eax
or edi, edx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x30], esi
mov dword [edx + 0x34], edi
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 8
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x28], 0xffffffff
jne 0x10180790
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x2c], 0
jne 0x10180790
cmp dword [ebp - 0x10], 8
jae 0x1018075b
push 9
mov edx, dword [ebp + 8]
push edx
call fcn.10182720
add esp, 8
jmp 0x10180819
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
xor edi, edi
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ecx + 4]
mov cl, 0x20
call fcn.1018b6e0
or esi, eax
or edi, edx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x28], esi
mov dword [edx + 0x2c], edi
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 8
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x40], 0xffffffff
jne 0x101807f3
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x44], 0
jne 0x101807f3
cmp dword [ebp - 0x10], 8
jae 0x101807be
push 9
mov edx, dword [ebp + 8]
push edx
call fcn.10182720
add esp, 8
jmp 0x10180819
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
xor edi, edi
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ecx + 4]
mov cl, 0x20
call fcn.1018b6e0
or esi, eax
or edi, edx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x40], esi
mov dword [edx + 0x44], edi
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 8
mov dword [ebp - 0x10], ecx
jmp 0x10180814
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 4
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
jne 0x10180652
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret