Function at 0x911300
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x188
mov eax, dword [0x99986c]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x190]
push ebx
mov ebx, dword [esp + 0x190]
push ebp
mov ebp, dword [esp + 0x1a0]
push esi
mov esi, dword [esp + 0x1a8]
push edi
mov edi, dword [esp + 0x1a4]
mov dword [esp + 0x18], eax
xor eax, eax
cmp edi, eax
jne 0x911349
lea edi, [esp + 0x5c]
cmp esi, eax
jne 0x911352
mov esi, 0x911280
push 0x40
lea ecx, [esp + 0x158]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call esi
add esp, 0x10
test al, al
je 0x911554
mov eax, 0x5a4d
cmp word [esp + 0x154], ax
jne 0x911554
mov eax, dword [esp + 0x190]
test eax, eax
jne 0x9113b1
test ebp, ebp
je 0x9113a7
push 0xffffffffffffffff
push str._DOS_executable_
mov ecx, ebp
call fcn.0090a030
mov eax, 1
jmp 0x9115e7
push 4
push edi
lea ecx, [esp + 0x18]
cdq
push ecx
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call esi
add esp, 0x10
test al, al
jne 0x9113f3
test ebp, ebp
je 0x9113de
push 0xffffffffffffffff
push str._Unable_to_read_executable_type_signature_
mov ecx, ebp
call fcn.0090a030
push 0xc1
call dword [0x9822c8]
mov eax, 1
jmp 0x9115e7
mov eax, dword [edi]
movzx edx, ax
cmp edx, 0x454e
jne 0x91148e
push 0x3c
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x194]
push ecx
lea edx, [esp + 0x18]
push edx
add eax, 4
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
call esi
add esp, 0x10
test al, al
jne 0x91144d
test ebp, ebp
je 0x911446
push 0xffffffffffffffff
push str._OS2_signature_found_but_unable_to_load_OS2_header__
mov ecx, ebp
call fcn.0090a030
xor eax, eax
jmp 0x9115e7
mov al, byte [esp + 0x52]
cmp al, 2
je 0x911472
cmp al, 4
je 0x911472
test ebp, ebp
je 0x91146b
push 0xffffffffffffffff
push str._Unrecognized_OS2_exetyp__
mov ecx, ebp
call fcn.0090a030
xor eax, eax
jmp 0x9115e7
test ebp, ebp
je 0x911484
push 0xffffffffffffffff
push str._Win16_executable_
mov ecx, ebp
call fcn.0090a030
mov eax, 2
jmp 0x9115e7
cmp eax, 0x4550
je 0x9114a9
test ebp, ebp
je 0x9113de
push 0xffffffffffffffff
push str._Unrecognized_executable_type_signature__
jmp 0x9113d7
mov eax, dword [esp + 0x190]
add eax, 4
mov dword [esp + 0x10], eax
lea eax, [edi + 4]
push 0xf4
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
call esi
add esp, 0x10
test al, al
jne 0x9114ef
test ebp, ebp
je 0x9113de
push 0xffffffffffffffff
push str._Unable_to_read_NT_headers__
jmp 0x9113d7
mov edx, 0x2000
test word [edi + 0x16], dx
je 0x911527
mov eax, dword [esp + 0x18]
movzx eax, word [eax]
cmp eax, 0x14c
je 0x91151d
xor ecx, ecx
cmp eax, 0x8664
setne cl
dec ecx
and ecx, 6
mov eax, ecx
jmp 0x9115e7
mov eax, 5
jmp 0x9115e7
mov edx, dword [esp + 0x18]
movzx eax, word [edx]
cmp eax, 0x14c
je 0x91154a
xor ecx, ecx
cmp eax, 0x8664
setne cl
dec ecx
and ecx, 4
mov eax, ecx
jmp 0x9115e7
mov eax, 3
jmp 0x9115e7
mov edx, dword [esp + 0x18]
push edx
call fcn.00911a60
mov esi, eax
push str..com
push esi
call fcn.0091b432
add esp, 8
test eax, eax
jne 0x91158b
test ebp, ebp
je 0x911584
push 0xffffffffffffffff
push str._no_valid_DOS_header__.com_extension_
mov ecx, ebp
call fcn.0090a030
mov eax, 1
jmp 0x9115e7
push str..bat
push esi
call fcn.0091b432
add esp, 8
test eax, eax
je 0x9115d0
push str..cmd
push esi
call fcn.0091b432
add esp, 8
test eax, eax
je 0x9115d0
test ebp, ebp
je 0x9115c1
push 0xffffffffffffffff
push str._no_valid_DOS_header_found__
mov ecx, ebp
call fcn.0090a030
push 0xc1
call dword [0x9822c8]
xor eax, eax
jmp 0x9115e7
test ebp, ebp
je 0x9115e2
push 0xffffffffffffffff
push str._no_valid_DOS_header__.bat_or_.cmd_extension_
mov ecx, ebp
call fcn.0090a030
mov eax, 7
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0091b0aa
add esp, 0x188
ret