Function at 0x140039930
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1f0
mov qword [r11 - 0xf8], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
mov r13, rcx
mov qword [r11 - 0x130], rcx
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], sil
lea r8d, [rsi + 4]
lea rdx, str.null
lea rcx, [rsp + 0x60]
call fcn.14001d4c0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x140], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x150], xmm1
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], sil
lea rdx, [rsp + 0x140]
mov rcx, r13
call fcn.14002c1e0
nop
lea rcx, [rsp + 0x60]
call fcn.1400176a0
nop
mov rcx, qword [r13]
mov eax, 6
xchg dword [rcx + 0x40], eax
lea rcx, str.NITRO_LOG_LEVEL
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r12, rax
test rax, rax
je 0x140039fe1
lea rcx, [rsp + 0xc0]
call fcn.140041920
nop
movdqa xmm0, xmmword [0x1400cafe0]
movdqu xmmword [rsp + 0x190], xmm0
mov byte [rsp + 0x180], sil
lea r8d, [rsi + 5]
lea rdx, str.nitro
lea rcx, [rsp + 0x180]
call fcn.14001d4c0
nop
call fcn.140042ea0
lea r8, [rsp + 0x180]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140040ca0
nop
mov rdx, qword [rsp + 0x198]
cmp rdx, 0x10
jb 0x140039ab6
inc rdx
mov rcx, qword [rsp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039ab0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039ab0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f1b8
nop
cmp qword [rsp + 0x30], 0
jne 0x140039d34
mov r15, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rdi
mov ecx, 0xa8
call fcn.14005f8a8
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140039c4d
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj_class_spdlog::logger_.0
mov qword [r14], rax
lea rbx, [r14 + 0x10]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x80], 0
mov r8d, 5
lea rdx, str.nitro
lea rcx, [rsp + 0x80]
call fcn.14001d4c0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x58], rax
lea rax, vtable.spdlog::logger.0
mov qword [rbx], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx + 8], xmm0
movups xmm1, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x18], xmm1
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x80], 0
lea rcx, [rbx + 0x28]
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
movzx r9d, byte [rsp + 0x20]
mov r8, r15
mov rdx, rdi
call fcn.14002bc60
mov dword [rbx + 0x40], 2
mov dword [rbx + 0x44], 6
lea rdx, [rbx + 0x48]
mov qword [rdx + 0x38], rsi
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x90], 1
mov qword [rsp + 0x58], rbx
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_17c844514e4938616b7864267bf59938___void__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_.0
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1a8], rbx
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x1d8], rax
lea rcx, [rsp + 0x1a0]
call fcn.140044df0
mov rcx, qword [rsp + 0x1d8]
test rcx, rcx
je 0x140039c3e
mov rax, qword [rcx]
lea rdx, [rsp + 0x1a0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x1d8], rsi
lea rcx, [rsp + 0x80]
call fcn.1400176a0
jmp 0x140039c50
mov r14, rsi
lea rax, [r14 + 0x10]
mov qword [rsp + 0x30], rax
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x38], r14
mov edi, 0xffffffff
test rbx, rbx
je 0x140039c9b
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140039c96
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140039c96
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, qword [rsp + 0x38]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd8], xmm0
test r14, r14
je 0x140039cb1
lock inc dword [r14 + 8]
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xf0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xd8], xmm1
call fcn.140042ea0
nop
lea rdx, [rsp + 0xf0]
mov rcx, rax
call fcn.140043960
nop
mov rbx, qword [rsp + 0xe0]
test rbx, rbx
je 0x140039d39
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140039d39
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140039d39
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140039d39
mov edi, 0xffffffff
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0xa0], 0
mov r8d, 0x1a
lea rdx, str._H:_M:_S:_f__t:_t____l___v
lea rcx, [rsp + 0xa0]
call fcn.14001d4c0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0x30]
mov ecx, 0x90
call fcn.14005f8a8
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140039e2b
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x118], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x100], 0
mov r8d, 2
lea rdx, [0x1400cdc10]
lea rcx, [rsp + 0x100]
call fcn.14001d4c0
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rsp + 0x160], xmm0
movups xmm1, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x170], xmm1
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0xa0], 0
lea r9, [rsp + 0x100]
xor r8d, r8d
lea rdx, [rsp + 0x160]
mov rcx, rbx
call fcn.140039090
jmp 0x140039e2e
mov rax, rsi
mov qword [rsp + reloc.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_], rsi
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.140044360
nop
lea rcx, [rsp + 0xa0]
call fcn.1400176a0
mov rcx, qword [r13]
mov qword [rsp + 0x130], rcx
mov rax, qword [rsp + 0x30]
mov qword [r13], rax
mov qword [rsp + 0x30], rcx
mov rbx, qword [r13 + 8]
mov qword [rsp + 0x138], rbx
mov rax, qword [rsp + 0x38]
mov qword [r13 + 8], rax
mov qword [rsp + 0x38], rbx
lea r8, str.trace
lea r9, str.TDIWEOC
nop dword [rax + rax]
cmp r8, r9
je 0x140039f42
mov rax, qword [r8]
cmp byte [rax], 0
je 0x140039ecf
mov rdx, r12
sub rdx, rax
movzx ecx, byte [rax + rdx]
test cl, cl
je 0x140039ecf
cmp byte [rax], cl
jne 0x140039fd0
inc rax
cmp byte [rax], 0
jne 0x140039eb7
cmp byte [r12], 0
je 0x140039fd0
call fcn.140042ea0
mov rbx, rax
mov rcx, rax
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
je 0x140039ef5
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
mov rdx, qword [rbx + 0xf8]
mov rax, qword [rdx]
cmp rax, rdx
je 0x140039f23
nop dword [rax]
nop dword [rax + rax]
mov r9, qword [rax + 0x30]
mov r8d, esi
xchg dword [r9 + 0x40], r8d
mov rax, qword [rax]
cmp rax, rdx
jne 0x140039f10
mov dword [rbx + 0x138], esi
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_unlock
test eax, eax
je 0x140039f3d
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140039f6f
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140039f6f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140039f6f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140039fe1
lea r8, [rsp + 0xc0]
mov rdx, qword [rsp + 0xc8]
call fcn.14002b260
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039fdb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039fdb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
inc esi
add r8, 8
jmp 0x140039ea0
call fcn.14005f1b8
nop
jmp 0x140039feb
mov rax, r13
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.14005f850
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret