Function at 0x40cbaa
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 1]
xor ebx, ebx
mov byte [ebp - 1], 0x50
inc ebx
mov esi, ecx
push ebx
push eax
push edi
call fcn.0040d6c9
push ebx
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x4b
push eax
push edi
call fcn.0040d6c9
push ebx
lea eax, [ebp - 1]
mov byte [ebp - 1], bl
push eax
push edi
call fcn.0040d6c9
push ebx
lea eax, [ebp - 1]
mov byte [ebp - 1], 2
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 1]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 2]
add esp, 0x48
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 3]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 4]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 5]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 6]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 7]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 8]
add esp, 0x48
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov eax, dword [esi + 8]
shr eax, 8
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0xa]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0xb]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0xc]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0xe]
add esp, 0x48
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0xf]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x10]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x12]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x13]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x14]
add esp, 0x48
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x16]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x17]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x18]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov eax, dword [esi + 0x18]
shr eax, 8
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x20]
add esp, 0x48
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov eax, dword [esi + 0x20]
shr eax, 8
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x24]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov eax, dword [esi + 0x24]
shr eax, 8
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x28]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x29]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x2a]
add esp, 0x48
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x2b]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x30]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov eax, dword [esi + 0x30]
shr eax, 8
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x32]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x33]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x34]
add esp, 0x48
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov eax, dword [esi + 0x34]
shr eax, 8
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x36]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
mov al, byte [esi + 0x37]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push ebx
push eax
push edi
call fcn.0040d6c9
push dword [esi + 0x18]
lea eax, [esi + 0x148]
push eax
push edi
call fcn.0040d6c9
add esp, 0x3c
cmp eax, dword [esi + 0x18]
jne 0x40cf43
cmp dword [esi + 0x20], 0
je 0x40cf22
push dword [esi + 0x20]
push dword [esi + 0x140]
push edi
call fcn.0040d6c9
add esp, 0xc
cmp eax, dword [esi + 0x20]
jne 0x40cf43
cmp dword [esi + 0x24], 0
je 0x40cf3f
push dword [esi + 0x24]
push dword [esi + 0x144]
push edi
call fcn.0040d6c9
add esp, 0xc
cmp eax, dword [esi + 0x24]
jne 0x40cf43
xor eax, eax
jmp 0x40cf46
push 0xa
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret