Function at 0x10013710
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100859a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
mov ebx, 0xf
push 0x100897d8
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
call fcn.10003910
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x5c], ebp
call fcn.10003fb0
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x58], 0xffffffff
jb 0x1001377f
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x60]
push ebp
push 0x40
push ebp
push esi
lea ecx, [esi + 0x58]
call fcn.10013320
test al, al
jne 0x100137d9
push 0x1b
push str.Failure_reading_DOS_header.
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], al
call fcn.10003910
mov dword [esp + 0x58], 1
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.10003fb0
cmp dword [esp + 0x2c], 0x10
jb 0x10013b43
mov eax, dword [esp + 0x18]
push eax
jmp 0x10013b3b
mov eax, dword [esi + 0x5c]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x1001380d
push 0x27
push str.Bad_DOS_header_magic._Unsupported_file.
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
call fcn.10003910
mov dword [esp + 0x58], 2
jmp 0x100137b8
mov ecx, dword [eax + 0x3c]
push ebp
sub ecx, 0x40
push ecx
push 0x40
push esi
lea ecx, [esi + 0x38]
call fcn.10013320
test al, al
jne 0x1001384d
push 0x1e
push str.Failure_loading_DOS_mode_stub.
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], al
call fcn.10003910
mov dword [esp + 0x58], 3
jmp 0x100137b8
mov edi, dword [esi + 0x5c]
mov dword [esp + 0x10], ebp
cmp dword [edi + 0x3c], ebp
je 0x10013afc
mov ecx, dword [edi + 0x3c]
push ebp
push ecx
mov ecx, esi
call fcn.10008b00
cmp eax, dword [edi + 0x3c]
jne 0x10013afc
push 4
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.100089b0
cmp eax, 4
jne 0x10013afc
cmp dword [esp + 0x10], 0x4550
jne 0x10013afc
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + 0x3c]
push ebp
push 0x14
add eax, 4
push eax
push esi
lea ecx, [esi + 0x68]
call fcn.10013320
test al, al
jne 0x100138ef
push str.Failure_reading_PE_header
lea ecx, [esp + 0x1c]
call fcn.10006ec0
mov dword [esp + 0x58], 5
mov ecx, dword [esp + 0x64]
push eax
call fcn.10003fb0
lea ecx, [esp + 0x18]
call fcn.100022e0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov eax, dword [esi + 0x6c]
cmp word [eax + 0x10], bp
ja 0x10013910
push str.Missing_NT_header._Invalid_or_unsupported_file.
lea ecx, [esp + 0x1c]
call fcn.10006ec0
mov dword [esp + 0x58], 6
jmp 0x100138c7
mov edi, dword [esi + 0x5c]
mov dword [esp + 0x14], ebp
cmp dword [edi + 0x3c], ebp
je 0x10013ae1
mov ecx, dword [edi + 0x3c]
add ecx, 0x18
push ebp
push ecx
mov ecx, esi
call fcn.10008b00
mov edx, dword [edi + 0x3c]
add edx, 0x18
cmp eax, edx
jne 0x10013ae1
push 2
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.100089b0
cmp eax, 2
jne 0x10013ae1
mov eax, dword [esp + 0x14]
mov ecx, 0x10b
cmp ax, cx
jne 0x1001396b
mov byte [esi + 0x98], 0
jmp 0x10013980
mov edx, 0x20b
cmp ax, dx
jne 0x10013ac6
mov byte [esi + 0x98], 1
movzx eax, byte [esi + 0x98]
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx + 0x3c]
neg eax
sbb eax, eax
and eax, 0x10
push ebp
add eax, 0xe0
add edx, 0x18
cmp byte [esi + 0x98], 0
push eax
lea ecx, [esi + 0x78]
push edx
push esi
je 0x100139af
add ecx, 0x10
call fcn.10013320
test al, al
jne 0x100139d3
push str.Failure_reading_NT_header
lea ecx, [esp + 0x1c]
call fcn.10006ec0
mov dword [esp + 0x58], 9
jmp 0x100138c7
mov eax, dword [esi + 0x6c]
mov bl, byte [eax + 2]
movzx eax, byte [esi + 0x98]
mov ecx, dword [esi + 0x5c]
movzx edi, bl
neg eax
sbb eax, eax
lea edx, [edi + edi*4]
add edx, edx
add edx, edx
push ebp
add edx, edx
mov byte [esi + 0x34], bl
mov ecx, dword [ecx + 0x3c]
push edx
and eax, 0x10
lea edx, [ecx + eax + 0xf8]
push edx
push esi
lea ecx, [esi + 0x9c]
call fcn.10013320
test al, al
jne 0x10013a31
push str.Failure_reading_section_headers
lea ecx, [esp + 0x1c]
call fcn.10006ec0
mov dword [esp + 0x58], 0xa
jmp 0x100138c7
mov ecx, dword [esi + 0xa0]
xor eax, eax
test bl, bl
je 0x10013a50
add ecx, 0x14
cmp eax, ebp
je 0x10013a48
cmp dword [ecx], eax
jae 0x10013a4a
mov eax, dword [ecx]
add ecx, 0x28
dec edi
jne 0x10013a40
movzx edi, byte [esi + 0x98]
movzx ecx, byte [esi + 0x34]
mov edx, dword [esi + 0x5c]
mov edx, dword [edx + 0x3c]
neg edi
sbb edi, edi
lea ecx, [ecx + ecx*4]
and edi, 0x10
lea ecx, [edi + ecx*8 + 0xe0]
lea ecx, [ecx + edx + 0x18]
push ebp
sub eax, ecx
push eax
push ecx
push esi
lea ecx, [esi + 0x48]
call fcn.10013320
test al, al
jne 0x10013ab1
push str._nERROR:_Error_loading_data_between_end_of_headers_and_first_section
lea ecx, [esp + 0x38]
call fcn.10006ec0
mov ecx, dword [esp + 0x64]
push eax
mov dword [esp + 0x5c], 0xb
call fcn.10003fb0
lea ecx, [esp + 0x34]
jmp 0x100138d5
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
push str.Failure_of_magic_to_determine_PE_image_type
lea ecx, [esp + 0x1c]
call fcn.10006ec0
mov dword [esp + 0x58], 8
jmp 0x100138c7
push str.Failure_of_magic_to_determine_PE_image_type
lea ecx, [esp + 0x1c]
call fcn.10006ec0
mov dword [esp + 0x58], 7
jmp 0x100138c7
push 0x36
push str._tMissing_PE_header_magic._Invalid_or_unsupported_file.
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
call fcn.10003910
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x5c], 4
call fcn.10003fb0
cmp dword [esp + 0x2c], 0x10
jb 0x10013b43
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret