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

Disassembly:
push 0x218
mov eax, 0x59a5b7
call fcn.004485f1
mov ebx, ecx
and dword [ebp - 4], 0
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 0x40ebba
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 - 0x220]
call fcn.0040cf55
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push eax
push str.SWMutual.exe
mov byte [ebp - 4], 1
call fcn.004059a6
mov ecx, eax
call fcn.0044a202
push eax
lea eax, [ebp - 0x220]
push str.__s_s___s__d
push eax
call fcn.0040f0fa
mov esi, dword [ebp - 0x220]
add esp, 0x18
cmp dword [esi - 4], 1
jle 0x40ec22
push dword [esi - 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040f08e
mov esi, dword [ebp - 0x220]
push esi
call fcn.00455aff
mov dword [esp], 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 - 0x21c]
call fcn.0040de44
push str.MutualTempFile.ini
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.0040e0c7
push dword [ebp - 0x21c]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
push str.MutualTempFile
call edi
push dword [ebp - 0x21c]
mov dword [ebx + 0x2e4], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ecb5
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.UpUserMB
lea ecx, [ebp + 8]
call fcn.004065bd
test eax, eax
jne 0x40eccb
push 2
pop edi
jmp 0x40ece2
push str.DownUserMB
lea ecx, [ebp + 8]
call fcn.004065bd
xor edi, edi
test eax, eax
push 3
pop eax
cmove edi, eax
cmp dword [ebx + 0x2e4], 0
push 0x2f0
je 0x40ed08
call fcn.0041a93f
pop ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40ed2a
push 1
jmp 0x40ed1e
call fcn.0041a93f
pop ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x40ed2a
push 0
push edi
mov ecx, eax
call fcn.0040d843
mov edi, eax
jmp 0x40ed2c
xor edi, edi
xor eax, eax
mov byte [ebp - 4], 2
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 0x40ed71
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 - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.0040d2df
lea ecx, [esi - 0x10]
call fcn.0040d2df
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00401de0
xor eax, eax
inc eax
call fcn.0044859b
ret 0x18