Function at 0x18011c830
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov word [rsp + 0x18], r8w
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.18011c4e0
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x18011c949
cmp dword [rsp + 0x70], 0xb7
je 0x18011c93f
mov dword [rsp + 0x20], 0
mov r9d, 1
lea r8, [0x18013ecd0]
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.180117530
mov r8d, dword [rsp + 0x70]
lea rdx, str.___CMsgAdapter_Create___cant_create_kernel_buffer_ERROR:_d_
mov rcx, rax
call fcn.180118950
lea rcx, [rsp + 0x80]
call fcn.1801175b0
mov rax, qword [rsp + 0x58]
jmp 0x18011cc93
mov ecx, 0x128
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18011c968
xor eax, eax
jmp 0x18011cc93
mov r8d, 0x128
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0xd8]
mov dword [rax + 0xd0], ecx
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0xe8]
mov dword [rax + 0xd8], ecx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0xc8], rcx
mov rax, qword [rsp + 0x58]
add rax, 0x48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0x78]
call fcn.1801232e0
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0
jne 0x18011ca08
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
call fcn.18011cca0
xor eax, eax
jmp 0x18011cc93
mov rax, qword [rsp + 0x58]
add rax, 0x78
mov rcx, rax
call fcn.18010d590
mov rcx, qword [rsp + 0x58]
call fcn.18011b160
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x18011ca4f
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
call fcn.18011cca0
xor eax, eax
jmp 0x18011cc93
movzx ecx, word [rsp + 0xe0]
call fcn.180122c20
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x10], 0
jne 0x18011ca92
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
call fcn.18011cca0
xor eax, eax
jmp 0x18011cc93
xor r9d, r9d
mov r8d, 1
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0xb8], rax
xor r9d, r9d
mov r8d, 1
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0xc0], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x30], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0xb8], 0
je 0x18011cb69
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0xc0], 0
je 0x18011cb69
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x20], 0
je 0x18011cb69
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x30], 0
je 0x18011cb69
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x38], 0
jne 0x18011cb8a
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
call fcn.18011cca0
xor eax, eax
jmp 0x18011cc93
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xf0]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x28], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
lea r8, [0x18011bf30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x40], 0
jne 0x18011cc07
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
call fcn.18011cca0
xor eax, eax
jmp 0x18011cc93
mov rax, qword [rsp + 0x58]
add rax, 0xe0
lea r8, [0x18011af40]
mov edx, 3
mov rcx, rax
call fcn.18010ca60
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
call fcn.18011c0e0
mov rdx, qword [rsp + 0x58]
lea rcx, [0x180158580]
call fcn.18010d670
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18013ed60]
mov edx, 2
lea rcx, [rsp + 0xa0]
call fcn.180117530
mov r8, qword [rsp + 0x58]
lea rdx, str.___CMsgAdapter_Create___OK__Instance_0x_p_
mov rcx, rax
call fcn.180118950
lea rcx, [rsp + 0xa0]
call fcn.1801175b0
mov rax, qword [rsp + 0x58]
add rsp, 0xc8
ret