Function at 0x104cdf0
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x106406c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0x6e
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x250], 0
xor eax, eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
cmp dword [ebp + 8], 0
je 0x104ce91
cmp dword [ebp + 0xc], 4
je 0x104ce8b
cmp dword [ebp + 0xc], 3
je 0x104ce8b
cmp dword [ebp + 0xc], 2
jne 0x104ce91
cmp dword [ebp + 0x10], 0
jne 0x104ce9b
mov eax, 0x57
jmp 0x104d18f
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [0x1065c98], 0
jne 0x104cec3
call fcn.0104daa0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x104cec3
mov eax, dword [ebp - 0xc]
jmp 0x104d18f
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0104dca0
test eax, eax
jne 0x104cee7
mov dword [ebp - 0x18], 0x6e
mov eax, dword [ebp - 0x18]
jmp 0x104d18f
push 0x100f09c
push 0x104
lea edx, [ebp - 0x238]
push edx
call fcn.01013f8a
test eax, eax
jge 0x104cf10
mov dword [ebp - 0x18], 0x6e
mov eax, dword [ebp - 0x18]
jmp 0x104d18f
lea eax, [ebp - 8]
push eax
push 0x104
lea ecx, [ebp - 0x238]
push ecx
call fcn.0101cd30
test eax, eax
jge 0x104cf38
mov dword [ebp - 0x18], 0x6e
mov eax, dword [ebp - 0x18]
jmp 0x104d18f
mov edx, dword [ebp - 8]
add edx, 1
mov eax, 0x104
sub eax, edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.0104e5d0
test eax, eax
jge 0x104cf74
mov dword [ebp - 0x18], 0x6e
mov eax, dword [ebp - 0x18]
jmp 0x104d18f
lea ecx, [ebp - 0x250]
push ecx
call fcn.0104e390
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x104cf91
mov eax, dword [ebp - 0xc]
jmp 0x104d18f
lea edx, [ebp - 0x238]
push edx
push 0
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x104cfe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.010526e0
mov edx, dword [ebp - 0x28]
push edx
call fcn.0101d9dc
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
call fcn.0101d9dc
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x104d18f
lea ecx, [ebp - 0x250]
push ecx
call fcn.010526e0
push 0x3e8
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x104d012
cmp dword [ebp - 0xc], 0x80
jne 0x104d01b
mov dword [ebp - 0x10], 1
jmp 0x104d03e
cmp dword [ebp - 0xc], 0x102
jne 0x104d030
mov dword [ebp - 0x18], 0x20
jmp 0x104d120
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x104d120
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0104df10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x104d06c
cmp dword [ebp + 0xc], 3
jne 0x104d063
mov dword [ebp - 0x18], 2
jmp 0x104d06a
mov dword [ebp - 0x24], 1
jmp 0x104d0a8
cmp dword [ebp - 0xc], 0xb7
jne 0x104d0a1
cmp dword [ebp + 0xc], 2
jne 0x104d091
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0104e140
mov dword [ebp - 0x24], 1
jmp 0x104d09f
mov dword [ebp - 0x18], 0xb7
mov dword [ebp - 4], 1
jmp 0x104d0a8
mov dword [ebp - 0x18], 0x6e
cmp dword [ebp - 0x24], 0
je 0x104d0e4
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0104e010
test eax, eax
jne 0x104d0dd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 1
jmp 0x104d0e4
mov dword [ebp - 0x18], 0x6e
cmp dword [ebp - 4], 0
je 0x104d120
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0104e1c0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x104d112
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
jmp 0x104d120
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x104d174
cmp dword [ebp - 0x1c], 0
je 0x104d139
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0104e140
cmp dword [ebp - 0x10], 0
je 0x104d15d
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x104d156
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x104d174
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0101d9dc
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call fcn.0101d9dc
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret 0xc