Function at 0x424200
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x324], eax
mov eax, dword [ebp + 0x10]
push 0x20a
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x32c], esi
call fcn.0040f160
push 0x105
xor ebx, ebx
lea eax, [ebp - 0x318]
push ebx
push eax
xor edi, edi
call fcn.0040f160
mov eax, dword [ebp - 0x324]
add esp, 0x18
mov ecx, dword [ebp - 0x320]
test esi, esi
je 0x42473e
test eax, eax
je 0x42473e
test ecx, ecx
je 0x42473e
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push esi
push str._s._d
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004159a0
add esp, 0x14
cmp eax, 0x104
ja 0x424715
push 0x4a79cc
push esi
call fcn.0047c47c
add esp, 8
mov dword [ebp - 0x31c], eax
test eax, eax
jne 0x42435e
push eax
push esi
call fcn.0047cb07
add esp, 8
push esi
cmp eax, 0xffffffff
jne 0x4242fb
push str.RemoveBlockFromFile:_File_does_not_exist:__S
push 4
call fcn.004439a0
add esp, 0xc
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.RemoveBlockFromFile:_Unable_to_open_specified_file:__S
push 1
call fcn.004439a0
push 2
push esi
call fcn.0047cb07
add esp, 0x14
cmp eax, 0xffffffff
jne 0x424327
push esi
push str.RemoveBlockFromFile:_Lack_write_permission:__S
push 1
call fcn.004439a0
add esp, 0xc
push 4
push esi
call fcn.0047cb07
add esp, 8
cmp eax, 0xffffffff
jne 0x424750
push esi
push str.RemoveBlockFromFile:_Lack_read_permission:__S
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
push str.RemoveBlockFromFile:_opened_file__S_for_read
push 0x10
call fcn.004439a0
lea eax, [ebp - 0x210]
push 0x4a7f14
push eax
call fcn.0047c47c
add esp, 0x14
mov dword [ebp - 0x328], eax
test eax, eax
lea eax, [ebp - 0x210]
push eax
jne 0x424453
push str.Unable_to_open_the__S_file
push 1
call fcn.004439a0
push dword [ebp - 0x31c]
call fcn.0040e7b7
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0047cb07
add esp, 0x18
cmp eax, 0xffffffff
lea eax, [ebp - 0x210]
jne 0x4243ea
push eax
push str.RemoveBlockFromFile:_File_does_not_exist:__S
push 4
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 2
push eax
call fcn.0047cb07
add esp, 8
cmp eax, 0xffffffff
jne 0x424410
lea eax, [ebp - 0x210]
push eax
push str.RemoveBlockFromFile:_Lack_write_permission:__S
push 1
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0x210]
push 4
push eax
call fcn.0047cb07
add esp, 8
cmp eax, 0xffffffff
jne 0x424750
lea eax, [ebp - 0x210]
push eax
push str.RemoveBlockFromFile:_Lack_read_permission:__S
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.RemoveBlockFromFile:_opened_file__S_for_write
push 0x10
call fcn.004439a0
push dword [ebp - 0x31c]
lea eax, [ebp - 0x318]
push 0x105
push eax
call fcn.0047c558
add esp, 0x18
test eax, eax
je 0x4245a5
mov esi, dword [ebp - 0x31c]
mov eax, edi
sub eax, 0
je 0x4244ef
sub eax, 1
je 0x424520
sub eax, 1
je 0x4244b1
push edi
push str.RemoveBlockFromFile:_Internal_error:_state__d_not_implemented
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x424582
mov ecx, 0x4a7f68
lea eax, [ebp - 0x318]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4244e0
test dl, dl
je 0x4244dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4244e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4244c0
xor eax, eax
jmp 0x4244e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x424582
xor edi, edi
mov ecx, dword [ebp - 0x324]
lea eax, [ebp - 0x318]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42455f
test dl, dl
je 0x42451c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42455f
add eax, 2
add ecx, 2
test dl, dl
jne 0x424500
xor eax, eax
jmp 0x424564
mov ecx, dword [ebp - 0x320]
lea eax, [ebp - 0x318]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x424550
test dl, dl
je 0x42454c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x424550
add eax, 2
add ecx, 2
test dl, dl
jne 0x424530
xor eax, eax
jmp 0x424555
sbb eax, eax
or eax, 1
test eax, eax
jne 0x424582
inc ebx
lea edi, [eax + 2]
jmp 0x424582
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42456d
lea edi, [eax + 1]
jmp 0x424582
push dword [ebp - 0x328]
lea eax, [ebp - 0x318]
push eax
call fcn.0047c62a
add esp, 8
push esi
lea eax, [ebp - 0x318]
push 0x105
push eax
call fcn.0047c558
add esp, 0xc
test eax, eax
jne 0x424487
mov esi, dword [ebp - 0x32c]
push dword [ebp - 0x328]
call fcn.0040e7b7
add esp, 4
test eax, eax
jns 0x4245cd
lea eax, [ebp - 0x210]
push eax
push str.RemoveBlockFromFile:_Unable_to_close_the___S__file_n
push 1
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x31c]
call fcn.0040e7b7
add esp, 4
test eax, eax
jns 0x4245ef
push esi
push str.RemoveBlockFromFile:_Unable_to_close_the___S__file_n
push 1
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0x210]
test ebx, ebx
jne 0x424653
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea eax, [ebp - 0x210]
push eax
jne 0x42462e
push str.RemoveBlockFromFile:_No_changes__unable_to_delete_temp_file:__S
push 1
call fcn.004439a0
add esp, 0xc
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.RemoveBlockFromFile:_No_changes__deleted_temp_file:__S
push 2
call fcn.004439a0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4246e8
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.004439a0
add esp, 0x14
lea eax, [ebp - 0x210]
push 5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4246c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RemoveBlockFromFile:_rename_at_reboot_failed:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.RemoveBlockFromFile:_rename_at_reboot_success
push 2
call fcn.004439a0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
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.004439a0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
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.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push ecx
push eax
push esi
push str.RemoveBlockFromFile:_invalid_parameters:_0x_08x_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret