Function at 0x10001f3b
Capabilities:
Check mutex on windows

Disassembly:
push 0xefc
push 0x100155c8
call fcn.10010e44
wait
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.10001d87
test al, al
jne 0x10001f75
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001f5f
push str.lp_config_thread_mtx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x30], eax
mov esi, 0xea60
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x10001fa0
cmp eax, 0x80
je 0x10001fa0
push esi
jmp 0x10001f6d
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.10002e42
lea eax, [ebp - 0x2c]
push eax
call fcn.10002da6
push ebx
call fcn.10004e01
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push edx
push eax
call fcn.10004dbe
add esp, 0x1c
mov eax, dword [ebp - 0x2c]
fild dword [ebp - 0x2c]
test eax, eax
jge 0x10001fe1
fadd qword [0x10014910]
fcompp
fnstsw ax
test ah, 0x41
jp 0x100021f1
mov byte [ebp - 0x384], bl
mov esi, 0x1ff
push esi
push ebx
lea eax, [ebp - 0x383]
push eax
call fcn.10004cd0
mov byte [ebp - 0x184], bl
push 0xfe
push ebx
lea eax, [ebp - 0x183]
push eax
call fcn.10004cd0
mov byte [ebp - 0x500], bl
push 0x17b
push ebx
lea eax, [ebp - 0x4ff]
push eax
call fcn.10004cd0
mov byte [ebp - 0x700], bl
push esi
push ebx
lea eax, [ebp - 0x6ff]
push eax
call fcn.10004cd0
mov byte [ebp - 0x84], bl
push 0x3f
push ebx
lea eax, [ebp - 0x83]
push eax
call fcn.10004cd0
lea eax, [ebp - 0x84]
push eax
call fcn.100029f6
add esp, 0x40
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x84]
push eax
push str.crc:
push str.KbAFN0tvTG6od2K3Pr6U
mov eax, 0x10014770
mov ebx, 0xff
lea edi, [ebp - 0x184]
call fcn.10003226
add esp, 0x1c
mov dword [ebp - 0x40], 0x17c
lea eax, [ebp - 0x40]
push eax
mov eax, edi
push eax
call fcn.10004bb0
pop ecx
push eax
mov eax, edi
push eax
lea eax, [ebp - 0x500]
call fcn.10001afd
lea eax, [ebp - 0x500]
push eax
lea edi, [ebp - 0x700]
call fcn.10001da3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, edi
push eax
push 0x10014774
mov eax, str._ctg
lea ebx, [esi + 1]
lea edi, [ebp - 0x384]
call fcn.10003226
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
mov eax, edi
push eax
mov esi, str.cf.livingplay.com
push esi
lea edi, [ebp - 0x28]
call fcn.10001c2a
add esp, 0x3c
xor ebx, ebx
cmp eax, ebx
jle 0x10002146
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x384]
push eax
push esi
call fcn.10001c2a
add esp, 0x10
cmp eax, ebx
jle 0x10002146
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x384]
push eax
push esi
call fcn.10001c2a
add esp, 0x10
cmp dword [ebp - 0x24], ebx
jbe 0x100021e9
lea esi, [ebp - 0xf0c]
mov eax, dword [ebp - 0x28]
call fcn.100022c4
test al, al
je 0x100021e9
sub esp, 0x80c
mov ecx, 0x203
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10001ee5
add esp, 0x80c
cmp eax, 1
jne 0x1000218c
inc dword [0x1001952c]
jmp 0x10002192
mov dword [0x1001952c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
call fcn.10002de9
pop ecx
mov eax, dword [ebp - 0xf04]
cmp dword [ebp - 0x34], eax
jne 0x100021b3
cmp eax, ebx
jne 0x100021ef
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
call fcn.10002243
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [ebp - 0x20]
call fcn.10002cc1
push dword [ebp - 0xf04]
call fcn.10002d95
pop ecx
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100021ef
inc dword [0x1001952c]
xor ebx, ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1001952c], 3
jle 0x1000221e
push ebx
push 0x36ee80
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [0x1001952c], ebx
push ebx
push 0xea60
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x10001f5f