Function at 0x102c927
Capabilities:
Check mutex on windows

Disassembly:
push 0x230
mov eax, 0x10312ca
call fcn.0102ada8
mov esi, ecx
xor ecx, ecx
cmp dword [esi], ecx
jne 0x102c960
cmp dword [ebp + 0xc], ecx
jne 0x102c958
push 0x1010d60
push ecx
push 0x10
push 0x1035128
call fcn.0102c6ab
add esp, 0x10
xor eax, eax
inc eax
jmp 0x102ce33
mov eax, dword [esi + 8]
cmp eax, ecx
jne 0x102cd81
cmp dword [esi + 4], ecx
jne 0x102cca4
xor eax, eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
push eax
push eax
push 0x2001f
push eax
push eax
mov ebx, 0x1002bb0
push ebx
mov edi, 0x80000002
push edi
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], 0x104
mov dword [ebp - 0x23c], eax
call fcn.0101c51c
lea ecx, [ebp - 0x238]
test eax, eax
jne 0x102cac3
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [esi]
call fcn.0101f2aa
xor ebx, ebx
cmp eax, ebx
jne 0x102c9f3
mov edi, dword [ebp - 0x22c]
cmp edi, 4
ja 0x102cb5a
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
cmp eax, ebx
jl 0x102caa1
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.ole32.dll_StringFromIID]
cmp eax, ebx
jl 0x102ca90
cmp dword [ebp - 0x22c], ebx
je 0x102ca90
push dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [ebp - 0x22c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102ca51
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
cmp edi, 4
ja 0x102ca81
cmp dword [ebp + 0xc], ebx
jne 0x102cb2a
lea eax, [ebp - 0x218]
push eax
push 0x1010ce8
push ebx
push 0x10
jmp 0x102cab4
mov dword [ebp - 0x23c], 1
jmp 0x102cb5a
cmp dword [ebp + 0xc], ebx
jne 0x102cb2a
push eax
push 0x1010c80
jmp 0x102cab0
cmp dword [ebp + 0xc], ebx
jne 0x102cb2a
push eax
push 0x1010c18
push 2
push 2
push 0x1035128
call fcn.0102c6ab
add esp, 0x14
jmp 0x102cb2a
push 0x20019
push ebx
push edi
call fcn.0101c571
test eax, eax
jne 0x102cb2e
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [esi]
lea ecx, [ebp - 0x238]
call fcn.0101f2aa
test eax, eax
jne 0x102cafd
mov edi, dword [ebp - 0x22c]
cmp edi, 4
ja 0x102cb5a
cmp dword [ebp + 0xc], 0
jne 0x102cb2a
test eax, eax
jle 0x102cb11
and eax, 0xffff
or eax, 0x80070000
push eax
push dword [esi]
push 0x1010b80
push 2
push 2
push 0x1035128
call fcn.0102c6ab
add esp, 0x18
xor edi, edi
jmp 0x102cb5a
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x102cb5a
cmp eax, edi
jle 0x102cb43
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x1010b08
push 2
push 2
push 0x1035128
call fcn.0102c6ab
add esp, 0x14
mov eax, dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102cb5f
sub eax, edx
sar eax, 1
lea ebx, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0102a176
pop ecx
mov dword [esi + 4], eax
test eax, eax
jne 0x102cbba
cmp dword [ebp + 0xc], eax
jne 0x102cbaa
push 0x1010ab0
push 0
push 0x10
push 0x1035128
call fcn.0102c6ab
add esp, 0x10
lea ecx, [ebp - 0x238]
call fcn.0101c4fe
jmp 0x102c958
test edi, edi
je 0x102cbfe
push dword [esi]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
test eax, eax
jne 0x102cbfe
push 0x1010aac
push ebx
push dword [esi + 4]
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
test eax, eax
jne 0x102cbfe
add edi, 0xfffffffd
push edi
lea eax, [ebp - 0x216]
push eax
push ebx
push dword [esi + 4]
call sub.msvcrt.dll_wcsncat_s
add esp, 0x10
test eax, eax
je 0x102cc27
push dword [esi]
push ebx
push dword [esi + 4]
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
test eax, eax
je 0x102cc20
cmp dword [ebp + 0xc], 0
jne 0x102cbaa
push 0x1010a40
jmp 0x102cb99
and dword [ebp - 0x23c], 0
xor edi, edi
cmp dword [ebp - 0x23c], edi
je 0x102cc95
push 1
lea eax, [ebp - 0x218]
push eax
push dword [esi]
lea ecx, [ebp - 0x238]
call fcn.0101c5d0
cmp eax, edi
je 0x102cc95
cmp dword [ebp + 0xc], edi
jne 0x102cc6f
push dword [esi]
lea eax, [ebp - 0x218]
push eax
push 0x10109b0
push 2
push 2
push 0x1035128
call fcn.0102c6ab
add esp, 0x18
push dword [esi]
push ebx
push dword [esi + 4]
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
test eax, eax
je 0x102cc95
cmp dword [ebp + 0xc], edi
jne 0x102cbaa
push 0x1010a40
push edi
jmp 0x102cb9b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0101c4fe
push dword [esi + 4]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
call ebx
mov edi, eax
cmp edi, 5
jne 0x102cd08
push dword [esi + 4]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 8], eax
call ebx
cmp dword [ebp + 0xc], 0
mov edi, eax
jne 0x102cd08
test edi, edi
jle 0x102ccee
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x1010950
push 5
push 2
mov ebx, 0x1035128
push ebx
call fcn.0102c6ab
add esp, 0x14
jmp 0x102cd0d
mov ebx, 0x1035128
mov eax, dword [esi + 8]
test eax, eax
jne 0x102cd3d
cmp dword [ebp + 0xc], eax
jne 0x102ce31
test edi, edi
jle 0x102cd2d
and edi, 0xffff
or edi, 0x80070000
push edi
push 0x10108c8
push 0
push 0x10
push ebx
jmp 0x102ce29
cmp edi, 0xb7
je 0x102cd81
cmp dword [ebp + 0xc], 0
mov dword [esi + 0xc], 1
jne 0x102c958
test edi, edi
jle 0x102cd66
and edi, 0xffff
or edi, 0x80070000
push edi
push dword [esi + 4]
push 0x1010858
push 5
push 2
push ebx
call fcn.0102c6ab
add esp, 0x18
jmp 0x102c958
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x102
cmp eax, ecx
jne 0x102cdbf
cmp dword [ebp + 0xc], 0
jne 0x102cdb4
push ecx
push dword [ebp + 8]
push 0x10107a8
push 2
push 2
push 0x1035128
call fcn.0102c6ab
add esp, 0x18
xor eax, eax
cmp eax, dword [ebp + 8]
sbb eax, eax
neg eax
jmp 0x102ce33
mov ecx, 0x80
cmp eax, ecx
jne 0x102cde7
cmp dword [ebp + 0xc], 0
jne 0x102ce0c
push ecx
push 0x1010700
push 2
push 2
push 0x1035128
call fcn.0102c6ab
add esp, 0x14
jmp 0x102ce0c
test eax, eax
jne 0x102ce14
cmp dword [ebp + 0xc], eax
jne 0x102ce0c
push dword [esi + 0xc]
push dword [esi + 4]
push 0x1010678
push 5
push 2
push 0x1035128
call fcn.0102c6ab
add esp, 0x18
inc dword [esi + 0xc]
jmp 0x102c958
cmp dword [ebp + 0xc], 0
jne 0x102ce31
push eax
push 0x10105f8
push 1
push 0x10
push 0x1035128
call fcn.0102c6ab
add esp, 0x14
xor eax, eax
call fcn.0102ae3a
ret 8