Function at 0x18001e010
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3d0
mov rax, qword [0x180163880]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x40], rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 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 + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x80], xmm1
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop
inc r8
cmp byte [rax + r8], r15b
jne 0x18001e080
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1800042c0
nop
mov r8d, 1
lea rdx, [0x18013adec]
lea rcx, [rsp + 0x70]
call fcn.180005790
xorps xmm0, xmm0
movups xmmword [rsp + 0x230], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x240], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x230], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x240], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdi, qword [rsp + 0x240]
lea rbx, [rsp + 0x230]
cmp qword [rsp + 0x248], 0xf
cmova rbx, qword [rsp + 0x230]
call fcn.180105af0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x250]
call fcn.18000a4b0
nop
lea rcx, [rsp + 0x230]
call fcn.1800053d0
nop
lea rcx, [rsp + 0x70]
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 + 0x110]
call fcn.18000a4b0
nop
call fcn.180007c90
mov rbx, qword [rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x18001e180
call fcn.180105af0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0xf0]
call fcn.18000a4b0
nop
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0xb0]
call fcn.18000a9e0
nop
lea r8, [rsp + 0x110]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.18000a9e0
mov rbx, rax
lea rax, [rsp + 0x250]
cmp rax, rbx
je 0x18001e283
mov rdx, qword [rsp + 0x268]
cmp rdx, 7
jbe 0x18001e242
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x250]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001e23d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001e23d
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 + 0x260], xmm0
mov word [rsp + 0x250], r15w
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x250], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x260], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
lea rcx, [rsp + 0x90]
call fcn.18000cf20
nop
lea rcx, [rsp + 0xb0]
call fcn.18000cf20
nop
lea rcx, [rsp + 0xf0]
call fcn.18000cf20
nop
lea rcx, [rsp + 0x110]
call fcn.18000cf20
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x2b0]
call fcn.1800133f0
nop
xor edx, edx
lea rcx, [rsp + 0x220]
call fcn.1800083c0
nop
mov qword [rsp + 0xe8], r15
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x2b0]
movsxd rcx, dword [rax + 4]
mov rax, qword [rsp + rcx + 0x2f8]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x130]
call fcn.180014040
nop
lea r8, [rsp + 0x220]
mov rcx, rax
call fcn.1800105a0
nop
lea rcx, [rsp + 0x178]
call fcn.180010510
mov rcx, qword [rsp + 0x168]
test rcx, rcx
je 0x18001e37e
mov rax, qword [rcx]
lea rdx, [rsp + 0x130]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
nop
jmp 0x18001e39a
lea rcx, [rsp + 0x2c0]
call fcn.180005310
test rax, rax
jne 0x18001e3d0
mov rax, qword [rsp + 0x2b0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x2b0]
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 + 0x220]
mov rcx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18001e3e5
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 0x18001e698
xor eax, eax
movups xmmword [rsp + 0x230], xmm0
mov qword [rsp + 0x240], rax
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x80], xmm1
lea r8d, [rax + 1]
lea rdx, [0x18013afa4]
lea rcx, [rsp + 0x70]
call fcn.1800042c0
nop
lea r8, [rsp + 0x70]
mov rdx, r14
lea rcx, [rsp + 0x230]
call fcn.18000b2d0
nop
lea rcx, [rsp + 0x70]
call fcn.1800053d0
mov rbx, qword [rsp + 0x230]
mov r12, qword [rsp + 0x238]
cmp rbx, r12
je 0x18001e558
cmp byte [rdi], 1
jne 0x18001e4c4
mov r14, qword [rdi + 8]
mov r8, rbx
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.180017870
mov rsi, qword [rsp + 0x68]
cmp byte [rsi + 0x19], 0
jne 0x18001e4b4
lea r8, [rsi + 0x20]
mov rdx, rbx
call fcn.180019dd0
test al, al
je 0x18001e4b7
mov rsi, qword [r14]
mov rax, qword [rdi + 8]
cmp rsi, qword [rax]
je 0x18001e4c4
mov al, 1
jmp 0x18001e4c6
xor al, al
test al, al
jne 0x18001e52d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800083c0
nop
mov rdx, rbx
lea rcx, [rsp + 0xb0]
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 + 0x90]
call fcn.1800043c0
mov rdx, rax
mov rcx, rdi
call fcn.18000fa30
mov rdi, rax
add rbx, 0x20
cmp rbx, r12
jne 0x18001e480
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
movsxd rbx, dword [r13]
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180007f50
mov byte [rsp + 0x30], 5
mov qword [rsp + 0x38], rbx
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xb0]
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 + 0x220]
lea rcx, [rsp + 0x58]
call fcn.18000fbe0
mov rcx, rax
call fcn.18000b540
nop
mov rbx, qword [rsp + 0x230]
test rbx, rbx
je 0x18001e67d
mov rdi, qword [rsp + 0x238]
cmp rbx, rdi
je 0x18001e62a
mov rcx, rbx
call fcn.1800053d0
add rbx, 0x20
cmp rbx, rdi
jne 0x18001e611
mov rbx, qword [rsp + 0x230]
mov rdx, qword [rsp + 0x240]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001e661
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001e661
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 + 0x230], xmm0
mov qword [rsp + 0x240], r15
movzx edx, byte [rsp + 0x220]
lea rcx, [rsp + 0x228]
call fcn.180007f50
nop
jmp 0x18001e76b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x48], rax
movsxd rbx, dword [r13]
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.180007f50
mov byte [rsp + 0x40], 5
mov qword [rsp + 0x48], rbx
mov rdx, r14
lea rcx, [rsp + 0xb0]
call fcn.1800043c0
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.18000fa30
mov rbx, rax
mov rdx, r12
lea rcx, [rsp + 0x90]
call fcn.1800043c0
mov rdx, rax
mov rcx, rbx
call fcn.18000fa30
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
mov byte [rsp + 0x40], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov qword [rax + 8], rdx
mov qword [rsp + 0x48], rcx
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.180007f50
nop
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x58]
call fcn.18000fbe0
mov rcx, rax
call fcn.18000b540
nop
movzx edx, byte [rsp + 0x220]
lea rcx, [rsp + 0x228]
call fcn.180007f50
nop
mov rax, qword [rsp + 0x2b0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x2b0], rax
mov rax, qword [rsp + 0x2b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2ac], edx
lea rcx, [rsp + 0x2c0]
call fcn.180005130
lea rcx, [rsp + 0x2c8]
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 + 0x360]
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 + 0x250]
call fcn.18000cf20
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.180104980
add rsp, 0x3d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret