Function at 0x18006c530
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3c0
mov rax, qword [0x180163880]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov r13, rdx
mov r14, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
xor r15d, r15d
lea rcx, str.SystemDrive
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp byte [rax + r8], r15b
jne 0x18006c597
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1800042c0
nop
mov r8d, 1
lea rdx, [0x18013adec]
lea rcx, [rsp + 0x60]
call fcn.180005790
xorps xmm0, xmm0
movups xmmword [rsp + 0x220], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x230], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x220], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x230], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdi, qword [rsp + 0x230]
lea rbx, [rsp + 0x220]
cmp qword [rsp + 0x238], 0xf
cmova rbx, qword [rsp + 0x220]
call fcn.180105af0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x240]
call fcn.18000a4b0
nop
lea rcx, [rsp + 0x220]
call fcn.1800053d0
nop
lea rcx, [rsp + 0x60]
call fcn.1800053d0
call fcn.180105af0
lea rcx, str.config.json
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], listen
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x100]
call fcn.18000a4b0
nop
call fcn.180007c90
mov rbx, qword [rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x18006c697
call fcn.180105af0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0xe0]
call fcn.18000a4b0
nop
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0xa0]
call fcn.18000a9e0
nop
lea r8, [rsp + 0x100]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.18000a9e0
mov rbx, rax
lea rax, [rsp + 0x240]
cmp rax, rbx
je 0x18006c79a
mov rdx, qword [rsp + 0x258]
cmp rdx, 7
jbe 0x18006c759
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x240]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006c754
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006c754
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180104e24
movdqa xmm0, xmmword [0x180149940]
movdqu xmmword [rsp + 0x250], xmm0
mov word [rsp + 0x240], r15w
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x240], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x250], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
lea rcx, [rsp + 0x80]
call fcn.18000cf20
nop
lea rcx, [rsp + 0xa0]
call fcn.18000cf20
nop
lea rcx, [rsp + 0xe0]
call fcn.18000cf20
nop
lea rcx, [rsp + 0x100]
call fcn.18000cf20
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x2a0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x2a0]
call fcn.1800133f0
nop
xor edx, edx
lea rcx, [rsp + 0x210]
call fcn.1800083c0
nop
mov qword [rsp + 0xd8], r15
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x2a0]
movsxd rcx, dword [rax + 4]
mov rax, qword [rsp + rcx + 0x2e8]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x120]
call fcn.180014040
nop
lea r8, [rsp + 0x210]
mov rcx, rax
call fcn.1800105a0
nop
lea rcx, [rsp + 0x168]
call fcn.180010510
mov rcx, qword [rsp + 0x158]
test rcx, rcx
je 0x18006c895
mov rax, qword [rcx]
lea rdx, [rsp + 0x120]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
nop
jmp 0x18006c8a4
lea rcx, [rsp + 0x2b0]
call fcn.180005310
test rax, rax
jne 0x18006c8da
mov rax, qword [rsp + 0x2a0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x2a0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdi, [rsp + 0x210]
mov rcx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18006c8ef
mov rcx, qword [r14]
mov qword [rsp + 0x20], 1
lea r9, [0x18013afa4]
xor r8d, r8d
mov rdx, qword [r14 + 0x10]
call fcn.18000ee80
xorps xmm0, xmm0
cmp rax, 0xffffffffffffffff
je 0x18006cba7
xor eax, eax
movups xmmword [rsp + 0x220], xmm0
mov qword [rsp + 0x230], rax
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea r8d, [rax + 1]
lea rdx, [0x18013afa4]
lea rcx, [rsp + 0x60]
call fcn.1800042c0
nop
lea r8, [rsp + 0x60]
mov rdx, r14
lea rcx, [rsp + 0x220]
call fcn.18000b2d0
nop
lea rcx, [rsp + 0x60]
call fcn.1800053d0
mov rbx, qword [rsp + 0x220]
mov r12, qword [rsp + 0x228]
cmp rbx, r12
je 0x18006ca5f
cmp byte [rdi], 1
jne 0x18006c9cb
mov r14, qword [rdi + 8]
mov r8, rbx
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.180017870
mov rsi, qword [rsp + 0x58]
cmp byte [rsi + 0x19], 0
jne 0x18006c9bb
lea r8, [rsi + 0x20]
mov rdx, rbx
call fcn.180019dd0
test al, al
je 0x18006c9be
mov rsi, qword [r14]
mov rax, qword [rdi + 8]
cmp rsi, qword [rax]
je 0x18006c9cb
mov al, 1
jmp 0x18006c9cd
xor al, al
test al, al
jne 0x18006ca34
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800083c0
nop
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.1800043c0
mov rdx, rax
mov rcx, rdi
call fcn.18000fa30
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180007f50
nop
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.1800043c0
mov rdx, rax
mov rcx, rdi
call fcn.18000fa30
mov rdi, rax
add rbx, 0x20
cmp rbx, r12
jne 0x18006c987
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
movsxd rbx, dword [0x180167d38]
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180007f50
mov byte [rsp + 0x30], 5
mov qword [rsp + 0x38], rbx
mov rdx, r13
lea rcx, [rsp + 0xa0]
call fcn.1800043c0
mov rdx, rax
mov rcx, rdi
call fcn.18000fa30
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180007f50
nop
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x48]
call fcn.18000fbe0
mov rcx, rax
call fcn.18000b540
nop
mov rbx, qword [rsp + 0x220]
test rbx, rbx
je 0x18006cb8c
mov rdi, qword [rsp + 0x228]
cmp rbx, rdi
je 0x18006cb39
nop dword [rax]
mov rcx, rbx
call fcn.1800053d0
add rbx, 0x20
cmp rbx, rdi
jne 0x18006cb20
mov rbx, qword [rsp + 0x220]
mov rdx, qword [rsp + 0x230]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18006cb70
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006cb70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180104e24
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x220], xmm0
mov qword [rsp + 0x230], r15
movzx edx, byte [rsp + 0x210]
lea rcx, [rsp + 0x218]
call fcn.180007f50
nop
jmp 0x18006cc7d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
movsxd rbx, dword [0x180167d38]
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180007f50
mov byte [rsp + 0x30], 5
mov qword [rsp + 0x38], rbx
mov rdx, r14
lea rcx, [rsp + 0xa0]
call fcn.1800043c0
mov rdx, rax
lea rcx, [rsp + 0x210]
call fcn.18000fa30
mov rbx, rax
mov rdx, r13
lea rcx, [rsp + 0x80]
call fcn.1800043c0
mov rdx, rax
mov rcx, rbx
call fcn.18000fa30
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180007f50
nop
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x48]
call fcn.18000fbe0
mov rcx, rax
call fcn.18000b540
nop
movzx edx, byte [rsp + 0x210]
lea rcx, [rsp + 0x218]
call fcn.180007f50
nop
mov rax, qword [rsp + 0x2a0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x2a0], rax
mov rax, qword [rsp + 0x2a0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x29c], edx
lea rcx, [rsp + 0x2b0]
call fcn.180005130
lea rcx, [rsp + 0x2b8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x350]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x240]
call fcn.18000cf20
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.180104980
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret