Function at 0x420bcf
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 0x420c28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420bff
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420c06
mov esi, 0x80004005
push esi
push 0x204
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_set_operation_complete_event.
push esi
call fcn.00440657
pop ecx
pop ecx
jmp 0x420fa1
push 0xffffffffffffffff
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x420c6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420c4f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420c56
mov esi, 0x80004005
push esi
push 0x20a
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_wait_for_begin_operation_event.
jmp 0x420c1b
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x420cb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420c91
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420c98
mov esi, 0x80004005
push esi
push 0x20f
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_reset_begin_operation_event.
jmp 0x420c1b
mov eax, dword [edi + 0x2c]
sub eax, 1
je 0x420ceb
sub eax, 4
je 0x420ce1
mov ebx, 0x8007139f
push ebx
push 0x21d
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
mov esi, ebx
call fcn.004038f5
push str.Invalid_operation_for_this_state.
push ebx
jmp 0x420f97
mov esi, 0x80004004
jmp 0x420fa1
mov ebx, dword [ebp + 0xc]
push 0xfde9
push 0
push dword [ebx + 4]
push dword [edi + 0x34]
call fcn.004022e0
mov esi, eax
test esi, esi
jns 0x420d1c
push dword [ebx + 4]
push str.Failed_to_copy_stream_name:__ls
push esi
call fcn.00440657
add esp, 0xc
jmp 0x420f9e
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x420d61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420d40
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420d47
mov esi, 0x80004005
push esi
push 0x227
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_set_operation_complete_event.
jmp 0x420f96
push 0xffffffffffffffff
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x420da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420d88
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420d8f
mov esi, 0x80004005
push esi
push 0x22d
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_wait_for_begin_operation_event.
jmp 0x420f96
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x420dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420dcd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420dd4
mov esi, 0x80004005
push esi
push 0x232
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_reset_begin_operation_event.
jmp 0x420f96
mov eax, dword [edi + 0x2c]
dec eax
sub eax, 1
je 0x420e64
sub eax, 1
je 0x420e27
sub eax, 1
je 0x420e20
sub eax, 1
je 0x420e16
mov ebx, 0x8007139f
push ebx
push 0x268
jmp 0x420cca
mov esi, 0x80004004
jmp 0x420f9e
xor ebx, ebx
jmp 0x420fa1
push 1
push dword [ebx]
call fcn.00403a1a
mov dword [edi + 0x40], eax
test eax, eax
jne 0x420e56
mov esi, 0x8007000e
push esi
push 0x257
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_allocate_buffer_for_stream.
jmp 0x420f96
mov eax, dword [ebx]
and dword [edi + 0x48], 0
mov dword [edi + 0x44], eax
jmp 0x420f9e
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 0x420ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420ea0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420ea7
mov esi, 0x80004005
push esi
push 0x23d
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push dword [edi + 0x38]
push str.Failed_to_create_file:__ls
jmp 0x420d0e
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 0x420f12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420ef1
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420ef8
mov esi, 0x80004005
push esi
push 0x244
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_set_file_pointer_to_end_of_file.
jmp 0x420f96
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x420f54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420f36
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420f3d
mov esi, 0x80004005
push esi
push 0x249
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_set_end_of_file.
jmp 0x420f96
xor eax, eax
push eax
push eax
push eax
push eax
push dword [edi + 0x3c]
call ebx
test eax, eax
jne 0x420f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420f7a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x420f81
mov esi, 0x80004005
push esi
push 0x24f
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_set_file_pointer_to_beginning_of_file.
push esi
call fcn.00440657
pop ecx
pop ecx
xor ebx, ebx
inc ebx
mov dword [edi + 0x30], esi
test esi, esi
jns 0x420fab
or ebx, 0xffffffff
pop edi
pop esi
invalid