Function at 0x442590
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480595
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b0], ecx
push 0x493d00
lea ecx, [ebp - 0x1c4]
call fcn.00401b30
push str.07462cf09e3b013003f40973f5b3301f0032850
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 4], 0
call fcn.00401b30
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
mov byte [ebp - 4], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 0x1cc]
push eax
mov byte [ebp - 4], 2
call fcn.0041c800
lea ecx, [ebp - 0x1c4]
push ecx
push eax
lea eax, [ebp - 0x1d0]
push eax
mov byte [ebp - 4], 3
call fcn.0041c800
add esp, 0x18
push dword [eax]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [ebp - 0x1d0]
add esi, 0xfffffff0
or edi, 0xffffffff
mov ebx, eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44266e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1cc]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x442691
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c0]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4426b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4426d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c4]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4426fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4428a0
lea eax, [ebp - 0x1b0]
push eax
call fcn.00456780
push eax
mov dword [ebp - 4], 4
call fcn.00417380
mov esi, eax
mov eax, dword [ebp - 0x1b0]
add eax, 0xfffffff0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1b8], eax
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44275d
mov ecx, dword [eax]
push dword [ebp - 0x1b8]
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x442792
push str.bg_mutex_exists_no_proc
lea ecx, [ebp - 0x1b4]
call fcn.00401b30
lea eax, [ebp - 0x1b4]
push eax
mov dword [ebp - 4], 5
call fcn.0041f670
mov edx, dword [ebp - 0x1b4]
add esp, 4
jmp 0x44286d
cmp esi, 1
jne 0x4427c8
push str.bg_mutex_exists_1_proc
lea ecx, [ebp - 0x1b4]
call fcn.00401b30
lea eax, [ebp - 0x1b4]
push eax
mov dword [ebp - 4], 6
call fcn.0041f670
mov edx, dword [ebp - 0x1b4]
add esp, 4
jmp 0x44286d
push str.bg_mutex_exists_too_many_proc
lea ecx, [ebp - 0x1b0]
call fcn.00401b30
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
mov dword [ebp - 4], 7
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1b4], eax
push esi
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1bc]
push eax
mov byte [ebp - 4], 8
call fcn.0041c880
push eax
lea eax, [ebp - 0x1b0]
push eax
mov byte [ebp - 4], 9
call fcn.0041f7b0
mov edx, dword [ebp - 0x1bc]
add edx, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x442844
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1b4]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x442867
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1b0]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x44288b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x442896
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x442ac9
test ebx, ebx
jne 0x4428f8
push str.bg_mutex_create_bg_side
lea ecx, [ebp - 0x1b0]
call fcn.00401b30
lea eax, [ebp - 0x1b0]
push eax
mov dword [ebp - 4], 0xa
call fcn.0041f730
mov edx, dword [ebp - 0x1b0]
add edx, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4428ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 2
jmp 0x442ac9
mov dword [ebp - 0x218], 0x493c3c
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0
mov esi, dword [0x4af2d8]
lea eax, [ebp - 0x218]
add esi, 0x10
push esi
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x1bc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4b043c]
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.00441550
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x1b0]
add esi, 8
push esi
lea ecx, [ebp - 0x1e0]
call fcn.00440ab0
lea eax, [ebp - 0x1e0]
push eax
push esi
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0xc
call fcn.0043ac10
mov byte [ebp - 4], 0xd
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00442160
test eax, eax
jne 0x442a58
push str.bg_create_win
lea ecx, [ebp - 0x1b8]
call fcn.00401b30
lea eax, [ebp - 0x1b8]
push eax
mov byte [ebp - 4], 0xe
call fcn.0041f730
mov edx, dword [ebp - 0x1b8]
add edx, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x442a1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004455e0
test al, al
jne 0x442a51
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 0x5ae4a937
div ecx
mov esi, edx
call edi
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
lea esi, [edx - 1]
test esi, esi
jg 0x442a40
mov esi, 3
jmp 0x442a76
lea ecx, [ebp - 0x218]
call fcn.00444800
mov ecx, 0x4b0408
call fcn.00444160
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0xc
mov dword [ebp - method.CBackgroundHelper.virtual_0], vtable.CBackgroundHelper.0
mov dword [ebp - method.CBrowserHost.1.virtual_0], vtable.CBackgroundHelper.1.0
mov dword [ebp - method.CBrowserHost.2.virtual_0], vtable.CBackgroundHelper.2.0
mov dword [ebp - method.CBackgroundHelper.3.virtual_0], vtable.CBackgroundHelper.3.0
call fcn.0043b1a0
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0xb
call fcn.004412c0
lea ecx, [ebp - 0x218]
call fcn.00441340
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret