Function at 0x180021500
Capabilities:
Delete file
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5e8]
sub rsp, 0x6d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r12, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov byte [rbp + 0x70], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x71]
call fcn.180043ef0
mov byte [rbp + 0x3a0], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x3a1]
call fcn.180043ef0
mov byte [rsp + 0x60], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x61]
call fcn.180043ef0
mov byte [rbp + 0x290], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x291]
call fcn.180043ef0
mov byte [rbp + 0x180], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x181]
call fcn.180043ef0
mov byte [rbp + 0x4b0], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x4b1]
call fcn.180043ef0
call fcn.180002e10
mov r8, rax
lea r9, [0x1800d8278]
lea rdx, [0x1800d1c4c]
lea rcx, [rbp + 0x70]
call fcn.180043b88
call fcn.180002e10
mov r8, rax
lea r9, str.bakwdgsvr.sys
lea rdx, [0x1800d1c4c]
lea rcx, [rbp + 0x3a0]
call fcn.180043b88
call fcn.180003900
mov r8, rax
lea r9, [0x1800d8288]
lea rdx, [0x1800d1c4c]
lea rcx, [rsp + 0x60]
call fcn.180043b88
call fcn.180003900
mov r8, rax
lea r9, str.winrdgv3.dat
lea rdx, [0x1800d1c4c]
lea rcx, [rbp + 0x290]
call fcn.180043b88
call fcn.180003900
mov r8, rax
lea r9, str.winrdgv3.dat
lea rdx, [0x1800d9678]
lea rcx, [rbp + 0x180]
call fcn.180043b88
call fcn.180003900
mov r8, rax
lea r9, str.winwdgsvr.exe
lea rdx, [0x1800d1c4c]
lea rcx, [rbp + 0x4b0]
call fcn.180043b88
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x18013f354]
test ecx, ecx
je 0x1800216c1
cmp eax, ecx
jb 0x1800216c1
add ecx, 0xea60
cmp eax, ecx
jbe 0x180021ae5
cmp dword [0x1801340b0], esi
je 0x1800216e8
lea r9, str.CheckStartupFiles_1
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov dword [rsp + 0x40], esi
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x70]
call fcn.18001f770
mov edi, dword [rsp + 0x40]
cmp dword [0x1801340b0], esi
je 0x180021734
mov dword [rsp + 0x20], edi
lea r9, str.CheckStartupFiles_2___d_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
test edi, edi
jne 0x18002178d
call fcn.180036ec0
test eax, eax
je 0x18002178d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.18002be20
mov rbx, rax
mov dword [rsp + 0x40], 1
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18002be20
nop
mov esi, 3
mov dword [rsp + 0x40], esi
mov r8, qword [rbx]
mov rdx, qword [rax]
lea rcx, [0x180133b60]
call fcn.1800072b0
test eax, eax
je 0x18002178d
mov bl, 1
jmp 0x18002178f
xor bl, bl
test sil, 2
je 0x1800217a7
and esi, 0xfffffffd
mov dword [rsp + 0x40], esi
lea rcx, [rsp + 0x48]
call fcn.180029530
nop
test sil, 1
je 0x1800217b7
lea rcx, [rsp + 0x50]
call fcn.180029530
or rsi, 0xffffffffffffffff
test bl, bl
cmovne edi, esi
cmp dword [0x1801340b0], 0
je 0x1800217ea
mov dword [rsp + 0x20], edi
lea r9, str.CheckStartupFiles_2_2___d_
lea r8, str.WatchDog
lea edx, [rsi + 0x10]
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov dword [rsp + 0x44], 0
test edi, edi
jne 0x18002180f
lea r8, [rsp + 0x44]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.18001c000
test eax, eax
jne 0x180021ab1
cmp dword [0x1801340b0], 0
je 0x180021837
lea r9, str.CheckStartupFiles_3
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov rcx, qword [0x1801179e8]
cmp rcx, 0xffffffffffffffff
je 0x180021851
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1801179e8], rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x70]
call fcn.180015b00
test eax, eax
jne 0x1800219f6
cmp dword [0x1801340b0], eax
je 0x18002188f
lea r9, str.CheckStartupFiles_4
lea r8, str.WatchDog
lea edx, [rax + 0xf]
lea rcx, [0x180133ff8]
call fcn.18001ab50
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x1801340b0], 0
je 0x1800218c4
lea r9, str.CheckStartupFiles_5
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
lea rdx, [rbp + 0x290]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x180021a2a
cmp dword [0x1801340b0], 0
je 0x180021906
lea r9, str.CheckStartupFiles_6
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x70]
call fcn.180015b00
test eax, eax
je 0x180021954
cmp dword [0x1801340b0], 0
je 0x180021943
lea r9, str.CheckStartupFiles_7
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov dword [r12 + 0x80], 1
jmp 0x180021a2a
call fcn.180036d30
test eax, eax
je 0x180021a2a
cmp dword [0x1801340b0], 0
je 0x180021989
lea r9, str.CheckStartupFiles_8
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
xor r8d, r8d
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x70]
call fcn.180015b00
test eax, eax
je 0x180021a2a
cmp dword [0x1801340b0], 0
je 0x1800219cc
lea r9, str.CheckStartupFiles_9
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov r8d, 5
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp dword [0x1801340b0], 0
je 0x180021a52
lea r9, str.CheckStartupFiles_10
jmp 0x180021a12
mov dword [r12 + 0x80], 1
cmp dword [0x1801340b0], 0
je 0x180021a52
lea r9, str.CheckStartupFiles_11
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
cmp dword [0x1801340b0], 0
je 0x180021a52
lea r9, str.CheckStartupFiles_12
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x1801179e8], rax
cmp dword [0x1801340b0], 0
je 0x180021ab1
lea r9, str.CheckStartupFiles_13
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x18013f354], eax
cmp dword [0x1801340b0], 0
je 0x180021ae5
lea r9, str.CheckStartupFiles_14
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.180043ec0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret