Function at 0x10040190
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.1003fcc0
lea ecx, [ebp - 0x3fc]
call fcn.1004f270
mov eax, dword [ebp + 8]
push eax
call fcn.1003ff00
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
push str.DumpProcess:_Instantiating_PeParser_with_address:_0x_p._n
call fcn.1003def0
add esp, 8
push 0x50
call fcn.1024a241
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x1004020a
push 1
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.10051160
mov dword [ebp - 0x48], eax
jmp 0x10040211
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.10051470
movzx edx, al
test edx, edx
je 0x1004032f
cmp dword [ebp + 0x10], 0
je 0x1004023e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x10040249
mov ecx, dword [ebp - 8]
call fcn.10051550
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
call fcn.10052740
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x40]
jb 0x10040276
mov edx, dword [ebp - 4]
push edx
push 0x103084ec
call fcn.1003def0
add esp, 8
mov dword [ebp - 4], 0
jmp 0x10040290
mov eax, dword [ebp - 4]
push eax
push 0x103085b0
call fcn.1003def0
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
je 0x100402e5
push 0x103085e0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
call fcn.100542d0
movzx ecx, al
test ecx, ecx
je 0x100402cd
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
push 0x104f4ee0
push 0x103085f0
call fcn.1003def0
add esp, 0xc
jmp 0x100402e3
mov ecx, dword [ebp + 0xc]
push ecx
push 0x10308630
call fcn.1003def0
add esp, 8
jmp 0x10040a26
jmp 0x1004032a
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
call fcn.100542d0
movzx ecx, al
test ecx, ecx
je 0x10040314
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
push 0x1030865c
call fcn.1003def0
add esp, 8
jmp 0x1004032a
mov ecx, dword [ebp + 0xc]
push ecx
push 0x10308698
call fcn.1003def0
add esp, 8
jmp 0x10040a26
jmp 0x100406c2
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10039ee0
add esp, 4
test eax, eax
je 0x10040353
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x10040369
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx], 0x4550
je 0x100406b0
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.1003def0
add esp, 8
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1007a7a0
add esp, 8
test eax, eax
jne 0x100403a7
mov eax, dword [ebp + 0xc]
push eax
push str.DumpProcess:_unable_to_query_memory_address_0x_p
call fcn.1003f670
add esp, 8
jmp 0x10040a26
push 1
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.1025b1a3
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.1024bbe0
add esp, 0xc
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x3c], 0
jne 0x10040441
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 0x1004042f
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp eax, 0x14c
je 0x10040410
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x8664
jne 0x10040424
mov eax, dword [ebp - 0xc]
add eax, 3
cmp dword [ebp - 0x18], eax
jbe 0x10040424
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 0x100403e7
cmp dword [ebp - 0x10], 0
je 0x10040441
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 0x1004052e
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 0x1004052e
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
cmp eax, 0x14c
je 0x10040488
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x8664
jne 0x1004049c
mov eax, dword [ebp - 0xc]
add eax, 4
cmp dword [ebp - 0x1c], eax
jb 0x1004049c
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 0x10040529
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x10040529
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x54], 0
je 0x10040529
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.1024bbe0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.1024b810
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.1003def0
add esp, 0x10
jmp 0x1004045b
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x1004056b
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x30]
call fcn.10051220
mov eax, 1
and eax, 1
je 0x10040563
push 0x50
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.1024a210
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
jmp 0x10040572
mov dword [ebp - 0x4c], 0
push 0x50
call fcn.1024a241
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x10040598
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.100510a0
mov dword [ebp - 0x54], eax
jmp 0x1004059f
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.10051470
movzx eax, al
test eax, eax
je 0x100406ae
cmp dword [ebp + 0x10], 0
je 0x100405cc
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
jmp 0x100405d7
mov ecx, dword [ebp - 8]
call fcn.10051550
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
call fcn.10052740
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x40]
jb 0x10040604
mov eax, dword [ebp - 4]
push eax
push str.DumpProcess:_Error___entry_point_too_big:_0x_x__ignoring._n
call fcn.1003def0
add esp, 8
mov dword [ebp - 4], 0
jmp 0x1004061e
mov ecx, dword [ebp - 4]
push ecx
push str.DumpProcess:_Module_entry_point_VA_is_0x_p._n
call fcn.1003def0
add esp, 8
mov edx, dword [ebp - 4]
add edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x1004066e
push 0x103087ec
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.100542d0
movzx edx, al
test edx, edx
je 0x1004065b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
push 0x104f4ee0
push str.DumpProcess:_Module_image_dump_success__s___dump_size_0x_x._n
call fcn.1003def0
add esp, 0xc
jmp 0x1004066c
mov edx, dword [ebp + 0xc]
push edx
push 0x1030883c
call fcn.1003def0
add esp, 8
jmp 0x100406ae
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.100542d0
movzx edx, al
test edx, edx
je 0x1004069d
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.1003def0
add esp, 8
jmp 0x100406ae
mov edx, dword [ebp + 0xc]
push edx
push str.DumpProcess:_Failed_to_dump_image_at_0x_p._n
call fcn.1003def0
add esp, 8
jmp 0x100406c2
push str.DumpProcess:_Invalid_PE_file_or_invalid_PE_header._n
call fcn.1003def0
add esp, 4
jmp 0x10040a26
cmp dword [ebp + 0x14], 0
je 0x100409c0
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.1004b760
movzx eax, al
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x10040710
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.1004b760
movzx ecx, al
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x28], 0
je 0x100409b3
cmp dword [ebp - 0x24], 0
je 0x100409b3
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.1003def0
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.10042f10
lea ecx, [ebp - 0x3fc]
call fcn.1004f300
xor ecx, ecx
je 0x10040858
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 [0x104f4fe8]
push edx
mov eax, dword [0x104f4fec]
push eax
lea ecx, [ebp - 0xb4]
call fcn.100490e0
lea ecx, [ebp - 0xb4]
call fcn.10048e30
push eax
lea ecx, [ebp - 0xb4]
call fcn.10048e00
push eax
push str.DumpProcess:_Direct_imports___Found__d_possible_direct_imports_with__d_unique_APIs
call fcn.1003def0
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.10048e00
test eax, eax
jle 0x10040858
lea ecx, [ebp - 0xb4]
call fcn.10048f80
test eax, eax
jle 0x10040828
lea ecx, [ebp - 0xb4]
call fcn.10048f80
push eax
push str.DumpProcess:_Direct_imports___Found__d_additional_api_addresses
call fcn.1003def0
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.1004a380
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.1003def0
add esp, 0xc
lea ecx, [ebp - 0x3fc]
call fcn.1004f300
lea ecx, [ebp - 0xb4]
call fcn.10049950
xor eax, eax
je 0x10040858
mov byte [ebp - 0x11], 1
movzx ecx, byte [ebp - 0x11]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.100491d0
push str.DumpProcess:_Direct_imports_patched._n
call fcn.1003def0
add esp, 4
mov edx, dword [ebp - 0x28]
push edx
call fcn.10040120
add esp, 4
movzx eax, al
test eax, eax
je 0x10040878
push str.DumpProcess:_Warning___IAT_is_not_inside_the_PE_image__requires_rebasing._n
call fcn.1003def0
add esp, 4
push 0x104f4ee0
lea ecx, [ebp - 0x184]
call fcn.1003fe70
xor ecx, ecx
je 0x100408a4
lea ecx, [ebp - 0x184]
call fcn.1004e5e0
push str.DumpProcess:_importRebuild:_OFT_support_enabled._n
call fcn.1003def0
add esp, 4
xor edx, edx
je 0x100408ca
lea ecx, [ebp - 0xb4]
call fcn.10048e00
test eax, eax
jle 0x100408ca
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 1
xor ecx, ecx
je 0x100408ed
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.1004e600
lea edx, [ebp - 0x3fc]
push edx
push 0
lea ecx, [ebp - 0x184]
call fcn.1004d1d0
movzx eax, al
test eax, eax
je 0x1004098f
push str.DumpProcess:_Import_table_rebuild_success._n
call fcn.1003def0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
je 0x10040956
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x34]
call fcn.10051220
mov eax, 1
and eax, 1
je 0x1004094e
push 0x50
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.1024a210
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x5c], edx
jmp 0x1004095d
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x74], 1
lea ecx, [ebp - 0x184]
call fcn.10051220
lea ecx, [ebp - 0x3fc]
call fcn.1004f2e0
lea ecx, [ebp - 0xb4]
call fcn.1003fd80
mov eax, dword [ebp - 0x74]
jmp 0x10040a8a
push str.DumpProcess:_Import_table_rebuild_failed__falling_back_to_unfixed_dump._n
call fcn.1003def0
add esp, 4
push 0
mov ecx, dword [ebp - 8]
call fcn.10052bd0
lea ecx, [ebp - 0x184]
call fcn.10051220
jmp 0x100409c0
push str.DumpProcess:_Warning:_Unable_to_find_IAT_in_scan._n
call fcn.1003def0
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x100409fd
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x38]
call fcn.10051220
mov edx, 1
and edx, 1
je 0x100409f5
push 0x50
mov eax, dword [ebp - 0x38]
push eax
call fcn.1024a210
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x60], ecx
jmp 0x10040a04
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x78], 1
lea ecx, [ebp - 0x3fc]
call fcn.1004f2e0
lea ecx, [ebp - 0xb4]
call fcn.1003fd80
mov eax, dword [ebp - 0x78]
jmp 0x10040a8a
mov edx, dword [ebp - 8]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
je 0x10040a63
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x3c]
call fcn.10051220
mov ecx, 1
and ecx, 1
je 0x10040a5b
push 0x50
mov edx, dword [ebp - 0x3c]
push edx
call fcn.1024a210
add esp, 8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
jmp 0x10040a6a
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x3fc]
call fcn.1004f2e0
lea ecx, [ebp - 0xb4]
call fcn.1003fd80
mov eax, dword [ebp - 0x7c]
mov esp, ebp
pop ebp
ret