Function at 0x1400587d0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x220
mov qword [rax - 0xd0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
lea rsi, [0x140005710]
mov qword [rsp + 0x40], rsi
lea r14, [0x1400057c0]
mov qword [rsp + 0x48], r14
lea r15, [0x140005768]
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x1e9
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
xor edi, edi
mov dword [rax - 0x158], 0x1000000
xor edx, edx
lea r8d, [rdi + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.140052e50
nop
cmp qword [0x140154b20], rdi
jne 0x14006ac0a
lea rdx, [0x1401544ec]
lea ecx, [rdi + 0x28]
call fcn.14005de74
test rax, rax
je 0x14005894f
mov qword [rax + 8], rdi
lea rcx, fcn.14005d210
mov qword [rax], rcx
mov qword [rax + 0x18], rdi
lea rcx, [0x140001d20]
mov qword [rax + 0x10], rcx
mov qword [0x140154b20], rax
test rax, rax
je 0x14006ac1e
lea rax, [rsp + 0x240]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x14005c640]
mov edx, 0x40000
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14006ac7f
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [0x140154b28]
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf8], 0
jl 0x14006ad00
mov ebx, dword [rsp + 0xf8]
lea rcx, [rsp + 0xf0]
call fcn.140050f50
mov eax, ebx
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rax, rdi
jmp 0x1400588a7
lea rcx, [rsp + 0xf0]
call fcn.140050f50
xor eax, eax
jmp 0x140058931
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x1f5
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
mov dword [rsp + 0xe0], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r9, [0x14003e800]
mov r8d, 0x8007000e
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.140101d5c
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x206
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
mov dword [rsp + 0xe0], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
lea r8, [0x14003e7b0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.140103888
nop
xor edi, edi
lea r15, [0x140005768]
lea r14, [0x1400057c0]
lea rsi, [0x140005710]
jmp 0x14005890d
mov r12, qword [0x140154b20]
test r12, r12
je 0x14006ad2d
mov rax, qword [r12]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.14005e6a0]
mov edx, 1
mov rcx, r12
call rbx
mov qword [0x140154b20], rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x219
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
mov dword [rsp + 0xe0], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0xf8]
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x40]
call fcn.1400ff820
mov r9d, 1
mov r8, rax
mov edx, 0x3036
lea rcx, [rsp + 0xf0]
call fcn.14004a830
lea rcx, [rsp + 0x40]
call fcn.1400ff75c
nop
jmp 0x14005891b