Function at 0x1047d50
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a97c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
mov eax, dword [0x106406c]
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x54]
call fcn.01010c62
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x74]
call fcn.01010bb7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.01010c62
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x290]
call fcn.01010c62
mov byte [ebp - 4], 3
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x28]
call fcn.01010bb7
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp + 0x14]
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 0x1047e2a
push 0x100cdc8
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x4c], 0x65b
jmp 0x104822c
lea ecx, [ebp - 0x74]
call fcn.0103a860
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 1
jbe 0x1047e56
push 0x100deb8
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x4c], 0xd
jmp 0x104822c
cmp dword [ebp - 0x78], 0
jne 0x1047e77
push 0x100ccd0
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x4c], 0xd
jmp 0x104822c
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 0x1047eaf
mov dword [ebp - 0x4c], 0x65b
jmp 0x104822c
lea ecx, [ebp - 0x5c]
call fcn.01010987
push eax
push 0x104
lea edx, [ebp - 0x28c]
push edx
call fcn.01028f30
test eax, eax
jge 0x1047ed9
mov dword [ebp - 0x4c], 0x65b
jmp 0x104822c
lea eax, [ebp - 0x40]
push eax
call fcn.01048380
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x1047ef0
jmp 0x104822c
lea ecx, [ebp - 0x28c]
push ecx
push 0
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1047f1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
jmp 0x104822c
push 0x3e8
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x80
je 0x1047f3b
cmp dword [ebp - 0x4c], 0
jne 0x1047f44
mov dword [ebp - 0x44], 1
jmp 0x1047f67
cmp dword [ebp - 0x4c], 0x102
jne 0x1047f59
mov dword [ebp - 0x4c], 0x20
jmp 0x104822c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
jmp 0x104822c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x2b8], esp
lea edx, [ebp - 0x5c]
push edx
call fcn.01010eb5
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 4
call fcn.010498a0
mov dword [ebp - 0x2d0], eax
mov edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 0
je 0x1047fd0
jmp 0x104822c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
push 0x100487c
lea ecx, [ebp - 0x290]
call fcn.0101095c
test eax, eax
jne 0x104807a
cmp dword [ebp - 0x50], 0
je 0x1048015
cmp dword [ebp + 0x10], 0
jne 0x1048015
push 0x100c6f0
push 1
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x4c], 0
jmp 0x104822c
lea ecx, [ebp - 0x54]
push ecx
push 2
mov ecx, dword [ebp + 8]
call fcn.0102ed60
test eax, eax
jne 0x1048042
push 0x1007b18
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x4c], 0x643
jmp 0x104822c
cmp dword [ebp + 0xc], 9
jne 0x1048075
lea edx, [ebp - 0x28]
push edx
push 8
mov ecx, dword [ebp + 8]
call fcn.0102f090
test eax, eax
jne 0x1048075
push 0x100de28
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x4c], 0x643
jmp 0x104822c
jmp 0x10481ca
cmp dword [ebp + 0x10], 0
je 0x10481b2
lea ecx, [ebp - 0x2ac]
call fcn.0102e8d0
mov byte [ebp - 4], 6
push 3
push ecx
mov ecx, esp
mov dword [ebp - 0x2bc], esp
lea eax, [ebp - 0x290]
push eax
call fcn.01010eb5
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], ecx
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2ac]
call fcn.0102e9e0
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0xb7
je 0x1048112
mov edx, dword [ebp - 0x290]
push edx
push 0x100c7b8
push 3
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x4c], 0x643
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.0102e970
jmp 0x104822c
lea eax, [ebp - 0x54]
push eax
push 2
lea ecx, [ebp - 0x2ac]
call fcn.0102ed60
test eax, eax
jne 0x1048151
push 0x1007b18
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x4c], 0x643
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.0102e970
jmp 0x104822c
cmp dword [ebp + 0xc], 9
jne 0x1048196
lea ecx, [ebp - 0x28]
push ecx
push 8
lea ecx, [ebp - 0x2ac]
call fcn.0102f090
test eax, eax
jne 0x1048196
push 0x100de28
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x4c], 0x643
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.0102e970
jmp 0x104822c
lea ecx, [ebp - 0x2ac]
call fcn.0102ec20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.0102e970
jmp 0x10481ca
push 0x100c6f0
push 1
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x4c], 0
jmp 0x104822c
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x54]
push eax
push 0x1007ac8
push 1
call fcn.0102e650
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2e0], ecx
cmp dword [ebp - 0x2e0], 5
je 0x10481fe
cmp dword [ebp - 0x2e0], 9
je 0x1048214
jmp 0x104822c
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.01048580
mov dword [ebp - 0x4c], eax
jmp 0x104822c
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.010489d0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x1048291
push 0x100b178
mov eax, dword [ebp - 0x4c]
push eax
push 3
call fcn.0102e720
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x104828f
cmp dword [ebp - 0x50], 0
jne 0x104828f
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.01047950
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0
je 0x104828f
mov eax, dword [ebp - 0x2b0]
push eax
push 0x100c660
push 3
call fcn.0102e650
add esp, 0xc
jmp 0x10482bf
lea ecx, [ebp - 0x5c]
push ecx
call fcn.01049d50
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x10482bf
mov edx, dword [ebp - 0x2b4]
push edx
push 0x100c5e8
push 3
call fcn.0102e650
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x10482cf
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x48], 0
je 0x10482df
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x40]
push edx
call fcn.01048530
cmp dword [ebp - 0x58], 0
je 0x1048306
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.0101da1e
add esp, 4
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x2c4], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.01010c00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x290]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.01010c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.01010c92
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x80]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret 0x10