Function at 0x1002105e
Capabilities:
Check mutex on windows
Create process on windows
Create process suspended

Disassembly:
push 0x68
mov eax, 0x10080d76
call fcn.1006a09e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push 0x10099720
xor edi, edi
inc edi
push edi
push ebx
mov dword [ebp - 4], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], ebx
je 0x100210a3
cmp eax, 0xb7
jne 0x100210f1
push 0xbb8
push dword [ebp - 0x14]
jmp 0x100210c2
cmp eax, 5
jne 0x100210ca
push str.Global426F00E8_A1B3_4EB2_8FF8_0950920F5D6E
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0xbb8
mov dword [ebp - 0x14], eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
cmp esi, ebx
sete al
cmp al, bl
jne 0x100210f1
cmp dword [ebp - 0x14], ebx
je 0x100210ea
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x10021314
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push ebx
push 0x10090760
call esi
cmp eax, ebx
je 0x10021114
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10021114
mov byte [ebp - 0xd], 1
jmp 0x1002113f
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x10090800
mov byte [ebp - 0xd], bl
call fcn.10002a34
mov byte [ebp - 4], 1
push eax
mov ecx, 0x100907b0
mov dword [ebp - 0x1c], edi
call fcn.10002531
mov byte [ebp - 0xe], 1
test eax, eax
jne 0x10021142
mov byte [ebp - 0xe], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x1c], 1
je 0x10021156
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10002b29
cmp byte [ebp - 0xe], bl
je 0x10021175
push ebx
push 0x10090850
call esi
cmp eax, ebx
je 0x10021172
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1002117a
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x100211e0
push 0x1009089c
push reloc.WS2_32.dll_bind
mov eax, 0x2001f
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.1000458e
test eax, eax
jne 0x100211b8
lea eax, [ebp + 8]
push eax
push 0x100908cc
lea eax, [ebp - 0x20]
push eax
call fcn.10004553
lea esi, [ebp - 0x20]
call fcn.100045cc
cmp dword [ebp + 8], ebx
jbe 0x100211d3
push 0x40010
push 0x100908e0
push str.Error__A_previous_instance_of_the_OpenCandy_SDK_is_still_running._Only_one_copy_of_the_OpenCandy_SDK_can_be_run_at_a_time._r_n_r_n__Please_close_any_OpenCandy_SDK_Developer_mode_dialog_windows._r_n__If_you_still_have_problems_close_any_rundll32.exe_processes_used_by_the_SDK.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [ebp - 0x20]
call fcn.100045cc
jmp 0x100210d3
mov eax, dword [0x100b27b4]
mov edi, 0x100b27b4
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
mov eax, dword [0x100b2774]
mov dword [ebp - 0x18], eax
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x1c]
call fcn.10002938
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10002668
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov eax, dword [0x100b27b4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
push str._OCPRD1379OpenCandy2_16
mov byte [ebp - 4], 3
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x10090b54
call fcn.1000261c
push 0x44
pop esi
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.10062b80
add esp, 0x1c
xor eax, eax
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x30]
push ecx
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x74]
push ecx
push ebx
push ebx
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
push ebx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x48], 1
mov eax, dword [eax - 0xc]
push ebx
push eax
lea esi, [ebp - 0x18]
call fcn.10002938
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne byte [ebp - 0xe]
call fcn.10002668
cmp byte [ebp - 0xe], bl
jne 0x100212c9
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10002b29
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10002b29
jmp 0x100210d3
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp + 8]
call fcn.100215e2
push dword [ebp + 8]
call fcn.100215e2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10002b29
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10002b29
cmp dword [ebp - 0x14], ebx
je 0x10021312
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x14]
call esi
mov al, 1
call fcn.1006a176
ret 4