Function at 0x1003f220
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.1003ed50
lea ecx, [ebp - 0x3fc]
call fcn.1004e300
mov eax, dword [ebp + 8]
push eax
call fcn.1003ef90
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
push str.DumpProcess:_Instantiating_PeParser_with_address:_0x_p._n
call fcn.1003cfa0
add esp, 8
push 0x50
call fcn.10248eb1
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x1003f29a
push 1
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.10050200
mov dword [ebp - 0x48], eax
jmp 0x1003f2a1
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.10050510
movzx edx, al
test edx, edx
je 0x1003f3bf
cmp dword [ebp + 0x10], 0
je 0x1003f2ce
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x1003f2d9
mov ecx, dword [ebp - 8]
call fcn.100505f0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
call fcn.100517e0
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x40]
jb 0x1003f306
mov edx, dword [ebp - 4]
push edx
push 0x1030741c
call fcn.1003cfa0
add esp, 8
mov dword [ebp - 4], 0
jmp 0x1003f320
mov eax, dword [ebp - 4]
push eax
push 0x103074e0
call fcn.1003cfa0
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
je 0x1003f375
push 0x10307510
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
call fcn.100532f0
movzx ecx, al
test ecx, ecx
je 0x1003f35d
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
push 0x104f33a8
push 0x10307520
call fcn.1003cfa0
add esp, 0xc
jmp 0x1003f373
mov ecx, dword [ebp + 0xc]
push ecx
push 0x10307560
call fcn.1003cfa0
add esp, 8
jmp 0x1003fab6
jmp 0x1003f3ba
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
call fcn.100532f0
movzx ecx, al
test ecx, ecx
je 0x1003f3a4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
push 0x1030758c
call fcn.1003cfa0
add esp, 8
jmp 0x1003f3ba
mov ecx, dword [ebp + 0xc]
push ecx
push 0x103075c8
call fcn.1003cfa0
add esp, 8
jmp 0x1003fab6
jmp 0x1003f752
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10038fa0
add esp, 4
test eax, eax
je 0x1003f3e3
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x1003f3f9
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx], 0x4550
je 0x1003f740
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.1003cfa0
add esp, 8
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10079430
add esp, 8
test eax, eax
jne 0x1003f437
mov eax, dword [ebp + 0xc]
push eax
push str.DumpProcess:_unable_to_query_memory_address_0x_p
call fcn.1003e700
add esp, 8
jmp 0x1003fab6
push 1
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.10259f79
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.1024a850
add esp, 0xc
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x3c], 0
jne 0x1003f4d1
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 0x1003f4bf
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp eax, 0x14c
je 0x1003f4a0
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x8664
jne 0x1003f4b4
mov eax, dword [ebp - 0xc]
add eax, 3
cmp dword [ebp - 0x18], eax
jbe 0x1003f4b4
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 0x1003f477
cmp dword [ebp - 0x10], 0
je 0x1003f4d1
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 0x1003f5be
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 0x1003f5be
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
cmp eax, 0x14c
je 0x1003f518
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x8664
jne 0x1003f52c
mov eax, dword [ebp - 0xc]
add eax, 4
cmp dword [ebp - 0x1c], eax
jb 0x1003f52c
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 0x1003f5b9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x1003f5b9
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x54], 0
je 0x1003f5b9
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.1024a850
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.1024a480
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.1003cfa0
add esp, 0x10
jmp 0x1003f4eb
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x1003f5fb
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x30]
call fcn.100502c0
mov eax, 1
and eax, 1
je 0x1003f5f3
push 0x50
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10248e80
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
jmp 0x1003f602
mov dword [ebp - 0x4c], 0
push 0x50
call fcn.10248eb1
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x1003f628
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.10050140
mov dword [ebp - 0x54], eax
jmp 0x1003f62f
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.10050510
movzx eax, al
test eax, eax
je 0x1003f73e
cmp dword [ebp + 0x10], 0
je 0x1003f65c
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
jmp 0x1003f667
mov ecx, dword [ebp - 8]
call fcn.100505f0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
call fcn.100517e0
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x40]
jb 0x1003f694
mov eax, dword [ebp - 4]
push eax
push str.DumpProcess:_Error___entry_point_too_big:_0x_x__ignoring._n
call fcn.1003cfa0
add esp, 8
mov dword [ebp - 4], 0
jmp 0x1003f6ae
mov ecx, dword [ebp - 4]
push ecx
push str.DumpProcess:_Module_entry_point_VA_is_0x_p._n
call fcn.1003cfa0
add esp, 8
mov edx, dword [ebp - 4]
add edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x1003f6fe
push 0x1030771c
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.100532f0
movzx edx, al
test edx, edx
je 0x1003f6eb
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
push 0x104f33a8
push str.DumpProcess:_Module_image_dump_success__s___dump_size_0x_x._n
call fcn.1003cfa0
add esp, 0xc
jmp 0x1003f6fc
mov edx, dword [ebp + 0xc]
push edx
push 0x1030776c
call fcn.1003cfa0
add esp, 8
jmp 0x1003f73e
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.100532f0
movzx edx, al
test edx, edx
je 0x1003f72d
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.1003cfa0
add esp, 8
jmp 0x1003f73e
mov edx, dword [ebp + 0xc]
push edx
push str.DumpProcess:_Failed_to_dump_image_at_0x_p._n
call fcn.1003cfa0
add esp, 8
jmp 0x1003f752
push str.DumpProcess:_Invalid_PE_file_or_invalid_PE_header._n
call fcn.1003cfa0
add esp, 4
jmp 0x1003fab6
cmp dword [ebp + 0x14], 0
je 0x1003fa50
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.1004a7f0
movzx eax, al
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x1003f7a0
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.1004a7f0
movzx ecx, al
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x28], 0
je 0x1003fa43
cmp dword [ebp - 0x24], 0
je 0x1003fa43
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.1003cfa0
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.10041fa0
lea ecx, [ebp - 0x3fc]
call fcn.1004e390
xor ecx, ecx
je 0x1003f8e8
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 [0x104f34ac]
push edx
mov eax, dword [0x104f34b0]
push eax
lea ecx, [ebp - 0xb4]
call fcn.10048170
lea ecx, [ebp - 0xb4]
call fcn.10047ec0
push eax
lea ecx, [ebp - 0xb4]
call fcn.10047e90
push eax
push str.DumpProcess:_Direct_imports___Found__d_possible_direct_imports_with__d_unique_APIs
call fcn.1003cfa0
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.10047e90
test eax, eax
jle 0x1003f8e8
lea ecx, [ebp - 0xb4]
call fcn.10048010
test eax, eax
jle 0x1003f8b8
lea ecx, [ebp - 0xb4]
call fcn.10048010
push eax
push str.DumpProcess:_Direct_imports___Found__d_additional_api_addresses
call fcn.1003cfa0
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.10049410
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.1003cfa0
add esp, 0xc
lea ecx, [ebp - 0x3fc]
call fcn.1004e390
lea ecx, [ebp - 0xb4]
call fcn.100489e0
xor eax, eax
je 0x1003f8e8
mov byte [ebp - 0x11], 1
movzx ecx, byte [ebp - 0x11]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.10048260
push str.DumpProcess:_Direct_imports_patched._n
call fcn.1003cfa0
add esp, 4
mov edx, dword [ebp - 0x28]
push edx
call fcn.1003f1b0
add esp, 4
movzx eax, al
test eax, eax
je 0x1003f908
push str.DumpProcess:_Warning___IAT_is_not_inside_the_PE_image__requires_rebasing._n
call fcn.1003cfa0
add esp, 4
push 0x104f33a8
lea ecx, [ebp - 0x184]
call fcn.1003ef00
xor ecx, ecx
je 0x1003f934
lea ecx, [ebp - 0x184]
call fcn.1004d670
push str.DumpProcess:_importRebuild:_OFT_support_enabled._n
call fcn.1003cfa0
add esp, 4
xor edx, edx
je 0x1003f95a
lea ecx, [ebp - 0xb4]
call fcn.10047e90
test eax, eax
jle 0x1003f95a
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 1
xor ecx, ecx
je 0x1003f97d
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.1004d690
lea edx, [ebp - 0x3fc]
push edx
push 0
lea ecx, [ebp - 0x184]
call fcn.1004c260
movzx eax, al
test eax, eax
je 0x1003fa1f
push str.DumpProcess:_Import_table_rebuild_success._n
call fcn.1003cfa0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
je 0x1003f9e6
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x34]
call fcn.100502c0
mov eax, 1
and eax, 1
je 0x1003f9de
push 0x50
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.10248e80
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x5c], edx
jmp 0x1003f9ed
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x74], 1
lea ecx, [ebp - 0x184]
call fcn.100502c0
lea ecx, [ebp - 0x3fc]
call fcn.1004e370
lea ecx, [ebp - 0xb4]
call fcn.1003ee10
mov eax, dword [ebp - 0x74]
jmp 0x1003fb1a
push str.DumpProcess:_Import_table_rebuild_failed__falling_back_to_unfixed_dump._n
call fcn.1003cfa0
add esp, 4
push 0
mov ecx, dword [ebp - 8]
call fcn.10051c70
lea ecx, [ebp - 0x184]
call fcn.100502c0
jmp 0x1003fa50
push str.DumpProcess:_Warning:_Unable_to_find_IAT_in_scan._n
call fcn.1003cfa0
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1003fa8d
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x38]
call fcn.100502c0
mov edx, 1
and edx, 1
je 0x1003fa85
push 0x50
mov eax, dword [ebp - 0x38]
push eax
call fcn.10248e80
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x60], ecx
jmp 0x1003fa94
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x78], 1
lea ecx, [ebp - 0x3fc]
call fcn.1004e370
lea ecx, [ebp - 0xb4]
call fcn.1003ee10
mov eax, dword [ebp - 0x78]
jmp 0x1003fb1a
mov edx, dword [ebp - 8]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
je 0x1003faf3
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x3c]
call fcn.100502c0
mov ecx, 1
and ecx, 1
je 0x1003faeb
push 0x50
mov edx, dword [ebp - 0x3c]
push edx
call fcn.10248e80
add esp, 8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
jmp 0x1003fafa
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x3fc]
call fcn.1004e370
lea ecx, [ebp - 0xb4]
call fcn.1003ee10
mov eax, dword [ebp - 0x7c]
mov esp, ebp
pop ebp
ret