Function at 0x180019bd0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Create process on windows
Get common file path
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x700], rbx
mov rax, qword [0x1801003f0]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov r13d, edx
mov dword [rsp + 0x5c], edx
mov rbx, rcx
xor edi, edi
mov esi, edi
lea rcx, [rsp + 0x70]
call fcn.1800108f0
nop
lea rdx, str.songxia_zd
lea rcx, [rsp + 0x50]
call fcn.180021640
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180010ca0
cmp dword [rbp - 0x58], 0xf0000001
jne 0x180019c5b
lea rcx, [rsp + 0x70]
call fcn.180010c60
mov esi, eax
lea rcx, [rsp + 0x70]
call fcn.1800107f0
lea rcx, [rsp + 0x70]
call fcn.1800108f0
nop
lea rdx, str.server_speedup
lea rcx, [rsp + 0x50]
call fcn.180021640
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180010ca0
cmp dword [rbp - 0x58], 0xf0000001
jne 0x180019ca6
lea rcx, [rsp + 0x70]
call fcn.180010c60
or esi, eax
lea rcx, [rsp + 0x70]
call fcn.1800107f0
test esi, esi
je 0x180019ce9
test r13d, r13d
jne 0x180019ce9
cmp dword [0x1801161a0], r13d
je 0x18001abbd
lea r9, str.CMonitorThread::RestoreFiles_1
lea r8, str.SXDebug
lea edx, [r13 + 0xf]
lea rcx, [0x1801160e8]
call fcn.180011c50
jmp 0x18001abbd
cmp dword [rbx + 0x58], 0
je 0x18001abbd
mov r14d, 1
cmp dword [rbx + 0x8c], 0
jne 0x180019d15
mov rcx, rbx
call fcn.180018460
test eax, eax
je 0x180019d15
mov dword [rbx + 0x8c], r14d
mov r15d, edi
test r13d, r13d
je 0x180019d22
mov r15d, r14d
jmp 0x180019d3f
cmp dword [rbx + 0x90], r15d
je 0x180019d3f
cmp dword [rbx + 0x8c], r15d
jne 0x180019d3f
call fcn.1800136c0
test eax, eax
cmovne r15d, r14d
cmp dword [0x1801161a0], 0
je 0x180019d85
mov dword [rsp + 0x38], r15d
mov eax, dword [rbx + 0x8c]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r13d
lea r9, str.CMonitorThread::RestoreFiles_1_1___d____d____d____d_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov esi, edi
cmp dword [rbx + 0x90], edi
je 0x180019de2
lea rcx, [rsp + 0x70]
call fcn.1800108f0
nop
lea rdx, str.watchdog_updatefile_firstcheck
lea rcx, [rsp + 0x50]
call fcn.180021640
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180010ca0
cmp dword [rbp - 0x58], 0xf0000001
jne 0x180019dd6
lea rcx, [rsp + 0x70]
call fcn.180010c60
cmp eax, 1
mov esi, r14d
je 0x180019dd8
mov esi, edi
lea rcx, [rsp + 0x70]
call fcn.1800107f0
cmp dword [rbx + 0x90], 0
jne 0x180019e44
test r15d, r15d
jne 0x180019e44
call fcn.180013850
test eax, eax
je 0x180019e44
mov r15d, 2
cmp dword [0x1801161a0], 0
je 0x180019e44
mov dword [rsp + 0x38], r15d
mov eax, dword [rbx + 0x8c]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r13d
lea r9, str.CMonitorThread::RestoreFiles_1_1_1___d____d____d____d_
lea r8, str.WatchDog
lea edx, [r15 + 0xd]
lea rcx, [0x1801160e8]
call fcn.180011c50
test esi, esi
jne 0x180019ec3
test r13d, r13d
jne 0x180019ec3
test r15d, r15d
jne 0x180019ec3
cmp dword [rbx + 0x90], r15d
je 0x180019e66
mov dword [rbx + 0x90], edi
jmp 0x18001abbd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
cmp dword [rbx + 0x8c], 0
je 0x180019ec3
mov eax, dword [rbx + 0x94]
cmp r11d, eax
jb 0x180019ec3
add eax, 0x493e0
cmp r11d, eax
jae 0x180019ec3
cmp dword [0x1801161a0], 0
je 0x18001abbd
mov dword [rsp + 0x20], r11d
lea r9, str.CMonitorThread::RestoreFiles_1_1_2___d_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
jmp 0x18001abbd
lea rcx, [rsp + 0x70]
call fcn.1800108f0
nop
lea rdx, str.watchdog_updatefile_OnlyCheckKeyPE
lea rcx, [rsp + 0x50]
call fcn.180021640
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180010ca0
cmp dword [rbp - 0x58], 0xf0000001
jne 0x180019f0a
lea rcx, [rsp + 0x70]
call fcn.180010c60
cmp eax, 1
mov r12d, r14d
je 0x180019f0d
mov r12d, edi
lea rcx, [rsp + 0x70]
call fcn.1800107f0
cmp dword [0x1801161a0], 0
je 0x180019f6c
mov dword [rsp + 0x20], r12d
lea r9, str.CMonitorThread::RestoreFiles_1_2___d_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
cmp dword [0x1801161a0], 0
je 0x180019f6c
lea r9, str.CMonitorThread::RestoreFiles_1
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
call fcn.18002c4c0
test eax, eax
je 0x180019fa0
lea rdx, str.winhadnt.dll
mov rcx, qword [str.winhadnt.dll]
call fcn.18003987c
lea rcx, str.bakhadntv.sys
test eax, eax
cmovne rcx, qword [str.bakhadnt.sys]
mov qword [str.bakhadnt.sys], rcx
mov esi, 5
cmp dword [0x1801211f8], 0
jne 0x18001a047
mov dword [0x1801211f8], r14d
lea rcx, [rsp + 0x70]
call fcn.1800108f0
nop
lea rdx, str.phah_cycle_lengthen
lea rcx, [rsp + 0x50]
call fcn.180021640
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180010ca0
lea rcx, [rsp + 0x70]
call fcn.180010c60
mov r13d, eax
cmp dword [0x1801161a0], 0
je 0x18001a024
mov eax, dword [rbp - 0x58]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r13d
lea r9, str.phah_cycle_lengthen___d____08x_
lea r8, str.WatchDog
lea edx, [rsi + 0xa]
lea rcx, [0x1801160e8]
call fcn.180011c50
mov eax, dword [0x1801211f4]
cmp r13d, 1
cmove eax, r14d
mov dword [0x1801211f4], eax
lea rcx, [rsp + 0x70]
call fcn.1800107f0
mov r13d, dword [rsp + 0x5c]
mov eax, 0x3c
cmp dword [0x1801211f4], 0
cmovne esi, eax
cmp dword [0x1801161a0], 0
je 0x18001a07c
lea r9, str.CMonitorThread::RestoreFiles_2
lea r8, str.WatchDog
lea edx, [rax - 0x2d]
lea rcx, [0x1801160e8]
call fcn.180011c50
test r13d, r13d
jne 0x18001a0ab
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp r15d, 2
je 0x18001a0ab
mov ecx, dword [0x1801211f0]
test ecx, ecx
je 0x18001a0ab
cmp eax, ecx
jb 0x18001a0ab
imul esi, esi, 0xea60
add esi, ecx
cmp eax, esi
jbe 0x18001abbd
mov dword [rbx + 0x90], edi
mov byte [rbp + 0x490], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x491]
call fcn.1800369b0
mov byte [rbp + 0x380], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x381]
call fcn.1800369b0
mov edx, 0x104
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, 0x104
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call fcn.18002c2f0
test eax, eax
je 0x18001a410
mov byte [rbp + 0x50], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x51]
call fcn.1800369b0
mov byte [rbp + 0x160], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x161]
call fcn.1800369b0
call fcn.180001c10
mov r8, rax
lea r9, str.bakrdlv3.sys
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x50]
call fcn.18003756c
call fcn.180001c10
mov r8, rax
lea r9, [0x1800c3798]
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x160]
call fcn.18003756c
cmp dword [0x1801161a0], 0
je 0x18001a1b1
lea r9, str.CMonitorThread::RestoreFiles_200
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x50], rdi
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1800215c0
nop
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.1800215c0
nop
cmp dword [0x1801161a0], 0
je 0x18001a202
lea r9, str.CMonitorThread::RestoreFiles_2011
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x50]
call fcn.180008dc0
cmp dword [0x1801161a0], 0
je 0x18001a23e
lea r9, str.CMonitorThread::RestoreFiles_2012
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x60]
call fcn.180008dc0
cmp dword [0x1801161a0], 0
je 0x18001a27a
lea r9, str.CMonitorThread::RestoreFiles_2013
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
or r8d, 0xffffffff
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.18002b510
or r8d, 0xffffffff
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.18002b510
lea rcx, [rbp - 0x38]
call fcn.18002b300
lea rcx, [rbp - 0x48]
call fcn.18002b300
lea rcx, [rbp - 0x38]
call fcn.18002af00
mov rbx, rax
lea rcx, [rbp - 0x48]
call fcn.18002af00
test r13d, r13d
jne 0x18001a2cc
cmp ebx, eax
je 0x18001a2e7
xor r8d, r8d
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x50]
call fcn.18000e830
test eax, eax
jne 0x18001a3fb
cmp dword [0x1801161a0], 0
je 0x18001a30f
lea r9, str.CMonitorThread::RestoreFiles_201
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov dword [rsp + 0x58], edi
lea r9, [rsp + 0x58]
mov r8d, 2
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x50]
call fcn.180015980
mov r11d, dword [0x1801161a0]
test r11d, r11d
je 0x18001a360
lea r9, str.CMonitorThread::RestoreFiles_202
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov r11d, dword [0x1801161a0]
cmp dword [rsp + 0x58], 0
je 0x18001a3fb
cmp dword [0x1801211ec], 0
jne 0x18001a3fb
test r11d, r11d
je 0x18001a39c
lea r9, str.CMonitorThread::RestoreFiles_203
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x240
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupInstallFileA]
mov dword [0x1801211ec], r14d
cmp dword [0x1801161a0], 0
je 0x18001a3fb
lea r9, str.CMonitorThread::RestoreFiles_204
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
nop
lea rcx, [rsp + 0x60]
call fcn.18001eca0
nop
lea rcx, [rsp + 0x50]
call fcn.18001eca0
mov r14d, edi
mov r13d, edi
movsxd rax, r12d
mov qword [rsp + 0x50], rax
lea rbx, [0x1800ff1e8]
mov r12d, dword [rsp + 0x5c]
nop word [rax + rax]
cmp dword [0x1801161a0], 0
je 0x18001a458
lea r9, str.CMonitorThread::RestoreFiles_3
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov byte [rbp + 0x160], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x161]
call fcn.1800369b0
mov byte [rbp + 0x50], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x51]
call fcn.1800369b0
mov rsi, qword [rbx - 8]
test rsi, rsi
je 0x18001a4af
call fcn.180001c10
mov r8, rax
mov r9, rsi
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x160]
call fcn.18003756c
mov rsi, qword [rbx]
test rsi, rsi
je 0x18001a4d2
call fcn.180001310
mov r8, rax
mov r9, rsi
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x50]
call fcn.18003756c
cmp qword [rbx - 8], 0
je 0x18001a541
cmp qword [rbx], 0
je 0x18001a541
mov eax, 1
cmp qword [rsp + 0x50], 0
je 0x18001a4f3
cmp dword [rbx + 0x10], 0
cmove eax, edi
mov dword [rsp + 0x20], eax
mov r9d, r15d
mov r8d, r12d
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x160]
call fcn.180014310
mov r14d, eax
cmp dword [0x1801161a0], 0
je 0x18001a541
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
lea r9, str.CMonitorThread::RestoreFiles__3_3___lu____lu_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov esi, edi
lea rcx, [rsp + 0x70]
call fcn.1800108f0
nop
lea rdx, str.disfunc_all
lea rcx, [rsp + 0x60]
call fcn.180021640
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180010ca0
cmp dword [rbp - 0x58], 0xf0000001
jne 0x18001a584
lea rcx, [rsp + 0x70]
call fcn.180010c60
mov esi, eax
lea rcx, [rsp + 0x70]
call fcn.1800107f0
test esi, esi
jne 0x18001a5e0
lea rcx, [rsp + 0x70]
call fcn.1800108f0
nop
lea rdx, str.disfunc_astacomdll
lea rcx, [rbp - 0x48]
call fcn.180021640
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180010ca0
cmp dword [rbp - 0x58], 0xf0000001
jne 0x18001a5d2
lea rcx, [rsp + 0x70]
call fcn.180010c60
mov esi, eax
lea rcx, [rsp + 0x70]
call fcn.1800107f0
test esi, esi
je 0x18001a5e3
mov dword [rbx + 8], edi
cmp dword [0x1801161a0], 0
je 0x18001a619
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
lea r9, str.CMonitorThread::RestoreFiles_4___lu____lu____lu_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
cmp dword [rbx + 8], 0
je 0x18001a804
cmp dword [0x1801161a0], 0
je 0x18001a657
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
lea r9, str.CMonitorThread::RestoreFiles_5___lu____lu_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
test r14d, r14d
jne 0x18001a718
cmp dword [rbx + 0xc], r14d
jne 0x18001a718
mov dword [rsp + 0x58], edi
lea r9, [rsp + 0x58]
lea r8d, [r14 + 2]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x160]
call fcn.180015980
mov esi, dword [rsp + 0x58]
cmp dword [0x1801161a0], r14d
je 0x18001a6b6
mov dword [rsp + 0x20], esi
lea r9, str.CMonitorThread::RestoreFiles_6___lu_
lea r8, str.WatchDog
lea edx, [r14 + 0xf]
lea rcx, [0x1801160e8]
call fcn.180011c50
test esi, esi
je 0x18001a718
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x240
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x160]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupInstallFileA]
mov dword [rbx + 0xc], 1
cmp dword [0x1801161a0], 0
je 0x18001a718
lea r9, str.CMonitorThread::RestoreFiles_7
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov byte [rbp + 0x270], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x271]
call fcn.1800369b0
call fcn.180001310
mov r8, rax
lea r9, [rbp + 0x50]
lea rdx, str._s_regsvr32__s___s_
lea rcx, [rbp + 0x270]
call fcn.18003756c
mov dword [rbp - 0x20], edi
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x18]
call fcn.1800369b0
mov qword [rsp + 0x70], rdi
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
call fcn.180001310
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x270]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp dword [0x1801161a0], 0
je 0x18001a7ea
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
lea r9, str.CMonitorThread::RestoreFiles_8___lu____lu_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
test esi, esi
je 0x18001a804
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1801161a0], 0
je 0x18001a82c
lea r9, str.CMonitorThread::RestoreFiles_9
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
inc r13d
add rbx, 0x20
cmp r13d, 0x5f
jb 0x18001a430
call fcn.18002c4c0
test eax, eax
je 0x18001a927
mov byte [rbp + 0x160], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x161]
call fcn.1800369b0
mov byte [rbp + 0x50], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x51]
call fcn.1800369b0
lea r9, str.baksas.sys
lea r8, [rbp + 0x380]
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x160]
call fcn.18003756c
lea r9, str.sas.dll
lea r8, [rbp + 0x490]
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x50]
call fcn.18003756c
mov ebx, edi
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp eax, 0xffffffff
jne 0x18001a8e2
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
cmp dword [0x1801161a0], 0
je 0x18001a927
lea rax, [rbp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebx
lea r9, str.RestoreFils__SAS____d__08x____S__S_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
call fcn.18002c290
test eax, eax
je 0x18001ab95
lea rcx, [rsp + 0x70]
call fcn.180007ee0
nop
mov esi, edi
lea rbx, str.winoauv364.dll
nop dword [rax + rax]
cmp dword [0x1801161a0], 0
je 0x18001a978
lea r9, str.CMonitorThread::RestoreFiles_10
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
mov byte [rbp + 0x50], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x51]
call fcn.1800369b0
mov byte [rbp + 0x270], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x271]
call fcn.1800369b0
mov r12, qword [rbx - 8]
test r12, r12
je 0x18001a9cc
call fcn.180001c10
mov r8, rax
mov r9, r12
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x50]
call fcn.18003756c
mov r12, qword [rbx]
test r12, r12
je 0x18001a9f2
call fcn.180001000
mov r8, rax
mov r9, r12
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x270]
call fcn.18003756c
cmp qword [rbx - 8], 0
je 0x18001aa5f
cmp qword [rbx], 0
je 0x18001aa5f
mov eax, 1
cmp qword [rsp + 0x50], 0
je 0x18001aa13
cmp dword [rbx + 0x10], 0
cmove eax, edi
mov dword [rsp + 0x20], eax
mov r9d, r15d
mov r8d, dword [rsp + 0x5c]
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x50]
call fcn.180014310
cmp dword [0x1801161a0], 0
je 0x18001aa5f
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], eax
lea r9, str.CMonitorThread::RestoreFiles_x64_11___lu____lu_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
inc esi
add rbx, 0x20
cmp esi, 0x2a
jb 0x18001a950
call fcn.18002c4c0
test eax, eax
je 0x18001ab8b
mov byte [rbp + 0x160], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x161]
call fcn.1800369b0
mov byte [rbp + 0x50], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x51]
call fcn.1800369b0
lea r9, str.baksas64.sys
lea r8, [rbp + 0x380]
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x160]
call fcn.18003756c
lea r9, str.sas.dll
lea r8, [rbp + 0x490]
lea rdx, [0x1800c1ec8]
lea rcx, [rbp + 0x50]
call fcn.18003756c
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp eax, 0xffffffff
jne 0x18001ab11
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
cmp dword [0x1801161a0], 0
je 0x18001ab8b
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1800215c0
mov rbx, rax
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x50]
call fcn.1800215c0
nop
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rcx
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
lea r9, str.RestoreFils__SAS64____d__08x____s__s_
lea r8, str.WatchDog
mov edx, 0xf
lea rcx, [0x1801160e8]
call fcn.180011c50
nop
lea rcx, [rsp + 0x50]
call fcn.18001eca0
nop
lea rcx, [rsp + 0x60]
call fcn.18001eca0
nop
lea rcx, [rsp + 0x70]
call fcn.180007ea0
cmp r15d, 1
jne 0x18001aba4
xor ecx, ecx
call fcn.180013790
jmp 0x18001abb1
cmp r15d, 2
jne 0x18001abb1
xor ecx, ecx
call fcn.180013920
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1801211f0], eax
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.180036980
mov rbx, qword [rsp + 0x700]
add rsp, 0x6b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret