Function at 0x424730
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
push 1
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esp + 0xc], eax
je 0x424954
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42479c
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.00424a80
test eax, eax
je 0x424954
mov edi, dword [esp + 0x18]
test edi, edi
je 0x424792
push eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00424a20
mov dword [edi], eax
pop edi
mov eax, 1
pop esi
ret 0x10
push ebx
lea ebx, [esi + 0x14]
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add esi, 4
sub ecx, eax
sar ecx, 2
cmp ecx, 1
mov edi, eax
jae 0x4248bb
mov edx, dword [esi + 4]
test edx, edx
je 0x4247d7
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4247dc
mov ecx, 1
test edx, edx
jne 0x4247e4
xor eax, eax
jmp 0x4247e9
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x1c], eax
jge 0x4247f5
xor eax, eax
lea edx, [eax*4]
push ebp
push edx
call sub.MFC42u.DLL_operatornew
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x1c], eax
mov ebx, eax
je 0x424827
push ebp
push ebx
call fcn.00424c10
add ebp, 4
add esp, 8
add ebx, 4
cmp ebp, edi
jne 0x424813
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 1
push ebx
call fcn.00423610
mov ecx, dword [esi + 8]
add ebx, 4
push ebx
push ecx
push edi
mov ecx, esi
call fcn.00414800
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00438240
mov ecx, dword [esi + 4]
push ecx
call sub.MFC42u.DLL_operatordelete
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 4
lea ecx, [edx + eax*4]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], ecx
pop ebp
jne 0x424896
mov ebx, dword [esp + 0x14]
xor ecx, ecx
push ebx
mov dword [esi + 4], edx
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
ret 0x10
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x14]
sub ecx, eax
push ebx
sar ecx, 2
mov dword [esi + 4], edx
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
ret 0x10
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x424909
lea edx, [edi + 4]
mov ecx, esi
push edx
push eax
push edi
call fcn.00414800
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00423610
mov eax, dword [esi + 8]
cmp edi, eax
je 0x424943
mov edx, dword [esp + 0x10]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x4248fa
jmp 0x424943
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.00414800
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x42492f
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x424920
lea eax, [edi + 4]
cmp edi, eax
je 0x424943
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x424936
mov eax, dword [esi + 8]
push ebx
add eax, 4
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
ret 0x10