Function at 0x40725f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x4560d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push 0x40
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
push esi
push eax
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x168], esi
movlpd qword [ebp - 0x188], xmm0
call fcn.004267c0
push pe_nt_image_headers32
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.004267c0
or dword [ebx], 0xffffffff
add esp, 0x18
xor eax, eax
push 8
pop ecx
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], esi
lea edi, [ebp - 0x15c]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x170], esi
call fcn.00431c19
mov esi, eax
test esi, esi
jns 0x4072fe
push str.Failed_to_get_path_to_engine_process.
push esi
jmp 0x4079f1
xor esi, esi
push esi
push 0x80
push 3
push esi
push 5
push SysReAllocString
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x407367
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x48
push str.section.cpp
call fcn.004300d9
push dword [ebp - 0x16c]
push str.Failed_to_open_handle_to_engine_process_path:__ls
push esi
call fcn.00430a57
add esp, 0xc
jmp 0x4079f8
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push esi
push esi
push esi
push esi
push eax
call edi
test eax, eax
jne 0x4073ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x4f
push str.section.cpp
call fcn.004300d9
push str.Failed_to_seek_to_start_of_file.
jmp 0x4072f8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x168]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x4073fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x55
push str.section.cpp
call fcn.004300d9
push str.Failed_to_read_DOS_header.
jmp 0x4072f8
cmp dword [ebp - 0x168], 0x40
jb 0x4079d7
mov eax, 0x5a4d
cmp ax, word [ebp - 0x44]
jne 0x4079d7
mov eax, dword [ebp - 8]
push 0
cdq
push 0
push edx
push eax
push dword [ebx]
call edi
test eax, eax
jne 0x407461
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x65
push str.section.cpp
call fcn.004300d9
push str.Failed_to_seek_to_NT_header.
jmp 0x4072f8
push 0
lea eax, [ebp - 0x168]
push eax
push 0x18
lea eax, [ebp - 0x13c]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x4074b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x6b
push str.section.cpp
call fcn.004300d9
push str.Failed_to_read_NT_header.
jmp 0x4072f8
cmp dword [ebp - 0x168], 0x18
jb 0x4079bc
cmp dword [ebp - 0x13c], 0x4550
jne 0x4079bc
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x58]
mov dword [ebp - 0x18c], ecx
xor ecx, ecx
push ecx
push ecx
add eax, 0x98
push ecx
push eax
push dword [ebx]
mov dword [ebp - 0x190], eax
call edi
test eax, eax
jne 0x407527
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x7b
push str.section.cpp
call fcn.004300d9
push str.Failed_to_seek_to_section_info.
jmp 0x4072f8
push 0
lea eax, [ebp - 0x168]
push eax
push 4
lea eax, [ebp - 0x17c]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x407579
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x80
push str.section.cpp
call fcn.004300d9
push str.Failed_to_read_signature_offset.
jmp 0x4072f8
push 0
lea eax, [ebp - 0x168]
push eax
push 4
lea eax, [ebp - 0x178]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x4075cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x85
push str.section.cpp
call fcn.004300d9
push str.Failed_to_read_signature_size.
jmp 0x4072f8
movzx ecx, word [ebp - 0x128]
mov eax, dword [ebp - 8]
add eax, 0x18
add eax, ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push dword [ebx]
call edi
test eax, eax
jne 0x407620
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x90
push str.section.cpp
call fcn.004300d9
push str.Failed_to_seek_past_optional_headers.
jmp 0x4072f8
xor edi, edi
push edi
lea eax, [ebp - 0x168]
push eax
push 0x28
lea eax, [ebp - 0x164]
push eax
push dword [ebx]
mov dword [ebp - 0x180], edi
call esi
test eax, eax
je 0x407983
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x168], 0x28
jb 0x40795b
lea eax, [ebp - 0x164]
cmp dword [eax], 0x7869772e
jne 0x40766c
cmp dword [eax + 4], 0x6e727562
je 0x4076af
movzx eax, word [ebp - 0x136]
cmp ecx, eax
jae 0x40791e
push 0
lea eax, [ebp - 0x168]
push eax
push 0x28
lea eax, [ebp - 0x164]
push eax
push dword [ebx]
inc edi
inc ecx
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x174], ecx
call esi
test eax, eax
je 0x407983
mov ecx, dword [ebp - 0x174]
jmp 0x407648
cmp dword [ebp - 0x154], 0x34
jae 0x4076df
mov edi, 0x8007000d
push edi
push 0xb8
push str.section.cpp
mov esi, edi
call fcn.004300d9
push dword [ebp - 0x154]
push str.Failed_to_read_section_info__data_to_short:__u
jmp 0x40797d
push 1
push dword [ebp - 0x154]
call fcn.00431078
mov edi, eax
mov dword [ebp - 0x170], edi
test edi, edi
jne 0x40771a
mov ebx, 0x8007000e
push ebx
push 0xbd
push str.section.cpp
mov esi, ebx
call fcn.004300d9
push str.Failed_to_allocate_buffer_for_section_info.
push ebx
jmp 0x4079f1
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x150]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40776f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xc3
push str.section.cpp
call fcn.004300d9
push str.Failed_to_seek_to_section_info.
push esi
call fcn.00430a57
jmp 0x407946
mov eax, dword [ebp - 0x150]
add eax, 0x1c
push 0
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x154]
push edi
push dword [ebx]
call esi
test eax, eax
jne 0x4077cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xcc
push str.section.cpp
call fcn.004300d9
push str.Failed_to_read_section_info.
jmp 0x407764
mov eax, dword [ebp - 0x154]
cmp eax, dword [ebp - 0x168]
jbe 0x4077fa
mov edi, 0x8007000d
push edi
push 0xd1
push str.section.cpp
mov esi, edi
call fcn.004300d9
push str.Failed_to_read_complete_section_info.
jmp 0x40793a
cmp dword [edi + 4], 2
je 0x407839
mov edi, 0x8007000d
push edi
push 0xd8
push str.section.cpp
mov esi, edi
call fcn.004300d9
mov eax, dword [ebp - 0x170]
push dword [eax + 4]
push str.Failed_to_read_section_info__unsupported_version:__08x
push edi
call fcn.00430a57
mov edi, dword [ebp - 0x170]
add esp, 0xc
jmp 0x407948
lea eax, [ebp - 0x188]
push eax
push dword [ebx]
call fcn.004370a5
mov esi, eax
test esi, esi
jns 0x407857
push str.Failed_to_get_total_size_of_bundle.
jmp 0x407764
mov edx, dword [edi + 0x18]
mov dword [ebx + 4], edx
cmp dword [edi + 0x20], 0
je 0x40786b
mov eax, dword [edi + 0x24]
add eax, dword [edi + 0x20]
jmp 0x407884
mov ecx, dword [ebp - 0x17c]
test ecx, ecx
je 0x40787f
mov eax, dword [ebp - 0x178]
add eax, ecx
jmp 0x407884
mov eax, dword [edi + 0x30]
add eax, edx
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x188]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x184]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x190]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x174]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x34], eax
push 1
shl eax, 2
push eax
call fcn.00431078
mov ecx, eax
mov dword [ebx + 0x38], ecx
test ecx, ecx
jne 0x407908
mov ebx, 0x8007000e
push ebx
push 0xfb
push str.section.cpp
mov esi, ebx
call fcn.004300d9
push str.Failed_to_allocate_memory_for_container_sizes.
push ebx
jmp 0x407765
mov eax, dword [ebx + 0x34]
shl eax, 2
push eax
lea eax, [edi + 0x30]
push eax
push ecx
call fcn.004270c0
add esp, 0xc
jmp 0x407948
mov edi, 0x8007000d
push edi
push 0xac
push str.section.cpp
mov esi, edi
call fcn.004300d9
push str.Failed_to_find_Burn_section.
push edi
call fcn.00430a57
mov edi, dword [ebp - 0x170]
pop ecx
pop ecx
test edi, edi
je 0x4079f8
push edi
call fcn.00431137
jmp 0x4079f8
mov edi, 0x8007000d
push edi
push 0x9e
push str.section.cpp
mov esi, edi
call fcn.004300d9
push dword [ebp - 0x180]
push str.Failed_to_read_complete_image_section_header__index:__u
push edi
jmp 0x40735a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x99
push str.section.cpp
call fcn.004300d9
push edi
push str.Failed_to_read_image_section_header__index:__u
jmp 0x407359
mov edi, 0x8007000d
push edi
push 0x70
push str.section.cpp
mov esi, edi
call fcn.004300d9
push str.Failed_to_find_valid_NT_image_header_in_buffer.
jmp 0x4079f0
mov edi, 0x8007000d
push edi
push 0x5a
push str.section.cpp
mov esi, edi
call fcn.004300d9
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push edi
call fcn.00430a57
pop ecx
pop ecx
cmp dword [ebp - 0x16c], 0
je 0x407a0c
push dword [ebp - 0x16c]
call fcn.004380ab
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004267af
leave
ret 4