Function at 0x104c170
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105ae2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b4
mov eax, dword [0x106406c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x74]
call fcn.01010bb7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.01010c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.01010bb7
mov byte [ebp - 4], 2
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
push 0x18
push 0
lea ecx, [ebp - 0x40]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x74]
push edx
push 4
mov ecx, dword [ebp + 8]
call fcn.0102f090
test eax, eax
jne 0x104c22f
push 0x100cdc8
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x50], 0x65b
jmp 0x104c46c
lea ecx, [ebp - 0x74]
call fcn.0103a860
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 1
jbe 0x104c25b
push 0x100f008
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x50], 0xd
jmp 0x104c46c
cmp dword [ebp - 0x78], 0
jne 0x104c27c
push 0x100ccd0
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x50], 0xd
jmp 0x104c46c
lea ecx, [ebp - 0x74]
call fcn.01039a30
push eax
lea ecx, [ebp - 0x5c]
call fcn.010115e7
mov eax, dword [0x10649ec]
push eax
push 0x104
lea ecx, [ebp - 0x28c]
push ecx
call fcn.01013f8a
test eax, eax
jge 0x104c2b4
mov dword [ebp - 0x50], 0x65b
jmp 0x104c46c
lea ecx, [ebp - 0x5c]
call fcn.01010987
push eax
push 0x104
lea edx, [ebp - 0x28c]
push edx
call fcn.01028f30
test eax, eax
jge 0x104c2de
mov dword [ebp - 0x50], 0x65b
jmp 0x104c46c
lea eax, [ebp - 0x40]
push eax
call fcn.01048380
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x104c2f5
jmp 0x104c46c
lea ecx, [ebp - 0x28c]
push ecx
push 0
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x104c31f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
jmp 0x104c46c
push 0x3e8
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x80
je 0x104c340
cmp dword [ebp - 0x50], 0
jne 0x104c349
mov dword [ebp - 0x48], 1
jmp 0x104c36c
cmp dword [ebp - 0x50], 0x102
jne 0x104c35e
mov dword [ebp - 0x50], 0x20
jmp 0x104c46c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
jmp 0x104c46c
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x29c], esp
lea edx, [ebp - 0x5c]
push edx
call fcn.01010eb5
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 2
call fcn.0104c5c0
mov dword [ebp - 0x2b4], eax
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
je 0x104c3e9
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 0x100dbe8
push 3
call fcn.0102e650
add esp, 0x10
jmp 0x104c46c
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x104c46c
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x2a0], esp
lea eax, [ebp - 0x5c]
push eax
call fcn.01010eb5
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ecx
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0104b090
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
jne 0x104c45d
mov dword [ebp - 0x50], 0x643
mov edx, dword [ebp - 0x5c]
push edx
push 0x100daf0
push 3
call fcn.0102e650
add esp, 0xc
jmp 0x104c46c
cmp dword [ebp - 0x54], 0
je 0x104c46c
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
cmp dword [ebp - 0x50], 0
je 0x104c4ee
push 0x100c100
mov ecx, dword [ebp - 0x50]
push ecx
push 3
call fcn.0102e720
add esp, 0xc
cmp dword [ebp - 0x48], 0
je 0x104c4ec
cmp dword [ebp - 0x10], 0
je 0x104c49d
mov dword [ebp - 0x294], 1
jmp 0x104c4a7
mov dword [ebp - 0x294], 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0104bde0
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0
je 0x104c4ec
mov edx, dword [ebp - 0x290]
push edx
push 0x100da58
push 3
call fcn.0102e650
add esp, 0xc
jmp 0x104c51c
lea eax, [ebp - 0x5c]
push eax
call fcn.01049d50
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0
je 0x104c51c
mov ecx, dword [ebp - 0x298]
push ecx
push 0x100ef88
push 3
call fcn.0102e650
add esp, 0xc
cmp dword [ebp - 0x48], 0
je 0x104c52c
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x4c], 0
je 0x104c53c
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
push ecx
call fcn.01048530
cmp dword [ebp - 0x58], 0
je 0x104c563
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x2a4], edx
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.0101da1e
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x2a8], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.01010c00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.01010c00
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x80]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret 0xc