Function at 0x180045010
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x318]
sub rsp, 0x3f0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x180248b00]
xor rax, rsp
mov qword [rbp + 0x2d8], rax
xor r15d, r15d
xor edx, edx
call fcn.180044ec0
mov rbx, rax
test rax, rax
je 0x1800458ec
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.DataModel:__p
lea rcx, [rbp - 0x60]
call fcn.180006cc0
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.1800448d0
lea rdx, [rbp + 0x270]
mov rcx, rbx
call fcn.180044740
mov rdi, qword [rbp + 0x270]
mov rbx, rdi
mov r14, qword [rbp + 0x278]
cmp rdi, r14
je 0x180045100
nop word [rax + rax]
mov rsi, qword [rbx]
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1800450f7
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x1800450de
mov rcx, qword [rcx]
cmp rax, 0xd
jne 0x1800450f7
mov r8, rax
lea rdx, str.ScriptContext
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18004514f
add rbx, 8
cmp rbx, r14
jne 0x1800450c0
test rdi, rdi
je 0x1800458ec
mov rax, qword [rbp + 0x280]
sub rax, rdi
sar rax, 3
lea rdx, [rax*8]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800458e4
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800458e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdi, rdi
je 0x1800451a5
mov rax, qword [rbp + 0x280]
sub rax, rdi
sar rax, 3
lea rdx, [rax*8]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18004518b
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045148
mov rcx, rdi
call fcn.18017ab28
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x270], xmm0
mov qword [rbp + 0x280], r15
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.ScriptContext:__p
lea rcx, [rbp - 0x40]
call fcn.180006cc0
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.1800448d0
mov qword [rbp + 0x230], r15
mov qword [rbp + 0x250], r15
mov rax, qword [0x1802a8a20]
lea rcx, [rsi + 0x118]
lea r8, [rbp + 0x250]
lea rdx, [rbp + 0x230]
call rax
mov rcx, rax
test rax, rax
jne 0x18004520f
mov rbx, r15
jmp 0x180045222
mov rax, qword [0x1802a8a38]
add rcx, 0x88
call rax
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r15
mov r8d, 5
lea rdx, str.L:__p
lea rcx, [rbp - 0x20]
call fcn.180006cc0
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.1800448d0
test rbx, rbx
je 0x1800458ec
mov qword [0x1802a87c8], rbx
mov rcx, rbx
call fcn.18007a280
mov r13, rax
test rax, rax
je 0x1800458ec
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], r15
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Executor_Thread:__p
lea rcx, [rbp]
call fcn.180006cc0
mov rdx, rbx
lea rcx, [rbp]
call fcn.1800448d0
mov rcx, r13
call fcn.180087900
mov rcx, qword [r13 + 0x78]
mov qword [rcx + 0x30], 8
mov rax, qword [0x18029d8c0]
mov qword [rcx + 0x48], rax
mov rcx, r13
call fcn.1800438a0
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], r15
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str.Initialized_Environment
lea rcx, [rbp + 0x20]
call fcn.180006cc0
lea rcx, [rbp + 0x20]
call fcn.1800448d0
mov qword [0x1802a87d0], r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov r8d, 5
lea rdx, str.LuaGc
lea rcx, [rsp + 0x50]
call fcn.180006cc0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
call qword [0x1802a8a08]
test rax, rax
jne 0x180045347
mov rdi, r15
jmp 0x1800453b2
mov rdi, r15
mov rbx, qword [rax + 0x198]
mov r14, qword [rax + 0x1a0]
cmp rbx, r14
je 0x1800453b2
cmp qword [rsp + 0x68], 0xf
seta r12b
mov r15, qword [rsp + 0x60]
nop dword [rax]
mov rsi, qword [rbx]
lea rcx, [rsi + 0x90]
lea rdx, [rsp + 0x50]
test r12b, r12b
cmovne rdx, qword [rsp + 0x50]
mov r8, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x180045396
mov rcx, qword [rcx]
cmp r8, r15
jne 0x1800453a6
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
cmove rdi, rsi
add rbx, 8
cmp rbx, r14
jne 0x180045370
xor r15d, r15d
lea rcx, [rsp + 0x50]
call fcn.180006890
mov ecx, 0xc8
call fcn.18017b040
mov rdx, rax
mov rax, qword [rdi]
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rcx, [rdx + 0x80]
movups xmm0, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax + 0x80]
movups xmmword [rcx], xmm1
movups xmm0, xmmword [rax + 0x90]
movups xmmword [rcx + 0x10], xmm0
movups xmm1, xmmword [rax + 0xa0]
movups xmmword [rcx + 0x20], xmm1
movups xmm0, xmmword [rax + 0xb0]
movups xmmword [rcx + 0x30], xmm0
mov rax, qword [rax + 0xc0]
mov qword [rcx + 0x40], rax
mov rax, qword [rdx + 0x10]
mov qword [0x1802a87f0], rax
lea rax, [0x1800447d0]
mov qword [rdx + 0x10], rax
mov qword [rdi], rdx
lea rdx, str.Execution_Ready
mov ecx, 1
call qword [0x1802a8a28]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str._autoexec
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], send
mov qword [rbp + 0x50], rax
movabs rax, 0xb000000000000000
mov qword [rbp + 0x40], rax
lea rax, str.ghettohaxx
mov qword [rbp + 0x58], rax
movabs rax, 0xb000000000000008
mov qword [rbp + 0x48], rax
mov qword [rbp - 0x70], 2
lea rax, [rbp + 0x40]
mov qword [rbp - 0x68], rax
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp + 0x80], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x90], xmm1
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x2a8]
call fcn.180026980
nop
lea rax, [rbp + 0x2a8]
cmp qword [rbp + 0x2c0], 0xf
cmova rax, qword [rbp + 0x2a8]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0xa0], xmm0
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x60]
call fcn.1800276f0
nop
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x220], xmm0
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x220]
call fcn.180024630
test eax, eax
jne 0x18004593c
lea rcx, [rbp + 0x60]
call fcn.180022e90
xorps xmm0, xmm0
movups xmmword [rbp + 0x240], xmm0
mov rbx, qword [rbp + 0x228]
test rbx, rbx
je 0x1800455a1
lock inc dword [rbx + 8]
mov rbx, qword [rbp + 0x228]
movaps xmm0, xmmword [rbp + 0x220]
movdqa xmmword [rbp + 0x240], xmm0
test rbx, rbx
je 0x1800455c0
lock inc dword [rbx + 8]
mov rbx, qword [rbp + 0x228]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2c8], xmm1
mov esi, 0xffffffff
test rbx, rbx
je 0x180045615
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18004560e
mov rbx, qword [rbp + 0x228]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18004560e
mov rbx, qword [rbp + 0x228]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180045615
mov rbx, qword [rbp + 0x228]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
nop dword [rax]
mov rdi, qword [rbp + 0x240]
test rdi, rdi
je 0x180045857
mov r8d, 3
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.18001e1f0
mov rax, qword [rsp + 0x70]
mov edx, dword [rsp + 0x78]
test edx, edx
je 0x18004565f
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x180045923
cmp eax, 2
jne 0x180045817
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x110]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rdi + 0x20]
mov r8d, 1
lea rcx, [rbp + 0x110]
call fcn.180024730
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x110]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x1800457c6
mov qword [rsp + 0x40], r15
mov word [rsp + 0x48], 1
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 0x158]
mov qword [rbp - 0x80], rcx
test rcx, rcx
sete byte [rbp - 0x78]
mov byte [rbp - 0x77], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x288], xmm0
mov qword [rbp + 0x298], r15
mov qword [rbp + 0x2a0], r15
movaps xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x260], xmm0
movaps xmm6, xmmword [rsp + 0x40]
test rcx, rcx
je 0x180045753
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x180045739
mov byte [rbp + 0x269], al
mov rax, qword [rbp + 0x260]
mov byte [rbp + 0x268], 1
movaps xmm0, xmmword [rbp + 0x260]
jmp 0x180045758
mov rax, r15
mov qword [rbp + 0x260], rax
mov byte [rbp + 0x268], 1
movaps xmm0, xmmword [rbp + 0x260]
jmp 0x180045758
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x180045830
test rax, rax
je 0x180045839
movdqa xmmword [rbp + 0xb0], xmm6
movdqa xmmword [rbp + 0xc0], xmm0
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x288]
call fcn.180026b50
nop
lea rdx, [rbp + 0x288]
lea rcx, [rbp + 0xf0]
call fcn.180006770
mov rdx, rax
mov rcx, r13
call fcn.180045950
nop
lea rcx, [rbp + 0x288]
call fcn.180006890
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x110], r14
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x120]
call fcn.1800226c0
lea rcx, [rbp + 0x128]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x240]
call fcn.18001e350
test eax, eax
jne 0x180045934
jmp 0x180045620
test rax, rax
je 0x18004576f
mov qword [rbp + 0x298], r15
mov qword [rbp + 0x2a0], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x288], 0
jmp 0x18004579a
mov rcx, qword [rbp + 0x248]
test rcx, rcx
je 0x18004589e
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180045897
mov rbx, qword [rbp + 0x248]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180045897
mov rcx, qword [rbp + 0x248]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rbp + 0x228]
test rbx, rbx
je 0x1800458d6
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800458d6
mov rbx, qword [rbp + 0x228]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1800458d6
mov rcx, qword [rbp + 0x228]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x2a8]
call fcn.180006890
jmp 0x1800458ec
mov rcx, rdi
call fcn.18017ab28
xor eax, eax
mov rcx, qword [rbp + 0x2d8]
xor rcx, rsp
call fcn.18017a790
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [rdi + 0x20]
lea rcx, str.directory_entry::status
call fcn.18001e120
int3
mov edx, eax
call fcn.18001e030
nop
lea r8, [rbp + 0x60]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.18001e120
int3