Function at 0x42e386
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push dword [ebx + 0x28]
inc edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x42e3e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42e3b6
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42e3bd
mov esi, 0x80004005
push esi
push 0x202
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push edi
call fcn.00401225
push str.Failed_to_set_operation_complete_event.
push esi
push 0x100
push 5
push 0x202
jmp 0x42e7d8
push 0xffffffffffffffff
push dword [ebx + 0x24]
call fcn.0040174a
mov esi, eax
test esi, esi
jns 0x42e419
push str.Failed_to_wait_for_begin_operation_event.
push esi
push 0x100
push 5
push 0x207
push str.d:_awixwix_src_burnenginecabextract.cpp
call fcn.00401228
add esp, 0x18
jmp 0x42e7e4
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x42e46c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42e43d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42e444
mov esi, 0x80004005
push esi
push 0x20b
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push edi
call fcn.00401225
push str.Failed_to_reset_begin_operation_event.
push esi
push 0x100
push 5
push 0x20b
jmp 0x42e7d8
mov eax, dword [ebx + 0x2c]
sub eax, 1
je 0x42e4b2
sub eax, 4
je 0x42e4a8
mov eax, 0x8007139f
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push eax
push 0x219
push edi
mov esi, eax
call fcn.00401225
push str.Invalid_operation_for_this_state.
push esi
push 0x100
push 5
push 0x219
jmp 0x42e7d8
mov esi, 0x80004004
jmp 0x42e7e4
mov edi, dword [ebp + 0xc]
push 0xfde9
push 0
push dword [edi + 4]
push dword [ebx + 0x34]
call fcn.00402ec6
mov esi, eax
test esi, esi
jns 0x42e4f4
push dword [edi + 4]
push str.Failed_to_copy_stream_name:__hs
push esi
push 0x100
push 5
push 0x21e
push str.d:_awixwix_src_burnenginecabextract.cpp
call fcn.00401228
add esp, 0x1c
jmp 0x42e7e1
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x42e547
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42e518
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42e51f
mov esi, 0x80004005
push esi
push 0x223
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push edi
call fcn.00401225
push str.Failed_to_set_operation_complete_event.
push esi
push 0x100
push 5
push 0x223
jmp 0x42e7d8
push 0xffffffffffffffff
push dword [ebx + 0x24]
call fcn.0040174a
mov esi, eax
test esi, esi
jns 0x42e573
push str.Failed_to_wait_for_begin_operation_event.
push esi
push 0x100
push 5
push 0x228
push str.d:_awixwix_src_burnenginecabextract.cpp
jmp 0x42e7d9
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x42e5c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42e597
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42e59e
mov esi, 0x80004005
push esi
push 0x22c
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push edi
call fcn.00401225
push str.Failed_to_reset_begin_operation_event.
push esi
push 0x100
push 5
push 0x22c
jmp 0x42e7d8
mov eax, dword [ebx + 0x2c]
dec eax
sub eax, 1
je 0x42e66d
sub eax, 1
je 0x42e622
sub eax, 1
je 0x42e61b
sub eax, 1
je 0x42e611
mov eax, 0x8007139f
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push eax
push 0x262
push edi
mov esi, eax
call fcn.00401225
push str.Invalid_operation_for_this_state.
push esi
push 0x100
push 5
push 0x262
jmp 0x42e7d8
mov esi, 0x80004004
jmp 0x42e7e1
xor edi, edi
jmp 0x42e7e4
push 1
push dword [edi]
call fcn.0040540b
mov dword [ebx + 0x40], eax
test eax, eax
jne 0x42e65f
mov esi, 0x8007000e
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push esi
push 0x251
push edi
call fcn.00401225
push str.Failed_to_allocate_buffer_for_stream.
push esi
push 0x100
push 5
push 0x251
jmp 0x42e7d8
mov eax, dword [edi]
and dword [ebx + 0x48], 0
mov dword [ebx + 0x44], eax
jmp 0x42e7e1
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebx + 0x3c], ecx
cmp ecx, 0xffffffff
jne 0x42e6dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42e6a9
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42e6b0
mov esi, 0x80004005
push esi
push 0x237
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push edi
call fcn.00401225
push dword [ebx + 0x38]
push str.Failed_to_create_file:__ls
push esi
push 0x100
push 5
push 0x237
push edi
jmp 0x42e4e7
mov eax, dword [edi]
xor edi, edi
push edi
push edi
cdq
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42e736
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42e707
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42e70e
mov esi, 0x80004005
push esi
push 0x23e
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push edi
call fcn.00401225
push str.Failed_to_set_file_pointer_to_end_of_file.
push esi
push 0x100
push 5
push 0x23e
jmp 0x42e7d8
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42e786
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42e75a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42e761
mov esi, 0x80004005
push esi
push 0x243
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push edi
call fcn.00401225
push str.Failed_to_set_end_of_file.
push esi
push 0x100
push 5
push 0x243
jmp 0x42e7d8
push edi
push edi
push edi
push edi
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42e7e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42e7ae
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42e7b5
mov esi, 0x80004005
push esi
push 0x249
mov edi, str.d:_awixwix_src_burnenginecabextract.cpp
push edi
call fcn.00401225
push str.Failed_to_set_file_pointer_to_beginning_of_file.
push esi
push 0x100
push 5
push 0x249
push edi
call fcn.00401228
add esp, 0x18
xor edi, edi
inc edi
mov dword [ebx + 0x30], esi
test esi, esi
jns 0x42e7ee
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8