Function at 0x40d5d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x442040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 5]
push 1
mov esi, ecx
mov byte [ebp - 5], 0x50
push eax
mov ecx, edi
call fcn.0040dff0
push 1
lea eax, [ebp - 5]
mov byte [ebp - 5], 0x4b
push eax
mov ecx, edi
call fcn.0040dff0
push 1
lea eax, [ebp - 5]
mov byte [ebp - 5], 1
push eax
mov ecx, edi
call fcn.0040dff0
push 1
lea eax, [ebp - 5]
mov byte [ebp - 5], 2
push eax
mov ecx, edi
call fcn.0040dff0
movzx eax, byte [esi]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 1]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 2]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 3]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 4]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 5]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 6]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 7]
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
mov ecx, edi
call fcn.0040dff0
movzx eax, byte [esi + 8]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 8]
mov ecx, edi
shr eax, 8
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0xa]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0xb]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0xc]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, 8
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0xe]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0xf]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x10]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 0x10]
mov ecx, edi
shr eax, 8
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x12]
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
mov ecx, edi
call fcn.0040dff0
movzx eax, byte [esi + 0x13]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x14]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 0x14]
mov ecx, edi
shr eax, 8
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x16]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x17]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x18]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 0x18]
mov ecx, edi
shr eax, 8
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x20]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 0x20]
mov ecx, edi
shr eax, 8
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x24]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 0x24]
shr eax, 8
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
mov ecx, edi
call fcn.0040dff0
movzx eax, byte [esi + 0x28]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x29]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x2a]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x2b]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x30]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 0x30]
mov ecx, edi
shr eax, 8
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x32]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x33]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x34]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 0x34]
mov ecx, edi
shr eax, 8
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x36]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
movzx eax, byte [esi + 0x37]
mov ecx, edi
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call fcn.0040dff0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40d99a
push eax
lea eax, [esi + 0x148]
mov ecx, edi
push eax
call fcn.0040dff0
cmp eax, dword [esi + 0x18]
jne 0x40d9ff
mov eax, dword [esi + 0x20]
test eax, eax
je 0x40d9b9
push eax
push dword [esi + 0x140]
mov ecx, edi
call fcn.0040dff0
cmp eax, dword [esi + 0x20]
jne 0x40d9ff
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40d9ed
push eax
push dword [esi + 0x144]
mov ecx, edi
call fcn.0040dff0
xor edx, edx
mov ecx, 0xa
cmp eax, dword [esi + 0x24]
pop edi
cmove ecx, edx
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xa
pop edi
xor ecx, ebp
pop esi
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret