Function at 0x10080340
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x10080558
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10080558
movzx ecx, byte [esi + 0x6c]
add ecx, eax
cmp byte [esi + 0x38], 0
push edi
mov dword [esi + 0x18], ecx
je 0x100804d5
cmp eax, 0x14
jbe 0x10080508
mov edx, dword [ebx]
mov dword [esi], edx
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 0x10]
lea ecx, [eax - 0x14]
add eax, 8
add ebx, 0x14
mov dword [esi + 0x10], edx
mov dword [esi + 0x18], ecx
cmp eax, dword [esi + 0x1c]
jbe 0x100803ce
mov edx, dword [esi + 0x14]
push edx
mov dword [esi + 0x1c], eax
call fcn.10001120
mov eax, dword [esi + 0x1c]
push 0x101f5459
push eax
call fcn.1013e88f
add esp, 0xc
mov dword [esi + 0x14], eax
test eax, eax
je 0x10080508
cmp byte [esi], 0
jne 0x10080508
cmp byte [esi + 1], 0
jne 0x10080508
cmp byte [esi + 2], 1
jne 0x10080508
movzx eax, byte [esi + 4]
movzx ecx, byte [esi + 5]
movzx edx, byte [esi + 6]
movzx edi, byte [esi + 0xc]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 7]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 9]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 8]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0xa]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0xb]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0xd]
shl edi, 8
or edx, edi
movzx edi, byte [esi + 0xe]
shl edx, 8
or edx, edi
movzx edi, byte [esi + 0xf]
shl edx, 8
or edx, edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov byte [esi + 0x63], 1
test eax, eax
je 0x10080508
test ecx, ecx
je 0x10080508
test edx, edx
je 0x10080508
mov edx, eax
shr edx, 3
mov dword [esi + 0x30], edx
test al, 7
jbe 0x1008047d
inc edx
mov dword [esi + 0x30], edx
cmp ecx, 0xffffffff
je 0x10080487
mov dword [esi + 0x34], ecx
jmp 0x100804a1
test byte [esi + 0x13], 0x20
je 0x10080508
mov eax, dword [esi + 0x2c]
test eax, eax
jbe 0x1008049b
xor edx, edx
div dword [esi + 0x30]
jmp 0x1008049e
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x34]
imul eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x2c]
jbe 0x100804d1
mov ecx, dword [esi + 0x24]
push ecx
mov dword [esi + 0x2c], eax
call fcn.1013db5a
mov edx, dword [esi + 0x2c]
push 0x101f5459
push edx
call fcn.1013e88f
add esp, 0xc
mov dword [esi + 0x24], eax
test eax, eax
je 0x10080508
mov byte [esi + 0x38], 0
push ebp
mov ebp, dword [esi + 0x18]
cmp ebp, dword [esi + 0x1c]
jbe 0x10080516
mov eax, dword [esi + 0x14]
push eax
call fcn.1013db5a
mov ecx, dword [esi + 0x18]
push 0x101f5459
push ecx
call fcn.1013e88f
add esp, 0xc
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10080510
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret 8
pop edi
pop esi
xor al, al
pop ebx
ret 8
mov ebp, dword [esi + 0x18]
mov dword [esi + 0x1c], ebp
mov al, byte [esi + 0x6c]
mov edi, dword [esi + 0x14]
test al, al
jbe 0x1008053d
movzx edx, al
push edx
lea eax, [esi + 0x64]
push eax
push edi
call fcn.1013fc90
movzx eax, byte [esi + 0x6c]
add esp, 0xc
add edi, eax
sub ebp, eax
mov byte [esi + 0x6c], 0
push ebp
push ebx
push edi
call fcn.1013fc90
add esp, 0xc
pop ebp
pop edi
mov dword [esi + 0x20], 0
pop esi
mov al, 1
pop ebx
ret 8
pop esi
xor al, al
pop ebx
ret 8