Function at 0x4027f0
Capabilities:
Check mutex on windows
Copy file
Create process on windows
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4155b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push 0x8c
mov dword [ebp - 0x18], ebx
call fcn.00403c40
mov edx, dword [ebx + 0x5c]
add esp, 4
add eax, edx
mov ecx, ebx
push eax
call fcn.0040fd81
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x402855
push 5
mov ecx, edi
call fcn.0040fed0
mov eax, dword [edi + 0x1c]
push 0x105
push esi
push esi
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
call fcn.004030f0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410f51
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 4], esi
cmp eax, 9
ja case.default.0x402872
jmp dword [eax*4 + 0x403088]
push str.zzk_NCSTUDIO_7000F87C04A0_D4EA_11d4_88B8_0050FC09F3B0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4028a1
mov dword [ebx + 0x5c], 1
jmp 0x403068
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403068
mov ecx, dword [ebx + 0x1c]
push 0x70
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [0x41c908]
mov dword [ebp - 0x18], edx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x180]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x180]
push eax
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
call fcn.00402310
lea edx, [ebp - 0x180]
push edx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040c57f
mov al, byte [ebp - 0x180]
add esp, 0xc
test al, al
je 0x402929
mov ecx, dword [ebp - 0x18]
push esi
push 0x31
push ecx
call fcn.004134a2
cmp eax, 2
jne 0x402929
push eax
mov ecx, ebx
call fcn.0040d0bd
jmp 0x402942
mov edx, dword [ebx + 0x1c]
push esi
push 0x1f4
push 0x70
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x5c], 2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00410ee3
jmp 0x403068
lea eax, [ebp - 0x1c]
push str.setup.cfg
lea ecx, [ebp - 0x2c]
push eax
push ecx
call fcn.004110eb
mov eax, dword [eax]
lea edx, [ebp - 0x2c8]
push eax
push 0x104
push edx
push 0x41d8f8
push str.BACKUPPATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x2c]
call fcn.00410ee3
lea eax, [ebp - 0x2c8]
lea ecx, [ebp - 0x14]
push eax
call fcn.00410f51
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
call fcn.00403ad0
add esp, 4
test al, al
jne 0x402b01
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], esi
je 0x402b01
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call esi
test eax, eax
jne 0x4029dd
mov edx, dword [ebp - 0x14]
push edx
call fcn.004039d0
add esp, 4
lea eax, [ebp - 0x6c]
push eax
call fcn.0040c714
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x24], ecx
push str.Naiky__Y__m__d__H_M_S_
push edx
lea ecx, [ebp - 0x24]
call fcn.0040c727
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
mov byte [ebp - 4], 3
call fcn.00411085
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.004039d0
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
call esi
test eax, eax
je 0x402ae9
lea edx, [ebp - 0x1c]
push 0x41c3d8
lea eax, [ebp - 0x34]
push edx
push eax
call fcn.004110eb
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x180]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x34]
call fcn.00410ee3
lea edi, [ebp - 0x180]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, esi
mov byte [ebp + ecx - 0x17f], al
jne 0x402a92
mov dword [ebp - 0x58], esi
jmp 0x402a98
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x180]
push 0x70
push ecx
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x48], 0x214
mov dword [ebp - 0x46], esi
mov dword [ebp - 0x42], esi
mov dword [ebp - 0x3e], str.Copy_files
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov eax, dword [ebx + 0x1c]
push esi
push 0x1f4
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00410ee3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00410ee3
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x5c], 3
mov byte [ebp - 4], 0
call fcn.00410ee3
jmp 0x403068
push 0x104
lea ecx, [ebp - 0x180]
push str.D:NcFilesWizards_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebx + 0x1c]
push 0x70
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call edi
test eax, eax
je 0x402b58
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00403360
add esp, 4
lea edx, [ebp - 0x180]
push edx
call edi
test eax, eax
je 0x402b74
lea eax, [ebp - 0x180]
push eax
call fcn.00403360
add esp, 4
mov ecx, dword [ebx + 0x1c]
push esi
push 0x1f4
push 0x70
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x5c], 4
jmp 0x403068
lea edx, [ebp - 0x4d0]
push 0x104
push edx
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x4d0]
push 0x40
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.004114c7
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.0041191e
mov esi, eax
push esi
mov dword [ebp - 0x20], esi
call fcn.00410485
add esp, 4
mov edi, eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x14], edi
push esi
push edi
call fcn.00411741
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.00411567
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
lea esi, [esi + edi - 0x18]
mov ecx, 6
lea edi, [ebp - 0x54]
add edx, 0xffffffe8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0
push ecx
push edx
push eax
call fcn.004032e0
add esp, 0xc
mov ecx, 4
lea edi, [ebp - 0x7c]
lea esi, [ebp - 0x4c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x402c80
mov eax, dword [0x41c908]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x18]
push ecx
push edx
mov byte [ebp - 4], 8
call fcn.00402740
add esp, 8
call fcn.00402330
mov ecx, dword [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
mov ecx, ebx
call fcn.004030b0
mov edx, dword [ebp - 0x14]
push edx
call fcn.004104ae
add esp, 4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00410ee3
jmp 0x403068
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
sub eax, ecx
lea esi, [ebx + 0x74]
mov edi, ecx
sub eax, 0x18
mov ecx, esi
mov dword [ebp - 0x24], eax
call fcn.00410e6e
lea eax, [ebp - 0x180]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x180]
lea edx, [ebp - 0x180]
push ecx
push 0
push 0x41c3b4
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x180]
push 0x1001
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.004114c7
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
add edi, edx
push ecx
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.0041177b
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.00411567
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.004104ae
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x1c4]
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x1c]
push 0x70
push ecx
mov dword [ebp - 0x1c4], 0x44
mov dword [ebp - 0x198], 1
mov word [ebp - 0x194], 5
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [ebx + 0x60]
lea eax, [ebp - 0x1c4]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x180]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [ebx + 0x1c]
push 0
push 0x1f4
push 0x70
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_SetTimer]
test edi, edi
jne 0x402d95
push str.ERR_203:_Create_a_process_failed_
jmp 0x403061
lea eax, [ebp - 0x180]
mov ecx, esi
push eax
call fcn.00411020
mov dword [ebx + 0x5c], 5
jmp 0x403068
mov eax, dword [ebx + 0x60]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403068
mov ecx, dword [ebx + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebx + 0x64]
push edx
call esi
mov eax, dword [ebx + 0x74]
lea esi, [ebx + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00410e6e
mov dword [ebx + 0x5c], 6
jmp 0x403068
mov eax, dword [ebx + 0x1c]
push 0x70
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov cl, byte [0x41d8f8]
xor eax, eax
mov byte [ebp - 0x180], cl
mov ecx, 0x40
lea edi, [ebp - 0x17f]
lea edx, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.setup.cfg
lea eax, [ebp - 0x38]
push edx
push eax
call fcn.004110eb
mov eax, dword [eax]
lea ecx, [ebp - 0x180]
push eax
push 0x104
push ecx
push 0x41d8f8
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x38]
call fcn.00410ee3
lea edx, [ebp - 0x180]
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x20]
push eax
push ecx
call fcn.004110eb
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
push edx
call fcn.00403580
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00410ee3
mov eax, dword [ebx + 0x1c]
push esi
push 0x1f4
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x5c], 7
jmp 0x403068
lea ecx, [ebp - 0x1c]
push str.setup.cfg
lea edx, [ebp - 0x30]
push ecx
push edx
call fcn.004110eb
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x5d4]
push 0x104
push eax
push 0x41d8f8
push str.BACKUPPATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x30]
call fcn.00410ee3
lea ecx, [ebp - 0x5d4]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00410f51
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
push edx
call fcn.00403ad0
mov eax, dword [ebp - 0x14]
add esp, 4
cmp dword [eax - 8], esi
je 0x402ffe
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x402f87
mov eax, dword [ebp - 0x14]
push eax
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x2c8]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x2c8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x3cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x3cc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea edx, [ebp - 0x3cc]
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.004110eb
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x2c8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x28]
call fcn.00410ee3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00410ee3
mov dword [ebx + 0x5c], 8
jmp 0x403068
mov dword [ebx + 0x5c], 9
jmp 0x403068
mov eax, dword [ebx + 0x1c]
push 0x70
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402370
push esi
push 0x31
push eax
call fcn.004134a2
cmp eax, 1
jne 0x403050
push 8
call fcn.00403260
add esp, 4
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc8]
jmp 0x403068
push str.Invalid_state_
mov ecx, ebx
call fcn.004030b0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00410ee3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret