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

Disassembly:
sub esp, 0x448
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x444], eax
mov eax, dword [esp + 0x44c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x450]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x454]
mov dword [esp + 8], eax
push ebp
mov ebp, ecx
test eax, eax
jne 0x416db6
xor al, al
pop ebp
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.004440d2
add esp, 0x448
ret 0xc
mov eax, dword [ebp + 0x400]
push ebx
push esi
push edi
test eax, eax
je 0x416dcc
cmp eax, 2
jne 0x417015
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x200
lea eax, [esp + 0x58]
push eax
push str.TMCacheFileMutex
call fcn.00416610
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push 0x1388
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x416e47
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470ed0
push eax
push esi
push str.failed_to_WaitForSingleObject_CACHE_FILE_MUTEX__error_code:__d__error:__s
push 0xb9
push str.c:_rhub2codeutilitymyconfigure.cpp
push 3
push str.MyConfigure::WriteConfigure
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x24
lea ebx, [ebp + 0x604]
push 0x47e2b0
push ebx
call fcn.0044f9fe
mov esi, eax
add esp, 8
test esi, esi
jne 0x416ea5
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0x404]
push eax
push str.failed_to_open__s
push 0xc7
push str.c:_rhub2codeutilitymyconfigure.cpp
push 3
push str.MyConfigure::WriteConfigure
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x1c
xor al, al
jmp 0x417017
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00455621
mov eax, dword [esp + 0x40]
inc eax
push eax
call fcn.0041d95f
push esi
push 1
push dword [esp + 0x4c]
mov ebx, eax
push ebx
mov dword [esp + 0x2c], ebx
call fcn.00455bc8
push esi
call fcn.0044f82c
mov eax, dword [esp + 0x58]
add esp, 0x20
mov byte [eax + ebx], 0
mov ebx, dword [esp + 0x18]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416ee8
mov eax, dword [esp + 0x38]
sub ecx, edx
inc eax
add eax, ecx
push eax
call fcn.0041d95f
mov esi, eax
push esi
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x24]
call fcn.00414540
push dword [esp + 0x28]
mov bl, al
call fcn.0041d95a
add esp, 0x1c
test bl, bl
jne 0x416f3e
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x417017
lea eax, [ebp + 0x604]
push 0x47dd40
push eax
call fcn.0044f9fe
mov edi, eax
add esp, 8
test edi, edi
jne 0x416fa2
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0x404]
push eax
push str.failed_to_open__s_for_writing
push 0xf0
push str.c:_rhub2codeutilitymyconfigure.cpp
push 3
push str.MyConfigure::WriteConfigure
push dword [0x4a9068]
call fcn.0040ee70
push esi
call fcn.0041d95a
add esp, 0x20
xor al, al
jmp 0x417017
mov eax, dword [ebp + 0x400]
test eax, eax
jne 0x416fc4
push str.____CACHE___
push esi
call fcn.00447260
add esp, 8
test eax, eax
je 0x416fdf
mov byte [eax + 0xc], 0
jmp 0x416fdf
cmp eax, 2
jne 0x416fdf
push str.____Configure___
push esi
call fcn.00447260
add esp, 8
test eax, eax
je 0x416fdf
mov byte [eax + 0x10], 0
push esi
push 0x47cce0
push edi
call fcn.0040e260
push edi
call fcn.0045592b
push edi
call fcn.0044f82c
push esi
call fcn.0041d95a
add esp, 0x18
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.004440d2
add esp, 0x448
ret 0xc