Function at 0x40e35c
Capabilities:
Check if file exists
Get file attributes
Move file
Print debug messages

Disassembly:
push 0xf8
mov eax, 0x4524b3
call fcn.0042b785
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
call fcn.0040de8b
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x20]
push str.config_WatchDog.ini
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.004098a8
mov byte [ebp - 4], 1
mov dword [esp], str.SmartBox
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x40e3b9
push str.SmartBox_is_already_Run_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40e848
call fcn.0040e023
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
push str.KMWORKSERV
call fcn.0040e0f3
mov dword [ebp - 0x28], ebx
call fcn.0040abb2
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a2b3
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
sub eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sar eax, 2
test eax, eax
je 0x40e45a
mov esi, edi
cmp edi, dword [ebp - 0x30]
je 0x40e465
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x28]
push str.find_list_is__ld_n
push eax
call fcn.0040c2aa
add esp, 0xc
push dword [ebp - 0x28]
call ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.0040a277
push eax
push 0x461d2c
call fcn.0040d860
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
push dword [esi]
call fcn.0040e20c
add esi, 4
cmp esi, dword [ebp - 0x30]
jne 0x40e414
mov edi, dword [ebp - 0x34]
jmp 0x40e465
push str.Not_Find_KM___n
call fcn.0040d860
pop ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], edi
push eax
push str.VICEDISPLAY
call fcn.0040e0f3
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x40e497
mov ecx, dword [ecx]
call fcn.0040d73e
test eax, eax
je 0x40e497
push str.Kill_ViceDisplay_sucess__n
call ebx
xor esi, esi
mov dword [ebp - 0x14], esi
call fcn.0040abb2
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a2b3
mov byte [ebp - 4], 4
call fcn.0040cbce
mov ecx, eax
call fcn.0040d1a8
call fcn.0040cbce
lea edi, [eax + 4]
cmp dword [edi + 0x14], 0x10
jb 0x40e4ca
mov edi, dword [edi]
or ebx, 0xffffffff
test edi, edi
je 0x40e4e3
xor eax, eax
push eax
push eax
push ebx
push edi
push eax
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
lea ecx, [ebp - 0x14]
test esi, esi
jle 0x40e50a
push esi
call fcn.0040a277
push esi
push eax
push ebx
push edi
xor eax, eax
push eax
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea ecx, [ebp - 0x14]
call fcn.0040a40b
jmp 0x40e50f
call fcn.0040b90c
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jne 0x40e531
mov esi, str.smartBox.exe
mov ecx, esi
call fcn.0040a06e
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040b7e6
mov edi, dword [ebp - 0x14]
xor eax, eax
lea ecx, [ebp - 0x1c]
mov esi, 0x461438
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040b504
xor eax, eax
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
call fcn.0040b504
xor eax, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
call fcn.0040eba4
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x64]
call fcn.0040b440
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.0040b4b6
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x64]
call fcn.0040b440
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.0040b4b6
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
jne 0x40e610
lea ecx, [ebp - 0x68]
call fcn.0040ec2d
push eax
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x64]
call fcn.0040b440
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.0040b4b6
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
call fcn.0040dfaa
test eax, eax
jne 0x40e6bb
mov esi, dword [ebp - 0x24]
xor ebx, ebx
test esi, esi
je 0x40e647
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40e62b
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jle 0x40e64c
xor ebx, ebx
mov dword [ebp - 0x64], ebx
jmp 0x40e666
add ebx, ebx
mov eax, ebx
call fcn.0042b830
mov ecx, esp
mov edx, esi
push 3
push ebx
call fcn.0040c05e
mov dword [ebp - 0x64], eax
xor ebx, ebx
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x40e671
mov eax, ebx
jmp 0x40e6a9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40e676
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jle 0x40e694
xor eax, eax
jmp 0x40e6a9
add ebx, ebx
mov eax, ebx
call fcn.0042b830
mov ecx, esp
mov edx, esi
push 3
push ebx
call fcn.0040c05e
push dword [ebp - 0x64]
push eax
call fcn.00439fe6
pop ecx
test eax, eax
lea eax, [ebp - 0x24]
pop ecx
je 0x40e6be
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b4b6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e7fc
xor eax, eax
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x50], al
mov byte [ebp - 4], 0xc
call fcn.0040dfaa
push ecx
mov esi, esp
mov dword [ebp - 0x68], esi
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
test eax, eax
je 0x40e716
call fcn.0040a3b8
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040e86a
jmp 0x40e729
call fcn.0040a3b8
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040ea8d
push eax
lea ecx, [ebp - 0x50]
call fcn.00408b63
lea ecx, [ebp - 0x80]
call fcn.00407b2b
mov eax, dword [ebp - 0x18]
push 0x2f
push eax
mov esi, dword [eax - 0xc]
call fcn.0042c9cb
pop ecx
pop ecx
test eax, eax
jne 0x40e753
or eax, 0xffffffff
jmp 0x40e758
sub eax, dword [ebp - 0x18]
sar eax, 1
sub esi, eax
lea ecx, [ebp - 0x18]
dec esi
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0040c98d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.0040b4b6
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
lea eax, [ebp - 0x50]
push eax
call fcn.0040cbce
lea ecx, [eax + 0x4c]
call fcn.0040c035
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x100]
push 3
push edi
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x104], eax
call fcn.0040b695
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x104]
call fcn.0040cbce
push esi
lea ecx, [eax + 4]
call fcn.00407b51
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x104], eax
je 0x40e7e8
push dword [ebp - 0x104]
call fcn.0042ffc5
pop ecx
call fcn.0040cbce
mov ecx, eax
call fcn.0040d048
lea ecx, [ebp - 0x50]
call fcn.00407b2b
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
lea ecx, [edi - 0x10]
call fcn.0040ac91
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40e848
mov eax, dword [ebp - 0x2c]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00407c5d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
lea esp, [ebp - 0x114]
call fcn.0042b72f
ret