Function at 0x1800057c4
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov dword [r11 + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [r11 + 8], rcx
push rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r13, r9
mov eax, edx
mov rsi, rcx
xor ebx, ebx
and dword [r11 + 0x18], ebx
xor r15d, r15d
mov qword [rsp + 0xb8], r15
lea r12, section..data
mov rcx, qword [section..data]
cmp rcx, r12
je 0x180005867
cmp byte [rcx + 0x69], 4
jb 0x18000583e
test byte [rcx + 0x6c], 2
je 0x18000583e
lea edx, [rbx + 0x19]
lea r8, [0x18004ed00]
mov rcx, qword [rcx + 0x60]
call fcn.18000649c
mov rcx, qword [section..data]
mov eax, dword [rsp + 0x98]
cmp rcx, r12
je 0x180005867
cmp byte [rcx + 0x69], 4
jb 0x180005867
test byte [rcx + 0x6c], 2
je 0x180005867
mov edx, 0x1a
mov r9d, eax
lea r8, [0x18004ed00]
mov rcx, qword [rcx + 0x60]
call fcn.1800064c0
lea r14, [rsi + 0xa8]
mov qword [rsp + 0x38], r14
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
cmp qword [rsi + 0xd8], rbx
jne 0x1800058cf
mov rcx, qword [rsi + 0xd0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
and dword [rsi + 0x9c], ebx
and qword [rsp + 0x28], rbx
and dword [rsp + 0x20], ebx
mov r9, rsi
lea r8, [0x1800063b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rsi + 0xd8], rax
test rax, rax
jne 0x1800058cb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x1800058cf
mov qword [rsi + 0x60], rax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test ebx, ebx
je 0x18000591f
mov r10, qword [section..data]
cmp r10, r12
je 0x180005a0d
cmp byte [r10 + 0x69], 4
jb 0x180005a0d
test byte [r10 + 0x6c], 2
je 0x180005a0d
mov edx, 0x1b
mov r9d, ebx
lea r8, [0x18004ed00]
mov rcx, qword [r10 + 0x60]
call fcn.1800064c0
jmp 0x180005a06
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
mov r9, qword [rsi]
xor r8d, r8d
lea edx, [r8 + 0x18]
lea rcx, [0x180046060]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], eax
mov r10, qword [section..data]
jmp 0x1800059cd
mov ecx, ebx
call fcn.180006474
mov ebx, eax
test eax, eax
jne 0x180005a0d
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov qword [rsi + 0x18], r13
mov rax, qword [rsp + 0xb0]
mov qword [rsi + 0x20], rax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, rsi
call fcn.1800055d4
mov ebx, eax
mov r10, qword [section..data]
test ebx, ebx
je 0x180005a68
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rax, qword [rsi + 0xd8]
test rax, rax
je 0x180005a3e
mov r15, rax
and qword [rsi + 0xd8], 0
mov rcx, qword [rsi + 0xd0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test r15, r15
je 0x180005a61
or edx, 0xffffffff
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov r10, qword [section..data]
cmp r10, r12
je 0x180005aca
cmp byte [r10 + 0x69], 4
jb 0x180005a9f
test byte [r10 + 0x6c], 2
je 0x180005a9f
mov edx, 0x1d
mov r9d, dword [rsp + 0xa0]
lea r8, [0x18004ed00]
mov rcx, qword [r10 + 0x60]
call fcn.1800064c0
mov r10, qword [section..data]
cmp r10, r12
je 0x180005aca
cmp byte [r10 + 0x69], 4
jb 0x180005aca
test byte [r10 + 0x6c], 2
je 0x180005aca
mov edx, 0x1e
mov r9d, ebx
lea r8, [0x18004ed00]
mov rcx, qword [r10 + 0x60]
call fcn.1800064c0
mov eax, ebx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
ret