Function at 0x4228e5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
inc ebx
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x42293e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422915
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42291c
mov esi, 0x80004005
push esi
push 0x204
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_operation_complete_event.
push esi
call fcn.004453e7
pop ecx
pop ecx
jmp 0x422cb7
push 0xffffffffffffffff
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x422983
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422965
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42296c
mov esi, 0x80004005
push esi
push 0x20a
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_wait_for_begin_operation_event.
jmp 0x422931
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x4229c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4229a7
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4229ae
mov esi, 0x80004005
push esi
push 0x20f
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_reset_begin_operation_event.
jmp 0x422931
mov eax, dword [edi + 0x2c]
sub eax, 1
je 0x422a01
sub eax, 4
je 0x4229f7
mov ebx, 0x8007139f
push ebx
push 0x21d
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
mov esi, ebx
call fcn.004013b3
push str.Invalid_operation_for_this_state.
push ebx
jmp 0x422cad
mov esi, 0x80004004
jmp 0x422cb7
mov ebx, dword [ebp + 0xc]
push 0xfde9
push 0
push dword [ebx + 4]
push dword [edi + 0x34]
call fcn.00402c89
mov esi, eax
test esi, esi
jns 0x422a32
push dword [ebx + 4]
push str.Failed_to_copy_stream_name:__ls
push esi
call fcn.004453e7
add esp, 0xc
jmp 0x422cb4
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x422a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422a56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422a5d
mov esi, 0x80004005
push esi
push 0x227
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_operation_complete_event.
jmp 0x422cac
push 0xffffffffffffffff
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x422abf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422a9e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422aa5
mov esi, 0x80004005
push esi
push 0x22d
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_wait_for_begin_operation_event.
jmp 0x422cac
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x422b04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422ae3
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422aea
mov esi, 0x80004005
push esi
push 0x232
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_reset_begin_operation_event.
jmp 0x422cac
mov eax, dword [edi + 0x2c]
dec eax
sub eax, 1
je 0x422b7a
sub eax, 1
je 0x422b3d
sub eax, 1
je 0x422b36
sub eax, 1
je 0x422b2c
mov ebx, 0x8007139f
push ebx
push 0x268
jmp 0x4229e0
mov esi, 0x80004004
jmp 0x422cb4
xor ebx, ebx
jmp 0x422cb7
push 1
push dword [ebx]
call fcn.004050e9
mov dword [edi + 0x40], eax
test eax, eax
jne 0x422b6c
mov esi, 0x8007000e
push esi
push 0x257
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_allocate_buffer_for_stream.
jmp 0x422cac
mov eax, dword [ebx]
and dword [edi + 0x48], 0
mov dword [edi + 0x44], eax
jmp 0x422cb4
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [edi + 0x3c], ecx
cmp ecx, 0xffffffff
jne 0x422bda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422bb6
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422bbd
mov esi, 0x80004005
push esi
push 0x23d
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push dword [edi + 0x38]
push str.Failed_to_create_file:__ls
jmp 0x422a24
mov eax, dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
cdq
push edx
push eax
push ecx
call ebx
test eax, eax
jne 0x422c28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422c07
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422c0e
mov esi, 0x80004005
push esi
push 0x244
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_file_pointer_to_end_of_file.
jmp 0x422cac
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x422c6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422c4c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422c53
mov esi, 0x80004005
push esi
push 0x249
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_end_of_file.
jmp 0x422cac
xor eax, eax
push eax
push eax
push eax
push eax
push dword [edi + 0x3c]
call ebx
test eax, eax
jne 0x422cb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422c90
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422c97
mov esi, 0x80004005
push esi
push 0x24f
push str.c:_agent_work36_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_file_pointer_to_beginning_of_file.
push esi
call fcn.004453e7
pop ecx
pop ecx
xor ebx, ebx
inc ebx
mov dword [edi + 0x30], esi
test esi, esi
jns 0x422cc1
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8