Function at 0x180004920
Capabilities:
Create thread

Disassembly:
sub rsp, 0x98
cmp dword [0x180027b68], 0
je 0x180004955
cmp dword [0x180027b64], 0
je 0x180004943
mov dword [rsp + 0x34], 1
jmp 0x18000494b
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x180004dc6
lea rcx, [0x180027b90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x180027b64], 0
je 0x180004975
jmp 0x180004da6
call sym.comanmin.dll_char____ptr64___cdecl_colanpi_void_
mov qword [section..data], rax
call sym.comanmin.dll_char____ptr64___cdecl_colanpi2_void_
mov qword [0x180026008], rax
mov edx, 0x10
lea rcx, [0x18001b910]
call fcn.1800015c0
mov qword [rsp + 0x58], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000001
call fcn.180007ae0
mov qword [0x180027b80], rax
cmp qword [0x180027b80], 0
jne 0x1800049e0
mov edx, 0xf
lea rcx, [0x18001b928]
call fcn.1800015c0
mov qword [0x180027b80], rax
mov rcx, qword [rsp + 0x58]
call fcn.180009694
mov edx, 0xc
lea rcx, [0x18001b938]
call fcn.1800015c0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180001870
movzx eax, al
mov dword [0x180027b60], eax
mov rcx, qword [rsp + 0x48]
call fcn.180009694
cmp dword [0x180027b60], 0
je 0x180004a2d
mov byte [0x180026018], 0x69
cmp dword [0x180027b60], 0
jne 0x180004a79
mov edx, 9
lea rcx, [0x18001b948]
call fcn.1800015c0
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.180001870
movzx eax, al
mov dword [0x180027b60], eax
mov rcx, qword [rsp + 0x70]
call fcn.180009694
cmp dword [0x180027b60], 0
je 0x180004a79
mov byte [0x180026018], 0x6f
cmp dword [0x180027b60], 0
jne 0x180004ac5
mov edx, 0xa
lea rcx, [0x18001b958]
call fcn.1800015c0
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.180001870
movzx eax, al
mov dword [0x180027b60], eax
mov rcx, qword [rsp + 0x68]
call fcn.180009694
cmp dword [0x180027b60], 0
je 0x180004ac5
mov byte [0x180026018], 0x73
cmp dword [0x180027b60], 0
jne 0x180004b11
mov edx, 0xb
lea rcx, [0x18001b968]
call fcn.1800015c0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.180001870
movzx eax, al
mov dword [0x180027b60], eax
mov rcx, qword [rsp + 0x50]
call fcn.180009694
cmp dword [0x180027b60], 0
je 0x180004b11
mov byte [0x180026018], 0x66
cmp dword [0x180027b60], 0
jne 0x180004b5d
mov edx, 0xa
lea rcx, str.QW_K
call fcn.1800015c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180001870
movzx eax, al
mov dword [0x180027b60], eax
mov rcx, qword [rsp + 0x60]
call fcn.180009694
cmp dword [0x180027b60], 0
je 0x180004b5d
mov byte [0x180026018], 0x63
cmp dword [0x180027b60], 0
jne 0x180004b8a
cmp dword [0x180027b68], 0
jne 0x180004b80
mov edx, 1
lea rcx, [0x180027b68]
call fcn.180006450
jmp 0x180004db7
call fcn.180004840
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180004ba6
jmp 0x180004db7
mov edx, 0xd
lea rcx, [0x18001b440]
call fcn.1800015c0
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call fcn.180004890
mov qword [0x180027b48], rax
mov edx, 0xf
lea rcx, [0x18001b450]
call fcn.1800015c0
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call fcn.180004890
mov qword [0x180027b50], rax
mov edx, 0x11
lea rcx, [0x18001b460]
call fcn.1800015c0
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call fcn.180004890
mov qword [0x180027b58], rax
mov edx, 0x1b
lea rcx, [0x18001b478]
call fcn.1800015c0
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.1800048d0
mov qword [0x180027b70], rax
cmp qword [0x180027b70], 0
jne 0x180004c5f
mov rcx, qword [rsp + 0x40]
call fcn.180009694
jmp 0x180004db7
cmp dword [rsp + 0x30], 0xb7
jne 0x180004cb7
mov rcx, qword [0x180027b70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x180027b70], 0
mov edx, 1
lea rcx, [0x180027b68]
call fcn.180006450
mov edx, 1
lea rcx, [0x180027b64]
call fcn.180006450
mov rcx, qword [rsp + 0x40]
call fcn.180009694
jmp 0x180004da6
mov rcx, qword [rsp + 0x40]
call fcn.180009694
mov edx, 0x1a
lea rcx, [0x18001b498]
call fcn.1800015c0
mov qword [0x180027b78], rax
lea rdx, [0x180027b6c]
mov rcx, qword [0x180027b78]
call fcn.180006c70
mov eax, dword [0x180027b6c]
inc eax
mov dword [0x180027b6c], eax
mov edx, dword [0x180027b6c]
mov rcx, qword [0x180027b78]
call fcn.180006af0
call fcn.180004680
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180004710]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x180004d5a
mov rcx, qword [0x180027b70]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x180004d56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
jmp 0x180004db7
mov qword [rsp + 0x78], 0
mov edx, 0x40
lea rcx, [0x18001b4c0]
call fcn.1800015c0
mov qword [rsp + 0x80], rax
mov r8, qword [0x180027b88]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.180007670
mov edx, 1
lea rcx, [0x180027b64]
call fcn.180006450
lea rcx, [0x180027b90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x180004dc6
lea rcx, [0x180027b90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
add rsp, 0x98
ret