Function at 0x14005f3d0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x1400945f8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov dword [rsp + 0x244], 0
mov dword [rsp + 0x15c], 0
mov rax, qword [rsp + 0x2f0]
cmp dword [rax + 0xc4], 0
jl 0x14005f44c
mov rax, qword [rsp + 0x2f0]
movsxd rax, dword [rax + 0xc4]
mov rcx, qword [rsp + 0x2f0]
mov rcx, qword [rcx + rax*8 + 0x60]
call fcn.14004acd0
mov dword [rsp + 0x15c], 1
mov dword [rsp + 0x158], 1
xor edx, edx
mov rcx, qword [rsp + 0x2f8]
call fcn.14004e880
mov rdx, rax
mov rax, qword [rsp + 0x2f0]
movsxd rcx, dword [rax + 0xc4]
mov rax, qword [rsp + 0x2f0]
mov qword [rax + rcx*8 + 0x60], rdx
mov rax, qword [rsp + 0x2f0]
movsxd rcx, dword [rax + 0xc4]
mov rax, qword [rsp + 0x2f0]
cmp qword [rax + rcx*8 + 0x60], 0
je 0x14005f4fc
mov rax, qword [rsp + 0x2f0]
movsxd rax, dword [rax + 0xc4]
mov r9d, 0x81
lea r8, [0x140081a40]
xor edx, edx
mov rcx, qword [rsp + 0x2f0]
mov rcx, qword [rcx + rax*8 + 0x60]
call fcn.14004e090
mov dword [rsp + 0x158], eax
mov rax, qword [rsp + 0x2f0]
movsxd rax, dword [rax + 0xc4]
mov rcx, qword [rsp + 0x2f0]
mov rcx, qword [rcx + rax*8 + 0x60]
call fcn.14004acd0
mov byte [rsp + 0x160], 0
lea rdi, [rsp + 0x161]
xor eax, eax
mov ecx, 0x63
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2f8]
movsx r8d, byte [rax]
lea rdx, str._c:_srvany.exe
lea rcx, [rsp + 0x160]
call fcn.140025b64
lea r9, [rsp + 0x160]
lea r8, [0x140081804]
mov edx, 0x98
mov rcx, qword [rsp + 0x2f0]
call fcn.14005c240
mov byte [rsp + 0x240], al
movzx eax, byte [rsp + 0x240]
test eax, eax
je 0x14005f57a
lea rax, [0x140081a60]
mov qword [rsp + 0x2c8], rax
jmp 0x14005f589
lea rax, [0x140081a68]
mov qword [rsp + 0x2c8], rax
mov r8, qword [rsp + 0x2c8]
lea rdx, str.ExtractFile11_return__s_n
lea rcx, [0x1400a5fd0]
call fcn.140048c60
mov r8d, 0x64
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.1400258a0
mov rdx, qword [rsp + 0x2f8]
movsx r8d, byte [rdx]
lea rdx, str._c:_sc.exe
lea rcx, [rsp + 0x160]
call fcn.140025b64
lea r9, [rsp + 0x160]
lea r8, [0x140081a9c]
mov edx, 0xa2
mov rcx, qword [rsp + 0x2f0]
call fcn.14005c240
mov byte [rsp + 0x240], al
mov r8d, 0x64
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.1400258a0
mov rdx, qword [rsp + 0x2f8]
movsx r8d, byte [rdx]
lea rdx, str._c:winbypass.exe
lea rcx, [rsp + 0x160]
call fcn.140025b64
mov rax, qword [rsp + 0x2f0]
movzx eax, byte [rax + 0xbc]
test eax, eax
je 0x14005f673
lea r9, [rsp + 0x160]
lea r8, [0x140081abc]
mov edx, 0xa7
mov rcx, qword [rsp + 0x2f0]
call fcn.14005c240
mov byte [rsp + 0x240], al
jmp 0x14005f69b
lea r9, [rsp + 0x160]
lea r8, [0x140081ac4]
mov edx, 0xa6
mov rcx, qword [rsp + 0x2f0]
call fcn.14005c240
mov byte [rsp + 0x240], al
mov byte [rsp + 0x1d0], 0
lea rdi, [rsp + 0x1d1]
xor eax, eax
mov ecx, 0x63
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2f8]
movsx r8d, byte [rax]
lea rdx, [0x140081ad0]
lea rcx, [rsp + 0x1d0]
call fcn.140025b64
mov byte [rsp + 0x50], 0
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2f8]
movsx r8d, byte [rax]
lea rdx, str._c:patch.bat
lea rcx, [rsp + 0x50]
call fcn.140025b64
lea rdx, [0x140079abc]
lea rcx, [rsp + 0x50]
call fcn.140026708
mov qword [rsp + 0x150], rax
movsx edi, byte [rsp + 0x300]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r8, qword [rsp + 0x150]
lea rdx, str._PatchSystem__fopen_return__p__err:0x_x__samdrive:_c__sys:_s_n
lea rcx, [0x1400a5fd0]
call fcn.140048c60
cmp qword [rsp + 0x150], 0
je 0x14005f8eb
movsx edx, byte [rsp + 0x300]
mov rax, qword [rsp + 0x2f8]
movsx ecx, byte [rax]
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x1d0]
mov r8, qword [rsp + 0x2f8]
lea rdx, str.reg_load_HKLMAddUser_SYSTEM__s______s_2_1__n_c:_sc_create_winbypass_Type_own_Start_auto_depend_SamSs_Binpath__c:_srvany.exe_Obj_LocalSystem_displayname_winbypass_group_MS_WindowsLocalValidation_____s_2_1__n
mov rcx, qword [rsp + 0x150]
call fcn.140026714
mov byte [rsp + 0x250], 0
lea rdi, [rsp + 0x251]
xor eax, eax
mov ecx, 0x63
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2f8]
movsx r8d, byte [rax]
lea rdx, str._c:clean.log
lea rcx, [rsp + 0x250]
call fcn.140025b64
lea rdx, [0x140079c9c]
lea rcx, [rsp + 0x250]
call fcn.140026708
mov qword [rsp + 0x2c0], rax
mov rcx, qword [rsp + 0x2c0]
call fcn.140026f24
movsx r8d, byte [rsp + 0x300]
lea r9, [rsp + 0x1d0]
lea rdx, str.reg_add_HKLMSYSTEMCurrentControlSet_serviceswinbypassParameters__v_Application__t_REG_SZ__d___c:winbypass.exe____f______s_2_1__n
mov rcx, qword [rsp + 0x150]
call fcn.140026714
lea rdx, [rsp + 0x1d0]
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x250]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1d0]
mov r8d, dword [rsp + 0x158]
lea rdx, str.reg_copy_HKLMSYSTEMCurrentControlSet_serviceswinbypass_HKLMAddUser_SYSTEMControlSet_03d_serviceswinbypass__s__f______s_2_1__nreg_unload_HKLMAddUser_SYSTEM______s_2_1__ndel__s_______s_2_1
mov rcx, qword [rsp + 0x150]
call fcn.140026714
mov rcx, qword [rsp + 0x150]
call fcn.140026f24
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x2f0]
call fcn.14005c3a0
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14005f8e0
lea r8, [rsp + 0x250]
lea rdx, str._PathFileExists22__s__n
lea rcx, [0x1400a5fd0]
call fcn.140048c60
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005f8a6
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [rsp + 0x15c], 0
je 0x14005f923
xor edx, edx
mov rcx, qword [rsp + 0x2f8]
call fcn.14004e880
mov rdx, rax
mov rax, qword [rsp + 0x2f0]
movsxd rcx, dword [rax + 0xc4]
mov rax, qword [rsp + 0x2f0]
mov qword [rax + rcx*8 + 0x60], rdx
mov eax, dword [rsp + 0x244]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400252b0
add rsp, 0x2e0
pop rdi
ret