Function at 0x40ca80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], 0x50
call fcn.0040d8c0
push 1
lea ecx, [ebp - 1]
push ecx
mov byte [ebp - 1], 0x4b
call fcn.0040d8c0
push 1
lea edx, [ebp - 1]
push edx
mov byte [ebp - 1], 3
call fcn.0040d8c0
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], 4
call fcn.0040d8c0
movzx ecx, byte [edi + 2]
push 1
lea edx, [ebp - 1]
push edx
mov byte [ebp - 1], cl
call fcn.0040d8c0
movzx eax, byte [edi + 3]
push 1
lea ecx, [ebp - 1]
push ecx
mov byte [ebp - 1], al
call fcn.0040d8c0
movzx edx, byte [edi + 0x2c]
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], dl
call fcn.0040d8c0
movzx ecx, byte [edi + 0x2d]
push 1
lea edx, [ebp - 1]
push edx
mov byte [ebp - 1], cl
call fcn.0040d8c0
movzx eax, byte [edi + 6]
push 1
lea ecx, [ebp - 1]
push ecx
mov byte [ebp - 1], al
call fcn.0040d8c0
movzx edx, byte [edi + 7]
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], dl
call fcn.0040d8c0
movzx ecx, byte [edi + 8]
push 1
lea edx, [ebp - 1]
push edx
mov byte [ebp - 1], cl
call fcn.0040d8c0
movzx eax, byte [edi + 9]
push 1
lea ecx, [ebp - 1]
push ecx
mov byte [ebp - 1], al
call fcn.0040d8c0
movzx edx, byte [edi + 0xa]
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], dl
call fcn.0040d8c0
movzx ecx, byte [edi + 0xb]
push 1
lea edx, [ebp - 1]
mov byte [ebp - 1], cl
push edx
call fcn.0040d8c0
movzx eax, byte [edi + 0xc]
push 1
lea ecx, [ebp - 1]
push ecx
mov byte [ebp - 1], al
call fcn.0040d8c0
movzx edx, byte [edi + 0xd]
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], dl
call fcn.0040d8c0
movzx ecx, byte [edi + 0xe]
push 1
lea edx, [ebp - 1]
push edx
mov byte [ebp - 1], cl
call fcn.0040d8c0
movzx eax, byte [edi + 0xf]
push 1
lea ecx, [ebp - 1]
push ecx
mov byte [ebp - 1], al
call fcn.0040d8c0
movzx edx, byte [edi + 0x10]
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], dl
call fcn.0040d8c0
movzx ecx, byte [edi + 0x11]
push 1
lea edx, [ebp - 1]
push edx
mov byte [ebp - 1], cl
call fcn.0040d8c0
movzx eax, byte [edi + 0x12]
push 1
lea ecx, [ebp - 1]
push ecx
mov byte [ebp - 1], al
call fcn.0040d8c0
movzx edx, byte [edi + 0x13]
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], dl
call fcn.0040d8c0
movzx ecx, byte [edi + 0x14]
push 1
lea edx, [ebp - 1]
push edx
mov byte [ebp - 1], cl
call fcn.0040d8c0
movzx eax, byte [edi + 0x15]
push 1
lea ecx, [ebp - 1]
push ecx
mov byte [ebp - 1], al
call fcn.0040d8c0
movzx edx, byte [edi + 0x16]
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], dl
call fcn.0040d8c0
movzx ecx, byte [edi + 0x17]
push 1
lea edx, [ebp - 1]
push edx
mov byte [ebp - 1], cl
call fcn.0040d8c0
movzx eax, byte [edi + 0x18]
push 1
lea ecx, [ebp - 1]
push ecx
mov byte [ebp - 1], al
call fcn.0040d8c0
mov edx, dword [edi + 0x18]
shr edx, 8
push 1
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], dl
call fcn.0040d8c0
movzx ecx, byte [edi + 0x1c]
push 1
lea edx, [ebp - 1]
push edx
mov byte [ebp - 1], cl
call fcn.0040d8c0
mov eax, dword [edi + 0x1c]
push 1
lea ecx, [ebp - 1]
shr eax, 8
push ecx
mov byte [ebp - 1], al
call fcn.0040d8c0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40ccaf
push eax
lea edx, [edi + 0x148]
push edx
call fcn.0040d8c0
cmp eax, dword [edi + 0x18]
je 0x40ccbe
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x40ccd7
mov eax, dword [edi + 0x13c]
push ecx
push eax
call fcn.0040d8c0
cmp eax, dword [edi + 0x1c]
jne 0x40ccb4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret