Function at 0x42a9f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x20a
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x328], ebx
call fcn.00411960
xor edi, edi
lea eax, [ebp - 0x318]
push 0x105
push edi
push eax
mov dword [ebp - 0x320], edi
call fcn.00411960
mov eax, dword [ebp - 0x31c]
add esp, 0x18
test esi, esi
je 0x42af5d
test ebx, ebx
je 0x42af5d
test eax, eax
je 0x42af5d
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push esi
push str._s._d
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00419510
add esp, 0x14
cmp eax, 0x104
ja 0x42af34
push 0x4b219c
push esi
lfence
call fcn.00484910
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42ab4b
push eax
push esi
call fcn.00484fcf
add esp, 8
push esi
cmp eax, 0xffffffff
jne 0x42aae8
push str.RemoveBlockFromFile:_File_does_not_exist:__S
push 4
call fcn.00446b80
add esp, 0xc
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push str.RemoveBlockFromFile:_Unable_to_open_specified_file:__S
push 1
call fcn.00446b80
push 2
push esi
call fcn.00484fcf
add esp, 0x14
cmp eax, 0xffffffff
jne 0x42ab14
push esi
push str.RemoveBlockFromFile:_Lack_write_permission:__S
push 1
call fcn.00446b80
add esp, 0xc
push 4
push esi
call fcn.00484fcf
add esp, 8
cmp eax, 0xffffffff
jne 0x42af6f
push esi
push str.RemoveBlockFromFile:_Lack_read_permission:__S
push 1
call fcn.00446b80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
push str.RemoveBlockFromFile:_opened_file__S_for_read
push 0x10
call fcn.00446b80
lea eax, [ebp - 0x210]
push 0x4b2744
push eax
call fcn.00484910
add esp, 0x14
mov dword [ebp - 0x324], eax
test eax, eax
lea eax, [ebp - 0x210]
push eax
jne 0x42ac3b
push str.Unable_to_open_the__S_file
push 1
call fcn.00446b80
push ebx
call fcn.00410e4c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00484fcf
add esp, 0x18
cmp eax, 0xffffffff
lea eax, [ebp - 0x210]
jne 0x42abd2
push eax
push str.RemoveBlockFromFile:_File_does_not_exist:__S
push 4
call fcn.00446b80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push 2
push eax
call fcn.00484fcf
add esp, 8
cmp eax, 0xffffffff
jne 0x42abf8
lea eax, [ebp - 0x210]
push eax
push str.RemoveBlockFromFile:_Lack_write_permission:__S
push 1
call fcn.00446b80
add esp, 0xc
lea eax, [ebp - 0x210]
push 4
push eax
call fcn.00484fcf
add esp, 8
cmp eax, 0xffffffff
jne 0x42af6f
lea eax, [ebp - 0x210]
push eax
push str.RemoveBlockFromFile:_Lack_read_permission:__S
push 1
call fcn.00446b80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push str.RemoveBlockFromFile:_opened_file__S_for_write
push 0x10
lfence
call fcn.00446b80
push ebx
lea eax, [ebp - 0x318]
push 0x105
push eax
call fcn.004849f9
add esp, 0x18
test eax, eax
je 0x42ad94
mov esi, dword [ebp - 0x324]
nop dword [eax]
mov eax, edi
sub eax, 0
je 0x42acd4
sub eax, 1
je 0x42ad00
sub eax, 1
je 0x42ac9a
push edi
push str.RemoveBlockFromFile:_Internal_error:_state__d_not_implemented
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x42ad71
mov ecx, 0x4b2798
lea eax, [ebp - 0x318]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42acc5
test dl, dl
je 0x42acc1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42acc5
add eax, 2
add ecx, 2
test dl, dl
jne 0x42aca5
xor eax, eax
jmp 0x42acca
sbb eax, eax
or eax, 1
test eax, eax
je 0x42ad71
xor edi, edi
mov ecx, dword [ebp - 0x328]
lea eax, [ebp - 0x318]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42ad53
test dl, dl
je 0x42acfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42ad53
add eax, 2
add ecx, 2
test dl, dl
jne 0x42ace0
xor eax, eax
jmp 0x42ad58
mov ecx, dword [ebp - 0x31c]
lea eax, [ebp - 0x318]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42ad30
test dl, dl
je 0x42ad2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42ad30
add eax, 2
add ecx, 2
test dl, dl
jne 0x42ad10
xor ecx, ecx
jmp 0x42ad35
sbb ecx, ecx
or ecx, 1
mov edx, dword [ebp - 0x320]
test ecx, ecx
mov eax, 2
cmove edi, eax
lea eax, [edx + 1]
cmovne eax, edx
mov dword [ebp - 0x320], eax
jmp 0x42ad71
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42ad61
lea edi, [eax + 1]
jmp 0x42ad71
lea eax, [ebp - 0x318]
push esi
push eax
call fcn.00484bc3
add esp, 8
push ebx
lea eax, [ebp - 0x318]
push 0x105
push eax
call fcn.004849f9
add esp, 0xc
test eax, eax
jne 0x42ac70
mov esi, dword [ebp - 0x32c]
push dword [ebp - 0x324]
call fcn.00410e4c
add esp, 4
test eax, eax
jns 0x42adbc
lea eax, [ebp - 0x210]
push eax
push str.RemoveBlockFromFile:_Unable_to_close_the___S__file_n
push 1
call fcn.00446b80
add esp, 0xc
push ebx
call fcn.00410e4c
add esp, 4
test eax, eax
jns 0x42addc
push esi
push str.RemoveBlockFromFile:_Unable_to_close_the___S__file_n
push 1
lfence
call fcn.00446b80
add esp, 0xc
cmp dword [ebp - 0x320], 0
lea eax, [ebp - 0x210]
jne 0x42ae6c
push eax
call fcn.0041a410
add esp, 4
test eax, eax
lea eax, [ebp - 0x210]
push eax
je 0x42ae25
push str.RemoveBlockFromFile:_This_file_is_a_symlink_to_some_other_file__so_cannot_delete:__S
push 1
call fcn.00446b80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42ae3b
mov eax, 1
mov ecx, str.RemoveBlockFromFile:_No_changes__unable_to_delete_temp_file:__S
jmp 0x42ae45
mov eax, 2
mov ecx, str.RemoveBlockFromFile:_No_changes__deleted_temp_file:__S
lea edx, [ebp - 0x210]
push edx
push ecx
push eax
call fcn.00446b80
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push 1
push esi
push eax
lfence
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lfence
test eax, eax
jne 0x42af07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
push str.RemoveBlockFromFile:_unable_to_rename_the_file:_0x_08x__S__S
push 1
call fcn.00446b80
add esp, 0x14
lea eax, [ebp - 0x210]
push 5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x42aee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RemoveBlockFromFile:_rename_at_reboot_failed:_0x_08x
push 1
call fcn.00446b80
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push str.RemoveBlockFromFile:_rename_at_reboot_success
push 2
call fcn.00446b80
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x210]
push eax
push str.RemoveBlockFromFile:_renamed_file__S_into__S
push 0x10
call fcn.00446b80
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push esi
push str.RemoveBlockFromFile:_unable_to_build_the__S._d_file_name
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push eax
push ebx
push esi
push str.RemoveBlockFromFile:_invalid_parameters:_0x_08x_0x_08x_0x_08x
push 1
call fcn.00446b80
add esp, 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret