Function at 0x422817
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 0x422870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422847
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42284e
mov esi, 0x80004005
push esi
push 0x204
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_operation_complete_event.
push esi
call fcn.0044534a
pop ecx
pop ecx
jmp 0x422be9
push 0xffffffffffffffff
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4228b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422897
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42289e
mov esi, 0x80004005
push esi
push 0x20a
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_wait_for_begin_operation_event.
jmp 0x422863
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x4228fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4228d9
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4228e0
mov esi, 0x80004005
push esi
push 0x20f
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_reset_begin_operation_event.
jmp 0x422863
mov eax, dword [edi + 0x2c]
sub eax, 1
je 0x422933
sub eax, 4
je 0x422929
mov ebx, 0x8007139f
push ebx
push 0x21d
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
mov esi, ebx
call fcn.004013b3
push str.Invalid_operation_for_this_state.
push ebx
jmp 0x422bdf
mov esi, 0x80004004
jmp 0x422be9
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 0x422964
push dword [ebx + 4]
push str.Failed_to_copy_stream_name:__ls
push esi
call fcn.0044534a
add esp, 0xc
jmp 0x422be6
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4229a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422988
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42298f
mov esi, 0x80004005
push esi
push 0x227
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_operation_complete_event.
jmp 0x422bde
push 0xffffffffffffffff
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4229f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4229d0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4229d7
mov esi, 0x80004005
push esi
push 0x22d
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_wait_for_begin_operation_event.
jmp 0x422bde
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x422a36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422a15
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422a1c
mov esi, 0x80004005
push esi
push 0x232
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_reset_begin_operation_event.
jmp 0x422bde
mov eax, dword [edi + 0x2c]
dec eax
sub eax, 1
je 0x422aac
sub eax, 1
je 0x422a6f
sub eax, 1
je 0x422a68
sub eax, 1
je 0x422a5e
mov ebx, 0x8007139f
push ebx
push 0x268
jmp 0x422912
mov esi, 0x80004004
jmp 0x422be6
xor ebx, ebx
jmp 0x422be9
push 1
push dword [ebx]
call fcn.004050e9
mov dword [edi + 0x40], eax
test eax, eax
jne 0x422a9e
mov esi, 0x8007000e
push esi
push 0x257
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_allocate_buffer_for_stream.
jmp 0x422bde
mov eax, dword [ebx]
and dword [edi + 0x48], 0
mov dword [edi + 0x44], eax
jmp 0x422be6
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 0x422b0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422ae8
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422aef
mov esi, 0x80004005
push esi
push 0x23d
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push dword [edi + 0x38]
push str.Failed_to_create_file:__ls
jmp 0x422956
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 0x422b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422b39
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422b40
mov esi, 0x80004005
push esi
push 0x244
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_file_pointer_to_end_of_file.
jmp 0x422bde
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x422b9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422b7e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422b85
mov esi, 0x80004005
push esi
push 0x249
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_end_of_file.
jmp 0x422bde
xor eax, eax
push eax
push eax
push eax
push eax
push dword [edi + 0x3c]
call ebx
test eax, eax
jne 0x422be6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x422bc2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x422bc9
mov esi, 0x80004005
push esi
push 0x24f
push str.c:_agent_work35_swix_src_burnenginecabextract.cpp
call fcn.004013b3
push str.Failed_to_set_file_pointer_to_beginning_of_file.
push esi
call fcn.0044534a
pop ecx
pop ecx
xor ebx, ebx
inc ebx
mov dword [edi + 0x30], esi
test esi, esi
jns 0x422bf3
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8