Function at 0x1003f710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xb8], 0
lea ecx, [ebp - 0xb4]
call fcn.1003f240
lea ecx, [ebp - 0x3fc]
call fcn.1004e810
mov eax, dword [ebp + 8]
push eax
call fcn.1003f480
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
push str.DumpProcess:_Instantiating_PeParser_with_address:_0x_p._n
call fcn.1003d460
add esp, 8
push 0x50
call fcn.102493f1
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x1003f78a
push 1
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.10050700
mov dword [ebp - 0x48], eax
jmp 0x1003f791
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.10050a10
movzx edx, al
test edx, edx
je 0x1003f8af
cmp dword [ebp + 0x10], 0
je 0x1003f7be
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x1003f7c9
mov ecx, dword [ebp - 8]
call fcn.10050af0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
call fcn.10051ce0
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x40]
jb 0x1003f7f6
mov edx, dword [ebp - 4]
push edx
push 0x1030743c
call fcn.1003d460
add esp, 8
mov dword [ebp - 4], 0
jmp 0x1003f810
mov eax, dword [ebp - 4]
push eax
push 0x10307500
call fcn.1003d460
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
je 0x1003f865
push 0x10307530
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
call fcn.10053870
movzx ecx, al
test ecx, ecx
je 0x1003f84d
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
push 0x104f3570
push 0x10307540
call fcn.1003d460
add esp, 0xc
jmp 0x1003f863
mov ecx, dword [ebp + 0xc]
push ecx
push 0x10307580
call fcn.1003d460
add esp, 8
jmp 0x1003ffa6
jmp 0x1003f8aa
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
call fcn.10053870
movzx ecx, al
test ecx, ecx
je 0x1003f894
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
push 0x103075ac
call fcn.1003d460
add esp, 8
jmp 0x1003f8aa
mov ecx, dword [ebp + 0xc]
push ecx
push 0x103075e8
call fcn.1003d460
add esp, 8
jmp 0x1003ffa6
jmp 0x1003fc42
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10039460
add esp, 4
test eax, eax
je 0x1003f8d3
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x1003f8e9
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx], 0x4550
je 0x1003fc30
mov eax, dword [ebp + 0xc]
push eax
push str.DumpProcess:_Disguised_PE_image__bad_MZ_and_or_PE_headers__at_0x_p._n
call fcn.1003d460
add esp, 8
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10079980
add esp, 8
test eax, eax
jne 0x1003f927
mov eax, dword [ebp + 0xc]
push eax
push str.DumpProcess:_unable_to_query_memory_address_0x_p
call fcn.1003ebe0
add esp, 8
jmp 0x1003ffa6
push 1
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.1025a359
add esp, 8
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xe4]
push edx
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.1024ad90
add esp, 0xc
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x3c], 0
jne 0x1003f9c1
mov eax, dword [ebp - 0xc]
add eax, 0x3c
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x1c4
cmp dword [ebp - 0x18], ecx
jae 0x1003f9af
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp eax, 0x14c
je 0x1003f990
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x8664
jne 0x1003f9a4
mov eax, dword [ebp - 0xc]
add eax, 3
cmp dword [ebp - 0x18], eax
jbe 0x1003f9a4
mov ecx, dword [ebp - 0x18]
sub ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x1003f967
cmp dword [ebp - 0x10], 0
je 0x1003f9c1
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x3c], 0
jne 0x1003faae
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x1c4
cmp dword [ebp - 0x1c], ecx
jae 0x1003faae
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
cmp eax, 0x14c
je 0x1003fa08
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x8664
jne 0x1003fa1c
mov eax, dword [ebp - 0xc]
add eax, 4
cmp dword [ebp - 0x1c], eax
jb 0x1003fa1c
mov ecx, dword [ebp - 0x1c]
sub ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x10], 0
je 0x1003faa9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x1003faa9
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x54], 0
je 0x1003faa9
mov dword [ebp - 0x2c], 0x40
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x54]
sub eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x2c]
push edx
call fcn.1024ad90
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.1024a9c0
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3c], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str.DumpProcess:_pNtHeader_moved_from_0x_x_to_0x_x__e_lfanew_0x_x_n
call fcn.1003d460
add esp, 0x10
jmp 0x1003f9db
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x1003faeb
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x30]
call fcn.100507c0
mov eax, 1
and eax, 1
je 0x1003fae3
push 0x50
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.102493c0
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
jmp 0x1003faf2
mov dword [ebp - 0x4c], 0
push 0x50
call fcn.102493f1
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x1003fb18
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.10050640
mov dword [ebp - 0x54], eax
jmp 0x1003fb1f
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call fcn.10050a10
movzx eax, al
test eax, eax
je 0x1003fc2e
cmp dword [ebp + 0x10], 0
je 0x1003fb4c
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
jmp 0x1003fb57
mov ecx, dword [ebp - 8]
call fcn.10050af0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
call fcn.10051ce0
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x40]
jb 0x1003fb84
mov eax, dword [ebp - 4]
push eax
push str.DumpProcess:_Error___entry_point_too_big:_0x_x__ignoring._n
call fcn.1003d460
add esp, 8
mov dword [ebp - 4], 0
jmp 0x1003fb9e
mov ecx, dword [ebp - 4]
push ecx
push str.DumpProcess:_Module_entry_point_VA_is_0x_p._n
call fcn.1003d460
add esp, 8
mov edx, dword [ebp - 4]
add edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x1003fbee
push 0x1030773c
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10053870
movzx edx, al
test edx, edx
je 0x1003fbdb
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
push 0x104f3570
push str.DumpProcess:_Module_image_dump_success__s___dump_size_0x_x._n
call fcn.1003d460
add esp, 0xc
jmp 0x1003fbec
mov edx, dword [ebp + 0xc]
push edx
push 0x1030778c
call fcn.1003d460
add esp, 8
jmp 0x1003fc2e
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10053870
movzx edx, al
test edx, edx
je 0x1003fc1d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
push str.DumpProcess:_Module_image_dump_success___dump_size_0x_x._n
call fcn.1003d460
add esp, 8
jmp 0x1003fc2e
mov edx, dword [ebp + 0xc]
push edx
push str.DumpProcess:_Failed_to_dump_image_at_0x_p._n
call fcn.1003d460
add esp, 8
jmp 0x1003fc42
push str.DumpProcess:_Invalid_PE_file_or_invalid_PE_header._n
call fcn.1003d460
add esp, 4
jmp 0x1003ffa6
cmp dword [ebp + 0x14], 0
je 0x1003ff40
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0xd4]
call fcn.1004ad00
movzx eax, al
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x1003fc90
push 1
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0xd4]
call fcn.1004ad00
movzx ecx, al
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x28], 0
je 0x1003ff33
cmp dword [ebp - 0x24], 0
je 0x1003ff33
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
push str.DumpProcess:_Found_IAT___0x_x__size:_0x_x
call fcn.1003d460
add esp, 0xc
lea ecx, [ebp - 0x3fc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x12]
call fcn.10042490
lea ecx, [ebp - 0x3fc]
call fcn.1004e8a0
xor ecx, ecx
je 0x1003fdd8
mov byte [ebp - 0xb4], 1
mov byte [ebp - 0xb3], 0
lea edx, [ebp - 0x12]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [0x104f3674]
push edx
mov eax, dword [0x104f3678]
push eax
lea ecx, [ebp - 0xb4]
call fcn.10048660
lea ecx, [ebp - 0xb4]
call fcn.100483b0
push eax
lea ecx, [ebp - 0xb4]
call fcn.10048380
push eax
push str.DumpProcess:_Direct_imports___Found__d_possible_direct_imports_with__d_unique_APIs
call fcn.1003d460
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.10048380
test eax, eax
jle 0x1003fdd8
lea ecx, [ebp - 0xb4]
call fcn.10048500
test eax, eax
jle 0x1003fda8
lea ecx, [ebp - 0xb4]
call fcn.10048500
push eax
push str.DumpProcess:_Direct_imports___Found__d_additional_api_addresses
call fcn.1003d460
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.10049920
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push str.DumpProcess:_Direct_imports___Old_IAT_size_0x_08x_new_IAT_size_0x_08x._n
call fcn.1003d460
add esp, 0xc
lea ecx, [ebp - 0x3fc]
call fcn.1004e8a0
lea ecx, [ebp - 0xb4]
call fcn.10048ef0
xor eax, eax
je 0x1003fdd8
mov byte [ebp - 0x11], 1
movzx ecx, byte [ebp - 0x11]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.10048750
push str.DumpProcess:_Direct_imports_patched._n
call fcn.1003d460
add esp, 4
mov edx, dword [ebp - 0x28]
push edx
call fcn.1003f6a0
add esp, 4
movzx eax, al
test eax, eax
je 0x1003fdf8
push str.DumpProcess:_Warning___IAT_is_not_inside_the_PE_image__requires_rebasing._n
call fcn.1003d460
add esp, 4
push 0x104f3570
lea ecx, [ebp - 0x184]
call fcn.1003f3f0
xor ecx, ecx
je 0x1003fe24
lea ecx, [ebp - 0x184]
call fcn.1004db80
push str.DumpProcess:_importRebuild:_OFT_support_enabled._n
call fcn.1003d460
add esp, 4
xor edx, edx
je 0x1003fe4a
lea ecx, [ebp - 0xb4]
call fcn.10048380
test eax, eax
jle 0x1003fe4a
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 1
xor ecx, ecx
je 0x1003fe6d
lea edx, [ebp - 0xb4]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x184]
call fcn.1004dba0
lea edx, [ebp - 0x3fc]
push edx
push 0
lea ecx, [ebp - 0x184]
call fcn.1004c770
movzx eax, al
test eax, eax
je 0x1003ff0f
push str.DumpProcess:_Import_table_rebuild_success._n
call fcn.1003d460
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
je 0x1003fed6
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x34]
call fcn.100507c0
mov eax, 1
and eax, 1
je 0x1003fece
push 0x50
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.102493c0
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x5c], edx
jmp 0x1003fedd
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x74], 1
lea ecx, [ebp - 0x184]
call fcn.100507c0
lea ecx, [ebp - 0x3fc]
call fcn.1004e880
lea ecx, [ebp - 0xb4]
call fcn.1003f300
mov eax, dword [ebp - 0x74]
jmp 0x1004000a
push str.DumpProcess:_Import_table_rebuild_failed__falling_back_to_unfixed_dump._n
call fcn.1003d460
add esp, 4
push 0
mov ecx, dword [ebp - 8]
call fcn.10052170
lea ecx, [ebp - 0x184]
call fcn.100507c0
jmp 0x1003ff40
push str.DumpProcess:_Warning:_Unable_to_find_IAT_in_scan._n
call fcn.1003d460
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1003ff7d
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x38]
call fcn.100507c0
mov edx, 1
and edx, 1
je 0x1003ff75
push 0x50
mov eax, dword [ebp - 0x38]
push eax
call fcn.102493c0
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x60], ecx
jmp 0x1003ff84
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x78], 1
lea ecx, [ebp - 0x3fc]
call fcn.1004e880
lea ecx, [ebp - 0xb4]
call fcn.1003f300
mov eax, dword [ebp - 0x78]
jmp 0x1004000a
mov edx, dword [ebp - 8]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
je 0x1003ffe3
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x3c]
call fcn.100507c0
mov ecx, 1
and ecx, 1
je 0x1003ffdb
push 0x50
mov edx, dword [ebp - 0x3c]
push edx
call fcn.102493c0
add esp, 8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
jmp 0x1003ffea
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x3fc]
call fcn.1004e880
lea ecx, [ebp - 0xb4]
call fcn.1003f300
mov eax, dword [ebp - 0x7c]
mov esp, ebp
pop ebp
ret