Function at 0x420620
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x42d33b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esp + 0x10], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
lea ebp, [esi + 0x2c]
mov dword [esp + 0x44], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
lea edi, [esi + 0x3c]
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.0041c980
mov eax, dword [edi + 8]
mov dword [edi], 0x42eadc
mov dword [edi + 0x14], eax
mov word [edi + 0x1414], bx
mov edi, dword [esp + 0x4c]
cmp edi, ebx
mov byte [esp + 0x44], 2
je 0x420818
mov dword [esi + 0x1464], ebx
mov ecx, dword [edi]
mov dword [esi], ecx
mov dword [esi + 0x1468], edi
mov edx, dword [edi + 0x28]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
inc edx
push eax
mov dword [edi + 0x24], edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 0x1464]
cmp ecx, dword [edi + 0x1464]
jge 0x4207af
nop
sub esp, 8
mov eax, esp
mov dword [esp + 0x54], esp
mov byte [eax + 1], 0
mov byte [eax], 0
mov eax, dword [esi + 0x1464]
mov ecx, dword [edi + 0x30]
sub esp, 0x1c
lea edx, [eax + eax*8]
lea eax, [ecx + edx*4]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x6c], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x6c], 2
call fcn.0041ff00
add esp, 0x28
push eax
mov ecx, ebp
mov byte [esp + 0x48], 4
call fcn.00404b10
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 5
call fcn.00403800
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esi + 0x1464]
mov edx, dword [edi + 0x30]
mov eax, dword [esi + 0x34]
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
mov dl, byte [ecx + 0x1c]
sub eax, 0x24
mov byte [eax + 0x1c], dl
mov dl, byte [ecx + 0x1d]
mov byte [eax + 0x1d], dl
mov ecx, dword [ecx + 0x20]
and dl, 0xdf
mov dword [eax + 0x20], ecx
mov cl, dl
cmp cl, 0xb
mov byte [eax + 0x1d], dl
jne 0x420796
mov ebx, dword [eax + 0x20]
mov edx, dword [ebx + 0x28]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
inc edx
push eax
mov dword [ebx + 0x24], edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
mov ecx, dword [esi + 0x1464]
inc ecx
mov dword [esi + 0x1464], ecx
cmp ecx, dword [edi + 0x1464]
jl 0x4206d0
mov eax, dword [esi + 0x1464]
xor edi, edi
cmp eax, ebx
jle 0x4207f1
xor ebp, ebp
mov ebx, 0x10
mov edx, dword [esi + 0x30]
add ebp, 0x24
mov ecx, dword [edx + ebp - 0xc]
lea eax, [edx + ebp - 0x24]
inc edi
cmp ecx, ebx
jb 0x4207da
mov eax, dword [eax + 4]
jmp 0x4207dd
add eax, 4
push edi
push eax
lea ecx, [esi + 0x3c]
call fcn.0041d2f0
cmp edi, dword [esi + 0x1464]
jl 0x4207c2
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x1460], ebx
mov dword [esi + 0x145c], ebx
mov dword [esi + 0x1454], ebx
mov dword [esi + 0x1458], ebx
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x3c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4