Function at 0xbfc48
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0xbfc50
push ecx
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0008411c
xor eax, eax
push ebp
push 0xbfec3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
xor ebx, ebx
call fcn.000c1670
mov edx, eax
cmp word [edx], 0x5a4d
jne 0xbfe57
mov edx, dword [edx + 0x3c]
mov ecx, eax
add edx, ecx
cmp dword [edx], 0x4550
jne 0xbfe57
mov esi, dword [edx + 0x50]
add esi, ecx
mov ebx, esi
add ebx, 4
mov edx, dword [esi]
lea eax, [ebp - 0x10]
call fcn.00083bdc
lea eax, [ebp - 0x10]
call fcn.00083a78
mov ecx, dword [esi]
mov edx, ebx
call fcn.00086ccc
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.000836e4
mov ecx, dword [0xd2340]
mov ecx, dword [ecx]
lea eax, [ebp - 0x20]
mov edx, 0xbfedc
call fcn.000838f4
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.000880e0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00083dd8
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00084088
test eax, eax
je 0xbfddd
call fcn.000b1af0
test al, al
je 0xbfd2e
call fcn.000c1234
cmp eax, 1
jne 0xbfdb1
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
push 1
push 1
lea ecx, [ebp - 0x28]
mov edx, 0xbfee8
mov eax, 0xbfef4
call fcn.000c136c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.00083dd8
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
call fcn.00083a78
mov ecx, eax
mov edx, dword [ebp - 4]
pop eax
call fcn.000b3b0c
mov ebx, eax
test ebx, ebx
jne 0xbfe57
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.000836e4
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
push 1
push 0
lea eax, [ebp - 0x14]
call fcn.00083a78
push eax
lea eax, [ebp - 0x2c]
call fcn.000c07d0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
pop ecx
call fcn.000b3b0c
mov ebx, eax
jmp 0xbfe57
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
push 1
push 0
lea eax, [ebp - 0x14]
call fcn.00083a78
push eax
lea eax, [ebp - 0x30]
call fcn.000c07d0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
pop ecx
call fcn.000b3b0c
mov ebx, eax
jmp 0xbfe57
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
push 1
push 1
lea ecx, [ebp - 0x38]
mov edx, 0xbfee8
mov eax, 0xbfef4
call fcn.000c136c
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.00083dd8
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
call fcn.00083a78
mov ecx, eax
mov edx, dword [ebp - 4]
pop eax
call fcn.000b3b0c
mov ebx, eax
test ebx, ebx
jne 0xbfe57
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.000836e4
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
push 1
push 0
lea eax, [ebp - 0x14]
call fcn.00083a78
push eax
lea eax, [ebp - 0x3c]
call fcn.000c07d0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 4]
pop ecx
call fcn.000b3b0c
mov ebx, eax
test ebx, ebx
je 0xbfe5e
mov dword [ebp - 0xc], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbfeca
lea eax, [ebp - 0x3c]
call fcn.00083c58
lea eax, [ebp - 0x38]
call fcn.0008364c
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00083c70
lea eax, [ebp - 0x28]
call fcn.0008364c
lea eax, [ebp - 0x24]
call fcn.00083c58
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00083670
lea eax, [ebp - 0x18]
call fcn.00083c58
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00083670
lea eax, [ebp - 4]
call fcn.00083c58
ret