Function at 0x102cd16
Capabilities:
Check mutex on windows

Disassembly:
push 0x230
mov eax, 0x1031766
call fcn.0102b282
mov esi, ecx
xor ecx, ecx
cmp dword [esi], ecx
jne 0x102cd4f
cmp dword [ebp + 0xc], ecx
jne 0x102cd47
push 0x1011020
push ecx
push 0x10
push 0x1035128
call fcn.0102ca9a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x102d222
mov eax, dword [esi + 8]
cmp eax, ecx
jne 0x102d170
cmp dword [esi + 4], ecx
jne 0x102d093
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.0101c7dc
lea ecx, [ebp - 0x238]
test eax, eax
jne 0x102ceb2
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [esi]
call fcn.0101f7a6
xor ebx, ebx
cmp eax, ebx
jne 0x102cde2
mov edi, dword [ebp - 0x22c]
cmp edi, 4
ja 0x102cf49
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
cmp eax, ebx
jl 0x102ce90
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 0x102ce7f
cmp dword [ebp - 0x22c], ebx
je 0x102ce7f
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 0x102ce40
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
cmp edi, 4
ja 0x102ce70
cmp dword [ebp + 0xc], ebx
jne 0x102cf19
lea eax, [ebp - 0x218]
push eax
push 0x1010fa8
push ebx
push 0x10
jmp 0x102cea3
mov dword [ebp - 0x23c], 1
jmp 0x102cf49
cmp dword [ebp + 0xc], ebx
jne 0x102cf19
push eax
push 0x1010f40
jmp 0x102ce9f
cmp dword [ebp + 0xc], ebx
jne 0x102cf19
push eax
push 0x1010ed8
push 2
push 2
push 0x1035128
call fcn.0102ca9a
add esp, 0x14
jmp 0x102cf19
push 0x20019
push ebx
push edi
call fcn.0101c831
test eax, eax
jne 0x102cf1d
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [esi]
lea ecx, [ebp - 0x238]
call fcn.0101f7a6
test eax, eax
jne 0x102ceec
mov edi, dword [ebp - 0x22c]
cmp edi, 4
ja 0x102cf49
cmp dword [ebp + 0xc], 0
jne 0x102cf19
test eax, eax
jle 0x102cf00
and eax, 0xffff
or eax, 0x80070000
push eax
push dword [esi]
push 0x1010e40
push 2
push 2
push 0x1035128
call fcn.0102ca9a
add esp, 0x18
xor edi, edi
jmp 0x102cf49
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x102cf49
cmp eax, edi
jle 0x102cf32
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x1010dc8
push 2
push 2
push 0x1035128
call fcn.0102ca9a
add esp, 0x14
mov eax, dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102cf4e
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.0102a64e
pop ecx
mov dword [esi + 4], eax
test eax, eax
jne 0x102cfa9
cmp dword [ebp + 0xc], eax
jne 0x102cf99
push 0x1010d70
push 0
push 0x10
push 0x1035128
call fcn.0102ca9a
add esp, 0x10
lea ecx, [ebp - 0x238]
call fcn.0101c7be
jmp 0x102cd47
test edi, edi
je 0x102cfed
push dword [esi]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
test eax, eax
jne 0x102cfed
push 0x1010d6c
push ebx
push dword [esi + 4]
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
test eax, eax
jne 0x102cfed
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 0x102d016
push dword [esi]
push ebx
push dword [esi + 4]
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
test eax, eax
je 0x102d00f
cmp dword [ebp + 0xc], 0
jne 0x102cf99
push 0x1010d00
jmp 0x102cf88
and dword [ebp - 0x23c], 0
xor edi, edi
cmp dword [ebp - 0x23c], edi
je 0x102d084
push 1
lea eax, [ebp - 0x218]
push eax
push dword [esi]
lea ecx, [ebp - 0x238]
call fcn.0101c890
cmp eax, edi
je 0x102d084
cmp dword [ebp + 0xc], edi
jne 0x102d05e
push dword [esi]
lea eax, [ebp - 0x218]
push eax
push 0x1010c70
push 2
push 2
push 0x1035128
call fcn.0102ca9a
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 0x102d084
cmp dword [ebp + 0xc], edi
jne 0x102cf99
push 0x1010d00
push edi
jmp 0x102cf8a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0101c7be
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 0x102d0f7
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 0x102d0f7
test edi, edi
jle 0x102d0dd
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x1010c10
push 5
push 2
mov ebx, 0x1035128
push ebx
call fcn.0102ca9a
add esp, 0x14
jmp 0x102d0fc
mov ebx, 0x1035128
mov eax, dword [esi + 8]
test eax, eax
jne 0x102d12c
cmp dword [ebp + 0xc], eax
jne 0x102d220
test edi, edi
jle 0x102d11c
and edi, 0xffff
or edi, 0x80070000
push edi
push 0x1010b88
push 0
push 0x10
push ebx
jmp 0x102d218
cmp edi, 0xb7
je 0x102d170
cmp dword [ebp + 0xc], 0
mov dword [esi + 0xc], 1
jne 0x102cd47
test edi, edi
jle 0x102d155
and edi, 0xffff
or edi, 0x80070000
push edi
push dword [esi + 4]
push 0x1010b18
push 5
push 2
push ebx
call fcn.0102ca9a
add esp, 0x18
jmp 0x102cd47
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x102
cmp eax, ecx
jne 0x102d1ae
cmp dword [ebp + 0xc], 0
jne 0x102d1a3
push ecx
push dword [ebp + 8]
push 0x1010a68
push 2
push 2
push 0x1035128
call fcn.0102ca9a
add esp, 0x18
xor eax, eax
cmp eax, dword [ebp + 8]
sbb eax, eax
neg eax
jmp 0x102d222
mov ecx, 0x80
cmp eax, ecx
jne 0x102d1d6
cmp dword [ebp + 0xc], 0
jne 0x102d1fb
push ecx
push 0x10109c0
push 2
push 2
push 0x1035128
call fcn.0102ca9a
add esp, 0x14
jmp 0x102d1fb
test eax, eax
jne 0x102d203
cmp dword [ebp + 0xc], eax
jne 0x102d1fb
push dword [esi + 0xc]
push dword [esi + 4]
push 0x1010938
push 5
push 2
push 0x1035128
call fcn.0102ca9a
add esp, 0x18
inc dword [esi + 0xc]
jmp 0x102cd47
cmp dword [ebp + 0xc], 0
jne 0x102d220
push eax
push 0x10108b8
push 1
push 0x10
push 0x1035128
call fcn.0102ca9a
add esp, 0x14
xor eax, eax
call fcn.0102b314
ret 8