Function at 0x45b360
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ec0d2
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
push str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor ebp, ebp
xor eax, eax
push ebp
mov edi, ecx
mov ebx, edx
push ebp
mov dword [esp + 0x44], edi
mov word [ebx], ax
mov byte [esp + 0x3c], al
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
push esi
mov dword [esp + 0x38], esi
call fcn.0045c080
add esp, 4
test al, al
je 0x45b3e1
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [esp + 0x30]
mov dword [esp + 0x1d8], ebp
cmp byte [esp + 0x30], 0
je 0x45b425
mov dword [esp + 0x20], 0x80000001
mov byte [esp + 0x1d8], 1
call fcn.0045d9a0
test al, al
je 0x45b433
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x45b41e
cmp eax, 0x80000001
je 0x45b41e
push eax
call dword [section..rdata]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x45b66e
cmp edi, ebp
je 0x45b408
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.rep2
call fcn.0045ec30
mov byte [esp + 0x1d8], 2
mov edx, dword [esp + 0x28]
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
call fcn.0045de60
test al, al
jne 0x45b492
lea ecx, [esp + 0x28]
call fcn.0045ef50
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45b482
cmp eax, 0x80000001
je 0x45b482
push eax
call dword [section..rdata]
lea esi, [esp + 0x30]
call fcn.0045c160
xor al, al
jmp 0x45b66e
lea esi, [esp + 0x24]
call fcn.0044bc50
push 0x50add8
push 0x50be5c
mov eax, esi
mov byte [esp + 0x1e0], 3
call fcn.0045e200
mov edx, dword [esp + 0x2c]
add esp, 8
lea edi, [esp + 0x2c]
call fcn.0045de60
test al, al
je 0x45b69b
mov esi, dword [esp + 0x38]
xor ebp, ebp
mov byte [esp + 0x1b], 1
cmp dword [esi], ebp
je 0x45b57c
nop
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esi]
call fcn.0045ae20
add esp, 4
test al, al
je 0x45b56a
mov eax, dword [esi]
call fcn.0045c180
mov edi, eax
test edi, edi
je 0x45b56a
lea esi, [esp + 0x1c]
call fcn.0044bc50
cmp byte [esp + 0x1b], 0
mov byte [esp + 0x1d8], 4
mov eax, 0x506c24
jne 0x45b522
mov eax, 0x50bc9c
lea ecx, [esp + 0x3c]
push ecx
push 0x50bc98
push edi
push eax
push str._s_s_s_s
lea eax, [esp + 0x30]
call fcn.0045e200
mov edx, dword [esp + 0x30]
add esp, 0x14
lea edi, [esp + 0x2c]
mov byte [esp + 0x1b], 0
call fcn.0045de60
lea ecx, [esp + 0x1c]
test al, al
je 0x45b696
mov byte [esp + 0x1d8], 3
call fcn.0045ef50
mov edx, dword [esp + 0x38]
inc ebp
cmp dword [edx + ebp*4], 0
lea esi, [edx + ebp*4]
jne 0x45b4e0
xor eax, eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc4]
call fcn.0045d100
test al, al
je 0x45b5ea
cmp word [esp + 0xc4], 0
je 0x45b5ea
lea esi, [esp + 0x1c]
call fcn.0044bc50
lea ecx, [esp + 0xc4]
push ecx
push 0x50bc80
push 0x50ade0
mov eax, esi
mov byte [esp + 0x1e4], 5
call fcn.0045e200
mov edx, dword [esp + 0x28]
add esp, 0xc
lea edi, [esp + 0x2c]
call fcn.0045de60
mov ecx, esi
test al, al
je 0x45b696
call fcn.0045ef50
mov eax, dword [esp + 0x2c]
xor edx, edx
mov word [ebx + eax*2], dx
mov byte [esp + 0x1d8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b61c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1d8], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45b65a
cmp eax, 0x80000001
je 0x45b65a
push eax
call dword [section..rdata]
mov esi, dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004c9392
add esp, 0x1c8
ret
call fcn.0045ef50
lea ecx, [esp + 0x24]
call fcn.0045ef50
lea ecx, [esp + 0x28]
call fcn.0045ef50
lea eax, [esp + 0x20]
call fcn.0045dec0
lea esi, [esp + 0x30]
call fcn.0045c160
xor al, al
jmp 0x45b66e