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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1e0
mov rax, qword [0x1400b6018]
xor rax, rsp
mov qword [rbp + 0xd0], rax
xor ebx, ebx
mov rdi, r8
mov r15, rdx
mov dword [rsp + 0x40], ebx
mov rsi, rcx
mov qword [rsp + 0x50], rbx
xor edx, edx
lea rcx, [rbp - 0x80]
lea r12d, [rbx + 0x40]
mov r8d, r12d
call fcn.1400547d0
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x108
call fcn.1400547d0
xor edx, edx
mov dword [rsp + 0x44], ebx
lea r8d, [rbx + 0x28]
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x58]
call fcn.1400547d0
mov qword [rsi], r15
mov r14d, ebx
cmp r15, 0xffffffffffffffff
jne 0x140010312
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
lea ebx, [r14 + 0x33]
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_open_handle_to_engine_process_path.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
jmp 0x140010b53
cmp rdi, 0xffffffffffffffff
mov rdx, rbx
mov rcx, r15
cmove rdi, r15
xor r9d, r9d
xor r8d, r8d
mov qword [rsi + 8], rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140010371
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov ebx, 0x3c
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_seek_to_start_of_file.
jmp 0x140010304
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, r12d
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400103cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov ebx, 0x42
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_read_DOS_header.
jmp 0x140010304
cmp dword [rsp + 0x40], r12d
jb 0x140010b26
mov eax, 0x5a4d
cmp ax, word [rbp - 0x80]
jne 0x140010b26
movsxd rdx, dword [rbp - 0x44]
xor r9d, r9d
mov rcx, qword [rsi]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140010440
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov ebx, 0x52
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_seek_to_NT_header.
jmp 0x140010304
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, 0x18
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400104a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov ebx, 0x58
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_read_NT_header.
jmp 0x140010304
cmp dword [rsp + 0x40], 0x18
jb 0x140010b00
cmp dword [rbp - 0x40], 0x4550
jne 0x140010b00
mov eax, dword [rbp - 0x44]
xor r9d, r9d
mov rcx, qword [rsi]
xor r8d, r8d
lea r12d, [rax + 0xa8]
mov edx, r12d
lea r13d, [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14001051d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov ebx, 0x68
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_seek_to_section_info.
jmp 0x140010304
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
mov edi, 4
mov qword [rsp + 0x20], rbx
mov r8d, edi
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140010581
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov ebx, 0x6d
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_read_signature_offset.
jmp 0x140010304
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, edi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400105e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov ebx, 0x72
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_read_signature_size.
jmp 0x140010304
movsxd rcx, dword [rbp - 0x44]
xor r9d, r9d
movzx edx, word [rbp - 0x2c]
add rcx, 0x18
add rdx, rcx
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140010642
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov ebx, 0x7d
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_seek_past_optional_headers.
jmp 0x140010304
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, 0x28
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x58]
mov r15d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400106bc
mov edi, 1
cmp dword [rsp + 0x40], 0x28
jb 0x140010ab2
mov rax, qword [rsp + 0x58]
cmp rax, qword [0x140085158]
je 0x140010749
movzx eax, word [rbp - 0x3a]
cmp edi, eax
jae 0x140010722
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, 0x28
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x58]
inc r15d
inc edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001066c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov ebx, 0x86
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, ebx
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_read_image_section_header__index:__u
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 0x7a]
mov r8d, 5
mov dword [rsp + 0x20], edi
mov edx, ebx
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
call fcn.1400012b4
jmp 0x140010b6d
mov esi, 0x8007000d
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov edi, 0x97
mov r8d, esi
mov edx, edi
call fcn.1400012b0
lea rax, str.Failed_to_find_Burn_section.
jmp 0x1400108a9
cmp dword [rsp + 0x68], 0x34
jae 0x14001077f
mov esi, 0x8007000d
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov ebx, 0xa2
mov r8d, esi
mov edx, ebx
call fcn.1400012b0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
lea rax, str.Failed_to_read_section_info__data_too_short:__u
jmp 0x140010ad9
mov ecx, dword [rsp + 0x68]
mov edx, 1
call fcn.140006828
mov r14, rax
test rax, rax
jne 0x1400107be
mov esi, 0x8007000e
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov ebx, 0xa7
mov r8d, esi
mov edx, ebx
mov edi, esi
call fcn.1400012b0
lea rax, str.Failed_to_allocate_buffer_for_section_info.
jmp 0x140010b4a
mov edx, dword [rsp + 0x6c]
xor r9d, r9d
mov rcx, qword [rsi]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140010815
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov esi, 0xad
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, esi
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_seek_to_section_info.
jmp 0x140010a79
mov r15d, dword [rsp + 0x6c]
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x68]
mov rdx, r14
mov rcx, qword [rsi]
add r15, 0x1c
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001087d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov esi, 0xb6
or edi, 0x80070000
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
test eax, eax
mov edx, esi
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov r8d, edi
call fcn.1400012b0
lea rax, str.Failed_to_read_section_info.
jmp 0x140010a79
mov eax, dword [rsp + 0x68]
cmp eax, dword [rsp + 0x40]
jbe 0x1400108d3
mov esi, 0x8007000d
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov edi, 0xba
mov r8d, esi
mov edx, edi
call fcn.1400012b0
lea rax, str.Failed_to_read_complete_section_info.
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov r9d, 0x100
mov dword [rsp + 0x20], esi
mov r8d, 5
mov edx, edi
call fcn.1400012b4
mov edi, esi
jmp 0x140010a9c
cmp dword [r14 + 4], 2
je 0x140010929
mov esi, 0x8007000d
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov edi, 0xc0
mov r8d, esi
mov edx, edi
call fcn.1400012b0
mov eax, dword [r14 + 4]
mov dword [rsp + 0x30], eax
lea rax, str.Failed_to_read_section_info__unsupported_version:__08x
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov r9d, 0x100
mov dword [rsp + 0x20], esi
mov r8d, 5
mov edx, edi
call fcn.1400012b4
jmp 0x1400108cc
sub rax, 0x30
shr rax, 2
cmp eax, dword [r14 + 0x2c]
jae 0x140010963
mov esi, 0x8007000d
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov edi, 0xc6
mov r8d, esi
mov edx, edi
call fcn.1400012b0
mov eax, dword [r14 + 0x2c]
mov dword [rsp + 0x30], eax
lea rax, str.Invalid_section_info__cContainers_too_large:__u
jmp 0x140010904
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x50]
call fcn.1400730a0
mov edi, eax
test eax, eax
jns 0x140010988
lea rax, str.Failed_to_get_total_size_of_bundle.
mov edx, 0xca
jmp 0x140010a7b
mov edx, dword [r14 + 0x18]
mov dword [rsi + 0x10], edx
mov ecx, dword [r14 + 0x20]
test ecx, ecx
je 0x14001099d
add ecx, dword [r14 + 0x24]
jmp 0x1400109b1
mov ecx, dword [rsp + 0x44]
test ecx, ecx
je 0x1400109ab
add ecx, dword [rsp + 0x48]
jmp 0x1400109b1
mov ecx, dword [r14 + 0x30]
add ecx, edx
mov dword [rsi + 0x14], ecx
mov edx, 1
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x20], r13d
mov dword [rsi + 0x24], r12d
mov qword [rsi + 0x28], r15
mov eax, dword [r14 + 0x1c]
mov dword [rsi + 0x30], eax
mov eax, dword [r14 + 0x20]
mov dword [rsi + 0x34], eax
mov eax, dword [r14 + 0x24]
mov dword [rsi + 0x38], eax
mov eax, dword [r14 + 0x28]
mov dword [rsi + 0x3c], eax
mov eax, dword [r14 + 0x2c]
mov ecx, eax
mov dword [rsi + 0x40], eax
shl rcx, 2
call fcn.140006828
mov qword [rsi + 0x48], rax
test rax, rax
jne 0x140010a39
mov esi, 0x8007000e
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov r15d, 0xe9
mov r8d, esi
mov edx, r15d
mov edi, esi
call fcn.1400012b0
lea rax, str.Failed_to_allocate_memory_for_container_sizes.
mov edx, r15d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
jmp 0x140010a84
mov r8d, dword [rsi + 0x40]
lea rdx, [r14 + 0x30]
shl r8, 2
mov rcx, rax
call fcn.140054b90
lea rcx, [r14 + 8]
call fcn.14000fecc
mov edi, eax
test eax, eax
jns 0x140010a9c
mov esi, 0xef
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov edx, esi
mov r8d, eax
call fcn.1400012b0
lea rax, str.PE_Header_from_file_didnt_match_PE_Header_in_memory.
mov edx, esi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, 0x100
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov r8d, 5
call fcn.1400012b4
test r14, r14
je 0x140010b6d
mov rcx, r14
call fcn.140006a48
jmp 0x140010b6d
mov esi, 0x8007000d
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov ebx, 0x8a
mov r8d, esi
mov edx, ebx
call fcn.1400012b0
lea rax, str.Failed_to_read_complete_image_section_header__index:__u
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov r9d, 0x100
mov dword [rsp + 0x20], esi
mov r8d, 5
mov edx, ebx
call fcn.1400012b4
mov edi, esi
jmp 0x140010b6d
mov esi, 0x8007000d
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov ebx, 0x5d
mov r8d, esi
mov edx, ebx
mov edi, esi
call fcn.1400012b0
lea rax, str.Failed_to_find_valid_NT_image_header_in_buffer.
jmp 0x140010b4a
mov esi, 0x8007000d
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov ebx, 0x47
mov r8d, esi
mov edx, ebx
mov edi, esi
call fcn.1400012b0
lea rax, str.Failed_to_find_valid_DOS_image_header_in_buffer.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9d, 0x100
lea rcx, str.d:_awixwix_src_burnengine_section.cpp
mov r8d, 5
mov edx, ebx
call fcn.1400012b4
mov eax, edi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140053b50
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret