Function at 0x421784
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 0x4217dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4217b4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4217bb
mov esi, 0x80004005
push esi
push 0x204
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_set_operation_complete_event.
push esi
call fcn.0044466b
pop ecx
pop ecx
jmp 0x421b56
push 0xffffffffffffffff
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x421822
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421804
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42180b
mov esi, 0x80004005
push esi
push 0x20a
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_wait_for_begin_operation_event.
jmp 0x4217d0
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x421867
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421846
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42184d
mov esi, 0x80004005
push esi
push 0x20f
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_reset_begin_operation_event.
jmp 0x4217d0
mov eax, dword [edi + 0x2c]
sub eax, 1
je 0x4218a0
sub eax, 4
je 0x421896
mov ebx, 0x8007139f
push ebx
push 0x21d
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
mov esi, ebx
call fcn.00403953
push str.Invalid_operation_for_this_state.
push ebx
jmp 0x421b4c
mov esi, 0x80004004
jmp 0x421b56
mov ebx, dword [ebp + 0xc]
push 0xfde9
push 0
push dword [ebx + 4]
push dword [edi + 0x34]
call fcn.0040232c
mov esi, eax
test esi, esi
jns 0x4218d1
push dword [ebx + 4]
push str.Failed_to_copy_stream_name:__ls
push esi
call fcn.0044466b
add esp, 0xc
jmp 0x421b53
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x421916
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4218f5
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4218fc
mov esi, 0x80004005
push esi
push 0x227
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_set_operation_complete_event.
jmp 0x421b4b
push 0xffffffffffffffff
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x42195e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42193d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421944
mov esi, 0x80004005
push esi
push 0x22d
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_wait_for_begin_operation_event.
jmp 0x421b4b
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x4219a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421982
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421989
mov esi, 0x80004005
push esi
push 0x232
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_reset_begin_operation_event.
jmp 0x421b4b
mov eax, dword [edi + 0x2c]
dec eax
sub eax, 1
je 0x421a19
sub eax, 1
je 0x4219dc
sub eax, 1
je 0x4219d5
sub eax, 1
je 0x4219cb
mov ebx, 0x8007139f
push ebx
push 0x268
jmp 0x42187f
mov esi, 0x80004004
jmp 0x421b53
xor ebx, ebx
jmp 0x421b56
push 1
push dword [ebx]
call fcn.00403a78
mov dword [edi + 0x40], eax
test eax, eax
jne 0x421a0b
mov esi, 0x8007000e
push esi
push 0x257
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_allocate_buffer_for_stream.
jmp 0x421b4b
mov eax, dword [ebx]
and dword [edi + 0x48], 0
mov dword [edi + 0x44], eax
jmp 0x421b53
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 0x421a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421a55
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421a5c
mov esi, 0x80004005
push esi
push 0x23d
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push dword [edi + 0x38]
push str.Failed_to_create_file:__ls
jmp 0x4218c3
mov eax, dword [ebx]
xor ebx, ebx
push ebx
push ebx
cdq
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x421ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421aa4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421aab
mov esi, 0x80004005
push esi
push 0x244
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_set_file_pointer_to_end_of_file.
jmp 0x421b4b
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x421b07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421ae9
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421af0
mov esi, 0x80004005
push esi
push 0x249
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_set_end_of_file.
jmp 0x421b4b
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x421b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421b2f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421b36
mov esi, 0x80004005
push esi
push 0x24f
push str.c:_agent_work18_swix_src_burnenginecabextract.cpp
call fcn.00403953
push str.Failed_to_set_file_pointer_to_beginning_of_file.
push esi
call fcn.0044466b
pop ecx
pop ecx
xor ebx, ebx
inc ebx
mov dword [edi + 0x30], esi
test esi, esi
jns 0x421b60
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8