Function at 0x1d17060
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x188
mov eax, dword [0x1d9682c]
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 0x1d170a9
lea edi, [esp + 0x5c]
cmp esi, eax
jne 0x1d170b2
mov esi, 0x1d16fe0
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 0x1d172d5
mov eax, 0x5a4d
cmp word [esp + 0x154], ax
jne 0x1d172d5
mov eax, dword [esp + 0x190]
test eax, eax
jne 0x1d17116
test ebp, ebp
je 0x1d1710c
mov ecx, dword [0x1d76b80]
push ecx
push str._DOS_executable_
mov ecx, ebp
call fcn.01d0fdd0
mov eax, 1
jmp 0x1d17376
cdq
push 4
mov dword [esp + 0x18], edx
push edi
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x20], eax
call esi
add esp, 0x10
test al, al
jne 0x1d1715c
test ebp, ebp
je 0x1d17147
mov eax, dword [0x1d76b80]
push eax
push str._Unable_to_read_executable_type_signature_
mov ecx, ebp
call fcn.01d0fdd0
push 0xc1
call dword [0x1d7fde0]
mov eax, 1
jmp 0x1d17376
mov eax, dword [edi]
movzx ecx, ax
cmp ecx, 0x454e
jne 0x1d17205
mov edx, dword [esp + 0x190]
mov dword [esp + 0x1c], eax
push 0x3c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
add edx, 4
push ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
call esi
add esp, 0x10
test al, al
jne 0x1d171bb
test ebp, ebp
je 0x1d171b4
mov edx, dword [0x1d76b80]
push edx
push str._OS2_signature_found_but_unable_to_load_OS2_header__
mov ecx, ebp
call fcn.01d0fdd0
xor eax, eax
jmp 0x1d17376
mov al, byte [esp + 0x52]
cmp al, 2
je 0x1d171e4
cmp al, 4
je 0x1d171e4
test ebp, ebp
je 0x1d171dd
mov eax, dword [0x1d76b80]
push eax
push str._Unrecognized_OS2_exetyp__
mov ecx, ebp
call fcn.01d0fdd0
xor eax, eax
jmp 0x1d17376
test ebp, ebp
je 0x1d171fb
mov ecx, dword [0x1d76b80]
push ecx
push str._Win16_executable_
mov ecx, ebp
call fcn.01d0fdd0
mov eax, 2
jmp 0x1d17376
cmp eax, 0x4550
je 0x1d17225
test ebp, ebp
je 0x1d17147
mov edx, dword [0x1d76b80]
push edx
push str._Unrecognized_executable_type_signature__
jmp 0x1d17140
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 0x1d17270
test ebp, ebp
je 0x1d17147
mov edx, dword [0x1d76b80]
push edx
push str._Unable_to_read_NT_headers__
jmp 0x1d17140
mov eax, 0x2000
test word [edi + 0x16], ax
je 0x1d172a8
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx]
cmp eax, 0x14c
je 0x1d1729e
xor edx, edx
cmp eax, 0x8664
setne dl
dec edx
and edx, 6
mov eax, edx
jmp 0x1d17376
mov eax, 5
jmp 0x1d17376
mov eax, dword [esp + 0x18]
movzx eax, word [eax]
cmp eax, 0x14c
je 0x1d172cb
xor ecx, ecx
cmp eax, 0x8664
setne cl
dec ecx
and ecx, 4
mov eax, ecx
jmp 0x1d17376
mov eax, 3
jmp 0x1d17376
mov edx, dword [esp + 0x18]
push edx
call fcn.01d177f0
mov esi, eax
push str..com
push esi
call fcn.01d212f2
add esp, 8
test eax, eax
jne 0x1d17310
test ebp, ebp
je 0x1d17309
mov eax, dword [0x1d76b80]
push eax
push str._no_valid_DOS_header__.com_extension_
mov ecx, ebp
call fcn.01d0fdd0
mov eax, 1
jmp 0x1d17376
push str..bat
push esi
call fcn.01d212f2
add esp, 8
test eax, eax
je 0x1d1735a
push str..cmd
push esi
call fcn.01d212f2
add esp, 8
test eax, eax
je 0x1d1735a
test ebp, ebp
je 0x1d1734b
mov ecx, dword [0x1d76b80]
push ecx
push str._no_valid_DOS_header_found__
mov ecx, ebp
call fcn.01d0fdd0
push 0xc1
call dword [0x1d7fde0]
xor eax, eax
jmp 0x1d17376
test ebp, ebp
je 0x1d17371
mov edx, dword [0x1d76b80]
push edx
push str._no_valid_DOS_header__.bat_or_.cmd_extension_
mov ecx, ebp
call fcn.01d0fdd0
mov eax, 7
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.01d20f6a
add esp, 0x188
ret