Function at 0x140012a20
Capabilities:
Create thread
Query environment variable
Resume thread

Disassembly:
push rbx
push rsi
sub rsp, 0x38
lea rcx, str.UV_THREADPOOL_SIZE
mov dword [0x14043f04c], 4
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140012a4e
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
jmp 0x140012a54
mov eax, dword [0x14043f04c]
test eax, eax
jne 0x140012a5f
mov eax, 1
jmp 0x140012a69
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
xor esi, esi
mov dword [0x14043f04c], eax
lea rbx, [0x14043f0b8]
mov qword [0x14043f0e0], rbx
cmp eax, 4
jbe 0x140012ab7
mov ecx, eax
shl rcx, 3
test rcx, rcx
je 0x140012a97
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jmp 0x140012a9a
mov rax, rsi
mov qword [0x14043f0e0], rax
test rax, rax
jne 0x140012ab7
mov dword [0x14043f04c], 4
mov qword [0x14043f0e0], rbx
mov qword [rsp + 0x58], rbp
lea rcx, [0x14043f050]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [0x14043f090]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [0x14043f130]
xor r9d, r9d
mov qword [0x14043f130], rax
xor edx, edx
mov qword [0x14043f138], rax
xor ecx, ecx
lea rax, [0x14043f120]
mov r8d, 0x7fffffff
mov qword [0x14043f120], rax
mov qword [0x14043f128], rax
lea rax, [0x14043f0f0]
mov qword [0x14043f0f0], rax
mov qword [0x14043f0f8], rax
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140012b56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140016510
test eax, eax
jne 0x140012c4d
mov eax, dword [0x14043f04c]
mov ebp, esi
test eax, eax
je 0x140012c3e
lea r15, [0x140012730]
nop dword [rax]
mov rax, qword [0x14043f0e0]
mov ecx, ebp
lea rbx, [rax + rcx*8]
mov ecx, 0x18
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140012c4d
mov qword [rax], r15
lea r8, [0x140016a30]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov r9, r14
mov qword [r14 + 8], rax
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
jne 0x140012bed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, r14
mov ebx, dword [rax]
call qword [0x14012a640]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
test edi, edi
jne 0x140012c4d
jmp 0x140012bfd
mov qword [rbx], rax
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x14043f04c]
inc ebp
cmp ebp, eax
jb 0x140012b70
test eax, eax
je 0x140012c3e
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140012c4d
inc esi
cmp esi, dword [0x14043f04c]
jb 0x140012c20
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140012c54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop rsi
pop rbx
ret