Function at 0x410360
Capabilities:
Check mutex on windows
Read file on windows

Disassembly:
sub esp, 0x440
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x444]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x448]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44c]
mov dword [esp], eax
push ebp
mov ebp, ecx
test eax, eax
jne 0x4103b5
xor al, al
pop ebp
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.004396df
add esp, 0x440
ret 0xc
cmp dword [ebp + 0x400], 0
push ebx
push esi
push edi
jne 0x4105da
push 0x487288
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x200
lea eax, [esp + 0x50]
push eax
push str.TMCacheFileMutex
call fcn.0040fa60
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41043c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.004031d0
push eax
push esi
push str.failed_to_WaitForSingleObject_CACHE_FILE_MUTEX__error_code:__d__error:__s
push 0x87
push str.MyConfigure.cpp
push 3
push str.MyConfigure::WriteConfigure
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x24
lea esi, [ebp + 0x604]
push 0x462cbc
push esi
call fcn.0043a8ac
mov edi, eax
add esp, 8
test edi, edi
jne 0x41049a
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x487288
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0x404]
push eax
push str.failed_to_open__s
push 0x95
push str.MyConfigure.cpp
push 3
push str.MyConfigure::WriteConfigure
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
xor al, al
jmp 0x4105dc
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0043b180
mov eax, dword [esp + 0x38]
inc eax
push eax
call fcn.004167eb
push edi
push 1
push dword [esp + 0x44]
mov esi, eax
push esi
call fcn.0043bbb0
push edi
call fcn.0043a309
mov eax, dword [esp + 0x50]
add esp, 0x20
mov ecx, dword [esp + 0x10]
mov byte [eax + esi], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4104d7
mov eax, dword [esp + 0x30]
sub ecx, edx
inc eax
add eax, ecx
push eax
call fcn.004167eb
mov edi, eax
push edi
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call fcn.0040dc20
add esp, 0x18
push esi
test al, al
jne 0x41052b
call fcn.004167f4
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x487288
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x4105dc
call fcn.004167f4
lea eax, [ebp + 0x604]
push 0x462720
push eax
call fcn.0043a8ac
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x410591
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x487288
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0x404]
push eax
push str.failed_to_open__s_for_writing
push 0xbe
push str.MyConfigure.cpp
push 3
push str.MyConfigure::WriteConfigure
push dword [0x4868e8]
call fcn.0040a4c0
push edi
call fcn.004167f4
add esp, 0x20
xor al, al
jmp 0x4105dc
push str.____CACHE___
push edi
call fcn.00439380
add esp, 8
test eax, eax
je 0x4105a7
mov byte [eax + 0xc], 0
push edi
push 0x462724
push esi
call fcn.0043a98b
push esi
call fcn.0043b8ae
push esi
call fcn.0043a309
push edi
call fcn.004167f4
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x487288
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.004396df
add esp, 0x440
ret 0xc