Function at 0x40e7a8
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Read .ini file

Disassembly:
push 0x24c
mov eax, 0x59a54b
call fcn.004485f1
mov ebx, ecx
push 0xba
call fcn.00406dcd
mov ecx, eax
call fcn.00407de7
mov esi, eax
call fcn.004059a6
mov ecx, eax
call fcn.0044a301
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test esi, esi
jne 0x40e805
push eax
push 0
push 0x5a0e74
push str.UserLogin
call edi
mov esi, eax
push esi
push 0xba
call fcn.00406dcd
mov ecx, eax
call fcn.0040a60f
call fcn.0042619e
push eax
lea ecx, [ebp - 0x254]
call fcn.0040cf55
and dword [ebp - 4], 0
push esi
push str.SWMutual.exe
call fcn.004059a6
mov ecx, eax
call fcn.0044a202
push eax
lea eax, [ebp - 0x254]
push str.__s_s__QuickSync__d
push eax
call fcn.0040f0fa
mov esi, dword [ebp - 0x254]
add esp, 0x14
cmp dword [esi - 4], 1
jle 0x40e861
push dword [esi - 0xc]
lea ecx, [ebp - 0x254]
call fcn.0040f08e
mov esi, dword [ebp - 0x254]
push esi
call fcn.00455aff
pop ecx
call fcn.004059a6
mov ecx, eax
call fcn.0044a1f3
push eax
lea ecx, [ebp - 0x230]
call fcn.00401d40
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0040de44
push 0x5c
push dword [ebp - 0x250]
mov byte [ebp - 4], 2
call fcn.00460b50
pop ecx
pop ecx
test eax, eax
jne 0x40e8c0
or eax, 0xffffffff
jmp 0x40e8c8
sub eax, dword [ebp - 0x250]
sar eax, 1
inc eax
lea ecx, [ebp - 0x250]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.0040fc0e
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.0040e023
mov ecx, dword [ebp - 0x258]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.0040d2df
push str..temp
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040dd67
add esp, 0xc
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e96e
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push 1
cmovae ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x99
call fcn.00406dcd
mov ecx, eax
call fcn.00407de7
inc eax
push eax
push 0x99
call fcn.00406dcd
mov ecx, eax
call fcn.0040a60f
push 0x9a
call fcn.00406dcd
mov ecx, eax
call fcn.00407de7
inc eax
push eax
push 0x9a
call fcn.00406dcd
mov ecx, eax
call fcn.0040a60f
push 0x9b
call fcn.00406dcd
mov ecx, eax
call fcn.00407de7
inc eax
push eax
push 0x9b
call fcn.00406dcd
mov ecx, eax
call fcn.0040a60f
call fcn.00406dcd
mov ecx, eax
call fcn.00409acf
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0045ef40
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0040de44
push str.MutualTempFile.ini
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 5
call fcn.0040e0c7
push dword [ebp - 0x24c]
push 0
push str.QuickSync
push str.MutualTempFile
call edi
push dword [ebp - 0x24c]
mov dword [ebx + 0x2e4], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ea75
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebx + 0x2e4], 0
push 0x2f0
je 0x40ea9b
call fcn.0041a93f
pop ecx
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40eabe
push 1
jmp 0x40eab1
call fcn.0041a93f
pop ecx
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x40eabe
push 0
push 4
mov ecx, eax
call fcn.0040d843
mov edi, eax
jmp 0x40eac0
xor edi, edi
xor eax, eax
mov byte [ebp - 4], 5
push eax
push eax
push eax
push eax
push eax
push eax
push 0x96c80000
push 0x608fd4
lea ecx, [ebx + 0x2c]
call dword [sym.imp.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const]
push eax
mov ecx, edi
call dword [sym.imp.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
mov ecx, edi
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
mov ecx, edi
call dword [sym.imp.DuiLib32.dll_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_]
test edi, edi
je 0x40eb05
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x14]
push 1
mov ecx, ebx
call fcn.004106fe
mov ecx, dword [ebp - 0x24c]
lea ecx, [ecx - 0x10]
call fcn.0040d2df
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00401de0
mov ecx, dword [ebp - 0x250]
lea ecx, [ecx - 0x10]
call fcn.0040d2df
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401de0
lea ecx, [esi - 0x10]
call fcn.0040d2df
xor eax, eax
inc eax
call fcn.0044859b
ret