Function at 0x18000a120
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x708
mov rax, qword [0x18004d080]
xor rax, rsp
mov qword [rsp + 0x6f0], rax
mov r15, rcx
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x58], rdx
lea rcx, [rsp + 0xe2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov r14, r9
mov ebp, 1
mov word [rsp + 0xe0], r12w
call fcn.180023da0
xor eax, eax
lea r8, [rsp + 0x88]
xor edx, edx
mov rcx, r15
mov r13d, r12d
mov dword [rsp + 0x50], r12d
mov dword [r14], r12d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x7c], eax
mov edi, r12d
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x88], r12d
mov dword [rsp + 0x8c], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x9c], eax
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xa4], eax
mov dword [rsp + 0xa8], eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x18000a221
mov rax, qword [rsp + 0x9c]
mov edi, dword [rsp + 0xa8]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x6c], eax
mov rcx, rbx
call fcn.180002940
or r12d, 0xffffffff
test eax, eax
jne 0x18000a290
xor eax, eax
lea r8, [rsp + 0xb0]
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xbc], eax
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xc4], eax
mov dword [rsp + 0xc8], eax
mov dword [rsp + 0xcc], eax
mov dword [rsp + 0xd0], eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
cmovne r12d, dword [rsp + 0xb0]
mov eax, dword [0x180054458]
mov dword [rsp + 0x70], r12d
test eax, eax
je 0x18000a2cc
lea r9, str._SimulateCM__SimulateCM_1__08x__lpszSrcPath_:__s_
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r12d
call fcn.180004760
mov eax, dword [0x180054458]
mov rbx, qword [rsp + 0x68]
cmp r12d, 0xffffffff
jne 0x18000a300
test eax, eax
je 0x18000a2f8
lea r9, str._SimulateCM__SimulateCM_11
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, r12d
call fcn.180004760
mov r13d, ebp
jmp 0x18000a470
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x18000a325
lea rdx, [rsp + 0xe0]
mov rcx, rax
call fcn.180009920
mov rax, qword [rsp + 0x80]
test r15, r15
je 0x18000a340
lea r9, [rsp + 0xe0]
mov r8, rax
mov rdx, r15
mov rcx, rsi
call fcn.180005c00
xor ecx, ecx
xor eax, eax
lea r8, [rsp + 0x78]
mov dword [rsp + 0x60], ecx
mov r12d, ecx
mov rcx, rsi
mov edx, edi
mov dword [rsp + 0x64], eax
call fcn.180005e40
mov rcx, qword [rsp + 0x80]
xor eax, eax
lea r8, [rsp + 0x88]
xor edi, edi
xor edx, edx
mov dword [rsp + 0x8c], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x88], edi
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x9c], eax
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xa4], eax
mov dword [rsp + 0xa8], eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x18000a3d2
mov rax, qword [rsp + 0x9c]
mov r12d, dword [rsp + 0xa8]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
mov edx, r12d
mov rcx, rsi
call fcn.180006060
cmp dword [rsi + 0x10], edi
jne 0x18000a3f5
mov rcx, rsi
call fcn.1800078c0
test eax, eax
jne 0x18000a420
mov ebp, edi
cmp dword [r14], edi
je 0x18000a407
mov rcx, qword [rsi + 0x240]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test ebp, ebp
je 0x18000a470
mov eax, dword [rsi + 0x14]
cmp eax, 0x65
jne 0x18000a425
mov r13d, 1
mov dword [rsp + 0x50], r13d
jmp 0x18000a470
mov dword [r14], ebp
jmp 0x18000a3fa
cmp eax, 0x66
je 0x18000a470
cmp eax, 0x67
jne 0x18000a45f
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xe0]
repne scasw ax, word [rdi]
lea r13d, [rax + 1]
not rcx
cmp rcx, r13
je 0x18000a45b
lea r14, [rsp + 0xe0]
mov qword [rsp + 0x58], r14
jmp 0x18000a480
mov ebp, eax
jmp 0x18000a470
cmp eax, 2
jne 0x18000a470
mov dword [rsi + 0x5628], 1
mov ebp, edi
cmp qword [rsp + 0x80], 0
je 0x18000a4e7
mov r14, qword [rsp + 0x58]
test rbx, rbx
je 0x18000a4e7
mov rdx, r14
mov rcx, rsi
mov qword [rsi + 0x5558], rbx
mov dword [rsi + 0x556c], 1
call fcn.180008430
mov edi, eax
mov dword [rsp + 0x60], edi
cmp eax, 7
jae 0x18000a4bc
lea rax, [0x18004e9a8]
mov eax, dword [rax + rdi*4]
mov dword [rsi + 0x5568], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x5570], eax
mov rax, qword [rsi + 0x5538]
mov qword [rsi + 0x5578], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r12d, r12d
mov dword [rsi + 0x5580], eax
jmp 0x18000a4f4
mov r14, qword [rsp + 0x58]
xor r12d, r12d
mov dword [rsp + 0x60], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [rsi + 0x18], 0
mov dword [rsp + 0x78], eax
je 0x18000a511
mov dword [rsi + 0x5628], 1
mov ebp, r12d
cmp dword [0x180054458], 0
je 0x18000a540
lea r9, str._SimulateCM__2___d__d_
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebp
call fcn.180004760
test ebp, ebp
je 0x18000aaed
test r13d, r13d
je 0x18000aaed
mov rcx, r14
call fcn.180009720
test eax, eax
jne 0x18000a598
cmp dword [0x180054458], eax
je 0x18000a5b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.SimulateCM_3___s____s____d_
lea r8, str.ifocms
mov dword [rsp + 0x30], eax
lea rcx, [0x180054358]
or edx, 0xffffffff
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.180004760
jmp 0x18000a5b6
cmp dword [0x18004e9a0], 0
je 0x18000a5b6
xor r9d, r9d
mov r8, r14
mov ecx, 0x800
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov r13d, dword [rsp + 0x70]
mov dword [rsp + 0x58], r12d
cmp r13d, 0xffffffff
je 0x18000a60b
cmp r13d, 0x10
je 0x18000a659
mov edi, r13d
test r13b, 1
je 0x18000a5ef
and edi, 0xfffffffe
mov rcx, r14
mov dword [rsp + 0x58], 1
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test r13b, 2
je 0x18000a60b
and edi, 0xfffffffd
mov rcx, r14
mov dword [rsp + 0x58], 1
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp r13d, 0x10
je 0x18000a659
mov rdx, r14
mov rcx, r15
call fcn.180009fd0
test eax, eax
jne 0x18000a659
xor r13d, r13d
lea r12d, [rax + 0x70]
mov ebp, r13d
cmp dword [0x180054458], r13d
je 0x18000a9ba
lea r9, str._SimulateCM___22
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
call fcn.180004760
jmp 0x18000a9ba
movzx eax, word [rsi + 0x3770]
cmp ax, 2
jne 0x18000a818
xor ebx, ebx
mov edi, ebx
nop
lea r8, [0x180009db0]
mov r9, rsi
mov rdx, r14
mov rcx, r15
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
mov ebp, eax
test eax, eax
jne 0x18000a6a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x18000a6ab
mov rdx, r15
mov rcx, rsi
call fcn.180009e40
cmp dword [0x180054458], ebx
je 0x18000a6e2
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
lea r9, str._SimulateCM___copyfile__k_:__d__bRet_:__d__src:__s___desk_:__s_
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], edi
call fcn.180004760
test ebp, ebp
jne 0x18000a6fc
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x18000a670
cmp dword [0x180054458], ebx
mov rbx, qword [rsp + 0x68]
je 0x18000a726
lea r9, str._SimulateCM___33
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
call fcn.180004760
mov edi, dword [rsp + 0x50]
test ebp, ebp
jne 0x18000a9b7
cmp dword [rsi + 0x18], ebp
jne 0x18000a9b7
cmp r13d, 0xffffffff
je 0x18000a9b7
cmp r13d, 0x10
je 0x18000a9b7
cmp dword [0x180054458], ebp
je 0x18000a779
lea r9, str._SimulateCM___55__dwFileAttr_:__08x_
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x20], r13d
call fcn.180004760
xor eax, eax
lea rcx, [rsp + 0x2f2]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x2f0], ax
call fcn.180023da0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, str._s.ifocmsdll_08x
lea rcx, [rsp + 0x2f0]
mov r9d, eax
mov r8, r14
call fcn.180001240
lea rdx, [rsp + 0x2f0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x18000a9b7
cmp word [rsi + 0x3770], 2
mov r9, rsi
lea r8, [0x180009db0]
mov rdx, r14
mov rcx, r15
jne 0x18000a8b4
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
mov ebp, eax
test eax, eax
jne 0x18000a897
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x18000a8a2
cmp ax, 1
jne 0x18000a726
mov edi, dword [rsp + 0x50]
lea r8, [0x180009db0]
mov r9, rsi
or edi, 2
mov rdx, r14
mov rcx, r15
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
mov ebp, eax
test eax, eax
jne 0x18000a854
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x18000a85f
mov rdx, r15
mov rcx, rsi
call fcn.180009e40
cmp dword [0x180054458], 0
je 0x18000a72a
lea r9, str._SimulateCM___44__bRet_:__d___dwError_:__d_
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebp
call fcn.180004760
jmp 0x18000a72a
mov rdx, r15
mov rcx, rsi
call fcn.180009e40
cmp dword [0x180054458], 0
je 0x18000a90c
lea r9, str._SimulateCM___66__bRet_:__d___dwError_:__d_
jmp 0x18000a8ed
or edi, 2
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
mov ebp, eax
test eax, eax
jne 0x18000a8d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x18000a8dd
mov rdx, r15
mov rcx, rsi
call fcn.180009e40
cmp dword [0x180054458], 0
je 0x18000a90c
lea r9, str._SimulateCM___77__bRet_:__d___dwError_:__d_
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebp
call fcn.180004760
lea rcx, [rsp + 0x2f0]
test ebp, ebp
je 0x18000a975
call fcn.180002a80
mov edi, eax
test al, 1
je 0x18000a936
and edi, 0xfffffffe
lea rcx, [rsp + 0x2f0]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x180054458], 0
je 0x18000a9b7
lea r9, str._SimulateCM___88__dwNewFileAttr_:__08x___dwError_:__d_
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], edi
call fcn.180004760
jmp 0x18000a9b7
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [rsp + 0x58], 0
je 0x18000a991
mov edx, r13d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [0x180054458], 0
je 0x18000a9b7
lea r9, str.s_SimulateCM___99
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
call fcn.180004760
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, eax
mov eax, dword [rsp + 0x78]
sub ecx, eax
cmp edi, eax
jbe 0x18000aa3b
cmp rbx, 0xa00000
jbe 0x18000aa3b
cmp ecx, 0xbb8
jbe 0x18000aa3b
xor edx, edx
mov rax, rbx
div rcx
mov edx, dword [rsp + 0x60]
cmp edx, 7
jae 0x18000aa09
lea ecx, [rax - 0x191]
cmp ecx, 0x30bae
ja 0x18000aa09
lea r8, [0x18004e9a8]
mov dword [r8 + rdx*4], eax
cmp dword [0x180054458], 0
je 0x18000aa3b
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea r9, str._IFOCMS1_____type___d___dwSpeed__d___tick_:_d_
lea r8, str.ifocms
lea rcx, [0x180054358]
or edx, 0xffffffff
call fcn.180004760
mov dword [rsi + 0x556c], r13d
mov qword [rsi + 0x5560], r13
mov qword [rsi + 0x5558], r13
mov qword [rsi + 0x5578], r13
cmp dword [0x180054458], 0
je 0x18000aaa9
mov rax, qword [rsp + 0x80]
lea r9, str._IFOCMS1_44_SimulateCM___d__d__dwError_:__d___g_bRefresh_:__d____s____s_
lea r8, str.ifocms
mov qword [rsp + 0x48], rax
mov eax, dword [0x18004e9a0]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], eax
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x20], ebp
call fcn.180004760
test ebp, ebp
jne 0x18000aac8
cmp dword [rsi + 0x18], ebp
jne 0x18000aac8
test r12d, r12d
je 0x18000aabe
mov dword [rsi + 0x5530], r12d
mov rcx, rsi
call fcn.180007be0
jmp 0x18000aaed
cmp dword [0x18004e9a0], 0
mov qword [rsi + 0x5538], r13
je 0x18000aaed
xor r9d, r9d
mov r8, r14
mov ecx, 0x800
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, ebp
mov rcx, qword [rsp + 0x6f0]
xor rcx, rsp
call fcn.180021890
add rsp, 0x708
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret