Function at 0x40cb00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xbef8ac]
sub esp, 0xc
push esi
push 0xffff
push 0xbf0ae8
push eax
call dword [0xbeff1c]
mov eax, 1
call fcn.00403250
mov esi, eax
test esi, esi
je 0x40cb39
push 0x9e9b92
push esi
call dword [0xbf00bc]
push ebx
push edi
push 0xbf0ae8
call dword [0xbeff3c]
mov ebx, eax
test esi, esi
je 0x40cb53
mov eax, esi
call fcn.00403340
lea eax, [ebx + 1]
call fcn.00403250
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x40cb70
push 0xbf0ae8
push edi
call dword [0xbf00bc]
push 0x9ece50
call dword [0xbeff3c]
lea esi, [ebx + eax]
lea eax, [esi + 1]
call fcn.00403250
mov ebx, eax
test ebx, ebx
je 0x40cba4
test edi, edi
je 0x40cba4
push edi
push ebx
call dword [0xbf00bc]
push 0x9ece50
push ebx
call dword [0xbf0028]
mov ecx, dword [ebp + 0x10]
lea edi, [ecx + esi + 1]
mov eax, edi
call fcn.00403250
mov esi, eax
test esi, esi
je 0x40cbd5
test ebx, ebx
je 0x40cbd5
cmp dword [ebp + 8], 0
je 0x40cbd5
push ebx
push esi
call dword [0xbf00bc]
mov edx, dword [ebp + 8]
push edx
push esi
call dword [0xbf0028]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40cbe1
call fcn.00403340
mov eax, edi
call fcn.00403250
mov edi, eax
test edi, edi
je 0x40cbfa
test esi, esi
je 0x40cbfa
push esi
push edi
call dword [0xbf00bc]
mov eax, esi
call fcn.00403340
mov eax, ebx
call fcn.00403340
mov eax, dword [0xbef8ac]
push edi
push eax
call dword [0xbefed8]
mov eax, edi
call fcn.00403340
mov ecx, dword [0xbefd54]
push ecx
call dword [0xbefec4]
mov esi, eax
mov dword [0xbefe68], esi
test esi, esi
je 0x40cdbc
movzx edi, word [esi]
mov edx, 0x5a4d
cmp di, dx
jne 0x40cc75
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x40cc75
mov ecx, 0x10b
cmp word [eax + esi + 0x18], cx
jne 0x40cc75
mov edx, dword [0xbefa84]
mov eax, dword [eax + esi + 0x78]
push edx
push esi
push eax
call fcn.0040c450
add esp, 0xc
jmp 0x40cc77
xor eax, eax
mov ecx, 0x5a4d
mov dword [0xbefe60], eax
cmp di, cx
jne 0x40ccb5
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x40ccb5
mov edx, 0x10b
cmp word [eax + esi + 0x18], dx
jne 0x40ccb5
mov ecx, dword [0xbefcf8]
mov edx, dword [eax + esi + 0x78]
push ecx
push esi
push edx
call fcn.0040c450
add esp, 0xc
jmp 0x40ccb7
xor eax, eax
mov dword [0xbefe78], eax
mov eax, 0x5a4d
cmp di, ax
jne 0x40ccf5
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x40ccf5
mov ecx, 0x10b
cmp word [eax + esi + 0x18], cx
jne 0x40ccf5
mov edx, dword [0xbef9d8]
mov eax, dword [eax + esi + 0x78]
push edx
push esi
push eax
call fcn.0040c450
add esp, 0xc
jmp 0x40ccf7
xor eax, eax
mov ecx, 0x5a4d
mov dword [0xbefe30], eax
cmp di, cx
jne 0x40cd35
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x40cd35
mov edx, 0x10b
cmp word [eax + esi + 0x18], dx
jne 0x40cd35
mov ecx, dword [0xbef978]
mov edx, dword [eax + esi + 0x78]
push ecx
push esi
push edx
call fcn.0040c450
add esp, 0xc
jmp 0x40cd37
xor eax, eax
mov dword [0xbefe58], eax
mov eax, 0x5a4d
cmp di, ax
jne 0x40cd75
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x40cd75
mov ecx, 0x10b
cmp word [eax + esi + 0x18], cx
jne 0x40cd75
mov edx, dword [0xbefde4]
mov eax, dword [eax + esi + 0x78]
push edx
push esi
push eax
call fcn.0040c450
add esp, 0xc
jmp 0x40cd77
xor eax, eax
mov ecx, 0x5a4d
mov dword [0xbefe6c], eax
cmp di, cx
jne 0x40cdb5
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x40cdb5
mov edx, 0x10b
cmp word [eax + esi + 0x18], dx
jne 0x40cdb5
mov ecx, dword [0xbefafc]
mov edx, dword [eax + esi + 0x78]
push ecx
push esi
push edx
call fcn.0040c450
add esp, 0xc
jmp 0x40cdb7
xor eax, eax
mov dword [0xbefe50], eax
cmp dword [0xbefe60], 0
pop edi
pop ebx
je 0x40ce08
cmp dword [0xbefe78], 0
je 0x40ce08
cmp dword [0xbefe30], 0
je 0x40ce08
cmp dword [0xbefe6c], 0
je 0x40ce08
cmp dword [0xbefe50], 0
je 0x40ce08
cmp dword [0xbefe58], 0
je 0x40ce08
mov eax, dword [ebp + 8]
mov esi, 1
call fcn.00403340
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xor esi, esi
call fcn.00403340
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret