Function at 0x416dd0
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 0x416e26
xor al, al
pop ebp
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.00444138
add esp, 0x448
ret 0xc
mov eax, dword [ebp + 0x400]
push ebx
push esi
push edi
test eax, eax
je 0x416e3c
cmp eax, 2
jne 0x417085
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x200
lea eax, [esp + 0x58]
push eax
push str.TMCacheFileMutex
call fcn.00416680
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 0x416eb7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
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.0040eee0
add esp, 0x24
lea ebx, [ebp + 0x604]
push 0x47e2e8
push ebx
call fcn.0044fa5e
mov esi, eax
add esp, 8
test esi, esi
jne 0x416f15
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.0040eee0
add esp, 0x1c
xor al, al
jmp 0x417087
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00455681
mov eax, dword [esp + 0x40]
inc eax
push eax
call fcn.0041d9bf
push esi
push 1
push dword [esp + 0x4c]
mov ebx, eax
push ebx
mov dword [esp + 0x2c], ebx
call fcn.00455c28
push esi
call fcn.0044f88c
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 0x416f58
mov eax, dword [esp + 0x38]
sub ecx, edx
inc eax
add eax, ecx
push eax
call fcn.0041d9bf
mov esi, eax
push esi
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x24]
call fcn.004145b0
push dword [esp + 0x28]
mov bl, al
call fcn.0041d9ba
add esp, 0x1c
test bl, bl
jne 0x416fae
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x417087
lea eax, [ebp + 0x604]
push 0x47dd78
push eax
call fcn.0044fa5e
mov edi, eax
add esp, 8
test edi, edi
jne 0x417012
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.0040eee0
push esi
call fcn.0041d9ba
add esp, 0x20
xor al, al
jmp 0x417087
mov eax, dword [ebp + 0x400]
test eax, eax
jne 0x417034
push str.____CACHE___
push esi
call fcn.004472c0
add esp, 8
test eax, eax
je 0x41704f
mov byte [eax + 0xc], 0
jmp 0x41704f
cmp eax, 2
jne 0x41704f
push str.____Configure___
push esi
call fcn.004472c0
add esp, 8
test eax, eax
je 0x41704f
mov byte [eax + 0x10], 0
push esi
push 0x47cce0
push edi
call fcn.0040e2d0
push edi
call fcn.0045598b
push edi
call fcn.0044f88c
push esi
call fcn.0041d9ba
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.00444138
add esp, 0x448
ret 0xc