Function at 0x140036e7c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x38]
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_SetEvent]
or r14, 0xffffffffffffffff
test eax, eax
jne 0x140036ef2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x202
movzx ebx, ax
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
or ebx, 0x80070000
mov edx, esi
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_set_operation_complete_event.
jmp 0x140037275
mov rcx, qword [rdi + 0x30]
or edx, 0xffffffff
call fcn.1400018f4
mov ebx, eax
test eax, eax
jns 0x140036f15
lea rax, str.Failed_to_wait_for_begin_operation_event.
mov edx, 0x207
jmp 0x140037277
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x140036f63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x20b
movzx ebx, ax
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
or ebx, 0x80070000
mov edx, esi
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_reset_begin_operation_event.
jmp 0x140037275
mov ecx, dword [rdi + 0x40]
sub ecx, ebp
je 0x140036fae
cmp ecx, 4
je 0x140036fa4
mov esi, 0x8007139f
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
mov r8d, esi
mov edx, 0x219
mov ebx, esi
call fcn.1400012b0
lea rax, str.Invalid_operation_for_this_state.
mov edx, 0x219
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
jmp 0x140037280
mov ebx, 0x80004004
jmp 0x140037298
mov rdx, qword [rsi + 8]
mov r9d, 0xfde9
mov rcx, qword [rdi + 0x48]
xor r8d, r8d
call fcn.1400037b4
mov ebx, eax
test eax, eax
jns 0x140037005
mov rax, qword [rsi + 8]
mov edx, 0x21e
mov qword [rsp + 0x30], rax
lea rax, str.Failed_to_copy_stream_name:__hs
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
mov r8d, 5
mov dword [rsp + 0x20], ebx
mov r9d, 0x100
call fcn.1400012b4
jmp 0x140037298
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x140037023
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x223
jmp 0x140036ebd
mov rcx, qword [rdi + 0x30]
or edx, 0xffffffff
call fcn.1400018f4
mov ebx, eax
test eax, eax
jns 0x140037046
lea rax, str.Failed_to_wait_for_begin_operation_event.
mov edx, 0x228
jmp 0x140037277
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x140037064
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x22c
jmp 0x140036f2e
mov ecx, dword [rdi + 0x40]
sub ecx, 2
je 0x140037104
sub ecx, ebp
je 0x1400370bc
sub ecx, ebp
je 0x1400370b5
cmp ecx, ebp
je 0x140036fa4
mov esi, 0x8007139f
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
mov r8d, esi
mov edx, 0x262
mov ebx, esi
call fcn.1400012b0
lea rax, str.Invalid_operation_for_this_state.
mov edx, 0x262
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
jmp 0x140037280
xor ebp, ebp
jmp 0x140037298
movsxd rcx, dword [rsi]
mov edx, ebp
call fcn.140006828
mov qword [rdi + 0x60], rax
test rax, rax
jne 0x1400370f6
mov ebx, 0x8007000e
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
mov esi, 0x251
mov r8d, ebx
mov edx, esi
call fcn.1400012b0
lea rax, str.Failed_to_allocate_buffer_for_stream.
jmp 0x140037275
mov eax, dword [rsi]
and dword [rdi + 0x6c], 0
mov dword [rdi + 0x68], eax
jmp 0x140037298
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rdi + 0x50]
mov r8d, ebp
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x58], rax
cmp rax, r14
jne 0x140037183
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov esi, 0x237
or ebx, 0x80070000
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
test eax, eax
mov edx, esi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
mov rax, qword [rdi + 0x50]
mov edx, esi
mov qword [rsp + 0x30], rax
lea rax, str.Failed_to_create_file:__ls
jmp 0x140036fdf
movsxd rdx, dword [rsi]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400371d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov esi, 0x23e
or ebx, 0x80070000
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
test eax, eax
mov edx, esi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_set_file_pointer_to_end_of_file.
jmp 0x140037275
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140037224
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov esi, 0x243
or ebx, 0x80070000
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
test eax, eax
mov edx, esi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_set_end_of_file.
jmp 0x140037275
mov rcx, qword [rdi + 0x58]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140037298
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov esi, 0x249
or ebx, 0x80070000
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
test eax, eax
mov edx, esi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_set_file_pointer_to_beginning_of_file.
mov edx, esi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, 0x100
lea rcx, str.d:_awixwix_src_burnenginecabextract.cpp
mov r8d, 5
call fcn.1400012b4
mov rsi, qword [rsp + 0x60]
test ebx, ebx
mov dword [rdi + 0x44], ebx
mov rbx, qword [rsp + 0x50]
cmovns r14, rbp
mov rbp, qword [rsp + 0x58]
mov rax, r14
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret