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

Disassembly:
push 0xc24
mov eax, 0x59a4bb
call fcn.004485f1
mov ebx, ecx
mov edi, 0xba
push edi
call fcn.00406dcd
mov ecx, eax
call fcn.00407de7
mov esi, eax
call fcn.004059a6
mov ecx, eax
call fcn.0044a301
test esi, esi
jne 0x40e327
push eax
push esi
push 0x5a0e74
push str.UserLogin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push esi
push edi
call fcn.00406dcd
mov ecx, eax
call fcn.0040a60f
call fcn.0042619e
push eax
lea ecx, [ebp - 0xc30]
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 - 0xc30]
push str.__s_s__DownCfg__d
push eax
call fcn.0040f0fa
mov esi, dword [ebp - 0xc30]
add esp, 0x14
cmp dword [esi - 4], 1
jle 0x40e383
push dword [esi - 0xc]
lea ecx, [ebp - 0xc30]
call fcn.0040f08e
mov esi, dword [ebp - 0xc30]
push esi
call fcn.00455aff
pop ecx
call fcn.004059a6
mov ecx, eax
call fcn.0044a1f3
push eax
lea ecx, [ebp - 0xc08]
call fcn.00401d40
push 8
pop edi
cmp dword [ebp - 0xbf4], edi
lea eax, [ebp - 0xc08]
lea ecx, [ebp - 0xc28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0xc08]
push eax
call fcn.0040de44
push 0x5c
push dword [ebp - 0xc28]
mov byte [ebp - 4], 2
call fcn.00460b50
pop ecx
pop ecx
test eax, eax
jne 0x40e3e4
or eax, 0xffffffff
jmp 0x40e3ec
sub eax, dword [ebp - 0xc28]
sar eax, 1
inc eax
lea ecx, [ebp - 0xc28]
push eax
lea eax, [ebp - 0xc2c]
push eax
call fcn.0040fc0e
push eax
lea ecx, [ebp - 0xc28]
mov byte [ebp - 4], 3
call fcn.0040e023
mov ecx, dword [ebp - 0xc2c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.0040d2df
push str..temp
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0xc20]
push eax
call fcn.0040dd67
add esp, 0xc
cmp dword [ebp - 0xc0c], edi
lea eax, [ebp - 0xc20]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0xc20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e46c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e49c
cmp dword [ebp - 0xbf4], edi
lea ecx, [ebp - 0xc08]
push 1
cmovae ecx, dword [ebp - 0xc08]
lea eax, [ebp - 0xc20]
cmp dword [ebp - 0xc0c], edi
push ecx
cmovae eax, dword [ebp - 0xc20]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00406dcd
mov ecx, eax
call fcn.00409acf
push 0x55
call fcn.00406dcd
mov ecx, eax
call fcn.00407de7
push 0x9e
mov edi, eax
call fcn.00406dcd
mov ecx, eax
call fcn.00407bb1
mov dword [ebp - 0xc2c], eax
test edi, edi
je 0x40e5e4
push 0x3e8
xor edi, edi
lea eax, [ebp - 0x3f8]
push edi
push eax
call fcn.0045ef40
push 0x3e8
lea eax, [ebp - 0xbf0]
push edi
push eax
call fcn.0045ef40
push 0x208
lea eax, [ebp - 0x600]
push edi
push eax
call fcn.0045ef40
mov edi, dword [ebp - 0xc2c]
add esp, 0x24
push str..znpf
push edi
call fcn.004059a6
mov ecx, eax
call fcn.0044a202
push eax
lea eax, [ebp - 0x3f8]
push str._sSkin_s_s
push eax
call fcn.004065f3
add esp, 0x14
lea eax, [ebp - 0x3f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e588
push str..znpf
push edi
call fcn.004059a6
mov ecx, eax
call fcn.0044a1e7
push eax
lea eax, [ebp - 0x3f8]
push str._sAllSkin_s_s
push eax
call fcn.004065f3
add esp, 0x14
lea eax, [ebp - 0x3f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e5e4
push str.SWSkinInst.exe
call fcn.004059a6
mov ecx, eax
call fcn.0044a202
push eax
lea eax, [ebp - 0x600]
push 0x5a41fc
push eax
call fcn.004065f3
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0xbf0]
push str.__s___bindinst__s
push eax
call fcn.004065f3
lea eax, [ebp - 0xbf0]
push eax
call fcn.004559d1
add esp, 0x24
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x99
push edi
call fcn.00406dcd
mov ecx, eax
call fcn.00407de7
inc eax
push eax
push edi
call fcn.00406dcd
mov ecx, eax
call fcn.0040a60f
inc edi
push edi
call fcn.00406dcd
mov ecx, eax
call fcn.00407de7
inc eax
push eax
push edi
call fcn.00406dcd
mov ecx, eax
call fcn.0040a60f
mov edi, 0x9b
push edi
call fcn.00406dcd
mov ecx, eax
call fcn.00407de7
inc eax
push eax
push edi
call fcn.00406dcd
mov ecx, eax
call fcn.0040a60f
push 0x208
xor edi, edi
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.0045ef40
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0xc24]
call fcn.0040de44
push str.MutualTempFile.ini
lea ecx, [ebp - 0xc24]
mov byte [ebp - 4], 5
call fcn.0040e0c7
push dword [ebp - 0xc24]
push edi
push str.DownCfg
push str.MutualTempFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0xc24]
mov dword [ebx + 0x2e4], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e6cb
push dword [ebp - 0xc24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x2f0
cmp dword [ebx + 0x2e4], edi
je 0x40e6f0
call fcn.0041a93f
pop ecx
mov dword [ebp - 0xc2c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40e70f
push 1
jmp 0x40e705
call fcn.0041a93f
pop ecx
mov dword [ebp - 0xc2c], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x40e70f
push edi
push edi
mov ecx, eax
call fcn.0040d843
mov edi, eax
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 0x40e754
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 - 0xc24]
lea ecx, [ecx - 0x10]
call fcn.0040d2df
xor edi, edi
lea ecx, [ebp - 0xc20]
push edi
push 1
call fcn.00401de0
mov ecx, dword [ebp - 0xc28]
lea ecx, [ecx - 0x10]
call fcn.0040d2df
push edi
push 1
lea ecx, [ebp - 0xc08]
call fcn.00401de0
lea ecx, [esi - 0x10]
call fcn.0040d2df
xor eax, eax
inc eax
call fcn.0044859b
ret