Function at 0x480ec0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4eb80e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1a2d0], ebx
jne 0x480f3e
cmp dword [0x66f19c], 8
mov eax, dword [0x66f188]
jae 0x480f11
mov eax, 0x66f188
push eax
push ebx
lea eax, [esi + 0x1a2d4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x1a2d0], eax
je 0x480f3e
lea ecx, [esi + 0x192ac]
push 0x503b58
push ecx
call fcn.00418e60
add esp, 8
mov eax, dword [esi + 0x1a2d0]
cmp eax, ebx
je 0x480fe8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x480fb7
je 0x480f7b
cmp eax, ebx
je 0x480f6d
cmp eax, 0x80
je 0x480fbc
jmp 0x480ffc
push 0x503ba0
lea edx, [esi + 0x192ac]
push edx
jmp 0x480ff4
mov eax, dword [esi + 0x1a2d0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [esi + 0x1a2c0]
push eax
mov ecx, esi
mov dword [esi + 0x1a2d0], ebx
call edx
push 0x503be8
add esi, 0x192ac
push esi
call fcn.00418e60
add esp, 8
jmp 0x481263
cmp eax, 0xffffffff
jne 0x480ffc
mov eax, dword [esi + 0x1a2d0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1a2d0], ebx
push 0x503c74
add esi, 0x192ac
push esi
call fcn.00418e60
add esp, 8
jmp 0x481263
push 0x50397c
lea ecx, [esi + 0x192ac]
push ecx
call fcn.00418e60
add esp, 8
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
lea ebp, [esi + 0x1a2c0]
push ebp
mov ecx, esi
call eax
movzx eax, word [esi + 0x1a332]
mov ecx, 0x8235
cmp ax, cx
jae 0x481089
mov word [esi + 0x1a332], cx
mov eax, dword [esi + 0x19152]
cmp eax, ebx
je 0x48103b
mov ecx, dword [esi + 0x19156]
sub ecx, eax
sar ecx, 2
jne 0x481040
call fcn.004c000c
movzx eax, word [esi + 0x1a332]
mov edx, dword [esi + 0x19152]
mov edi, dword [edx]
push eax
push 0x503a34
mov ecx, esi
call fcn.0044da20
test al, al
jne 0x4810db
add word [esi + 0x1a332], 1
movzx eax, word [esi + 0x1a332]
movzx ecx, ax
push ecx
add esi, 0x192ac
push 0x503d30
push esi
call fcn.00418e60
jmp 0x481260
cmp ax, 0xa945
jb 0x481024
cmp dword [esi + 0x1a2d0], ebx
mov word [esi + 0x1a332], cx
je 0x481263
lea ecx, [esi + 0x192ac]
push 0x503cb8
push ecx
call fcn.00418e60
mov edx, dword [esi + 0x1a2d0]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x1a2d0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1a2d0], ebx
jmp 0x481263
mov eax, dword [esi + 0x68]
mov edx, dword [eax + 0x10]
push ebx
push edx
mov ecx, esi
call fcn.0044c9b0
test al, al
jne 0x481117
add word [esi + 0x1a332], 1
movzx eax, word [esi + 0x1a332]
movzx eax, ax
push eax
add esi, 0x192ac
push 0x503da0
push esi
call fcn.00418e60
jmp 0x481260
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0044ca10
test al, al
jne 0x481152
movzx edx, word [esi + 0x1a332]
push edx
lea eax, [esi + 0x192ac]
push 0x503e10
push eax
call fcn.00418e60
add esp, 0xc
add word [esi + 0x1a332], 1
jmp 0x481263
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x481162
push eax
call fcn.004aef39
add esp, 4
mov dword [edi + 0x14], ebx
mov ecx, dword [esi + 0x68]
mov dword [edi + 0x14], ecx
mov byte [edi + 0x1d], bl
mov ecx, dword [esi + 0x19f8a]
call fcn.004a8600
movzx ecx, word [esi + 0x1a332]
push eax
mov dword [esi + 0x19e86], eax
mov byte [esi + 0x19f8e], 1
mov word [esi + 0x19e8c], cx
mov word [esi + 0x19e8a], cx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
call fcn.004ac6d0
add esp, 4
test al, al
jne 0x481247
lea ecx, [esp + 0x14]
call fcn.00407400
movzx edx, byte [esi + 0x19e89]
movzx eax, byte [esi + 0x19e88]
movzx ecx, byte [esi + 0x19e87]
push edx
movzx edx, byte [esi + 0x19e86]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push 0x503e5c
push eax
mov dword [esp + 0x68], ebx
call fcn.00406da0
movzx ecx, word [esi + 0x1a332]
add esp, 0x18
push ecx
lea ecx, [esp + 0x18]
call fcn.00410900
push eax
lea ecx, [esp + 0x20]
call fcn.00482c60
push 0x2c
lea edx, [esp + 0x1c]
push edx
push 0x1d
lea ecx, [esi + 0x192ac]
call fcn.00418610
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esi + 0x1a2c8]
push ecx
mov ecx, esi
mov byte [esi + 0x19f8e], bl
call edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0xffffffff
call fcn.00406960
movzx eax, word [esi + 0x19e8c]
push eax
add esi, 0x192ac
push 0x503e74
push esi
call fcn.00418ea0
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x40
ret