Function at 0x1d2eb80
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x188
mov eax, dword [0x1dbb89c]
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 0x1d2ebc9
lea edi, [esp + 0x5c]
cmp esi, eax
jne 0x1d2ebd2
mov esi, 0x1d2eb00
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 0x1d2edd4
mov eax, 0x5a4d
cmp word [esp + 0x154], ax
jne 0x1d2edd4
mov eax, dword [esp + 0x190]
test eax, eax
jne 0x1d2ec31
test ebp, ebp
je 0x1d2ec27
push 0xffffffffffffffff
push str._DOS_executable_
mov ecx, ebp
call fcn.01d26f00
mov eax, 1
jmp 0x1d2ee67
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 0x1d2ec73
test ebp, ebp
je 0x1d2ec5e
push 0xffffffffffffffff
push str._Unable_to_read_executable_type_signature_
mov ecx, ebp
call fcn.01d26f00
push 0xc1
call dword [0x1da3b34]
mov eax, 1
jmp 0x1d2ee67
mov eax, dword [edi]
movzx edx, ax
cmp edx, 0x454e
jne 0x1d2ed0e
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 0x1d2eccd
test ebp, ebp
je 0x1d2ecc6
push 0xffffffffffffffff
push str._OS2_signature_found_but_unable_to_load_OS2_header__
mov ecx, ebp
call fcn.01d26f00
xor eax, eax
jmp 0x1d2ee67
mov al, byte [esp + 0x52]
cmp al, 2
je 0x1d2ecf2
cmp al, 4
je 0x1d2ecf2
test ebp, ebp
je 0x1d2eceb
push 0xffffffffffffffff
push str._Unrecognized_OS2_exetyp__
mov ecx, ebp
call fcn.01d26f00
xor eax, eax
jmp 0x1d2ee67
test ebp, ebp
je 0x1d2ed04
push 0xffffffffffffffff
push str._Win16_executable_
mov ecx, ebp
call fcn.01d26f00
mov eax, 2
jmp 0x1d2ee67
cmp eax, 0x4550
je 0x1d2ed29
test ebp, ebp
je 0x1d2ec5e
push 0xffffffffffffffff
push str._Unrecognized_executable_type_signature__
jmp 0x1d2ec57
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 0x1d2ed6f
test ebp, ebp
je 0x1d2ec5e
push 0xffffffffffffffff
push str._Unable_to_read_NT_headers__
jmp 0x1d2ec57
mov edx, 0x2000
test word [edi + 0x16], dx
je 0x1d2eda7
mov eax, dword [esp + 0x18]
movzx eax, word [eax]
cmp eax, 0x14c
je 0x1d2ed9d
xor ecx, ecx
cmp eax, 0x8664
setne cl
dec ecx
and ecx, 6
mov eax, ecx
jmp 0x1d2ee67
mov eax, 5
jmp 0x1d2ee67
mov edx, dword [esp + 0x18]
movzx eax, word [edx]
cmp eax, 0x14c
je 0x1d2edca
xor ecx, ecx
cmp eax, 0x8664
setne cl
dec ecx
and ecx, 4
mov eax, ecx
jmp 0x1d2ee67
mov eax, 3
jmp 0x1d2ee67
mov edx, dword [esp + 0x18]
push edx
call fcn.01d2f2e0
mov esi, eax
push str..com
push esi
call fcn.01d38ba2
add esp, 8
test eax, eax
jne 0x1d2ee0b
test ebp, ebp
je 0x1d2ee04
push 0xffffffffffffffff
push str._no_valid_DOS_header__.com_extension_
mov ecx, ebp
call fcn.01d26f00
mov eax, 1
jmp 0x1d2ee67
push str..bat
push esi
call fcn.01d38ba2
add esp, 8
test eax, eax
je 0x1d2ee50
push str..cmd
push esi
call fcn.01d38ba2
add esp, 8
test eax, eax
je 0x1d2ee50
test ebp, ebp
je 0x1d2ee41
push 0xffffffffffffffff
push str._no_valid_DOS_header_found__
mov ecx, ebp
call fcn.01d26f00
push 0xc1
call dword [0x1da3b34]
xor eax, eax
jmp 0x1d2ee67
test ebp, ebp
je 0x1d2ee62
push 0xffffffffffffffff
push str._no_valid_DOS_header__.bat_or_.cmd_extension_
mov ecx, ebp
call fcn.01d26f00
mov eax, 7
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.01d389aa
add esp, 0x188
ret