Function at 0x18000a2e0
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
push rsi
push rdi
sub rsp, 0x6a8
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx edx, byte [rsp + 0x50]
lea rcx, [rsp + 0x130]
call fcn.180004ba0
mov rcx, rax
call fcn.180009600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a61f
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x32]
movzx r8d, byte [rsp + 0x33]
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call fcn.180004c00
mov rcx, rax
call fcn.180009680
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a61f
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x35]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x34]
movzx r8d, byte [rsp + 0x35]
movzx edx, byte [rsp + 0x49]
lea rcx, [rsp + 0x150]
call fcn.180004c30
mov rcx, rax
call fcn.180009620
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a61f
lea rax, [rsp + 0x36]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x37]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x36]
movzx r8d, byte [rsp + 0x37]
movzx edx, byte [rsp + 0x4a]
lea rcx, [rsp + 0xc0]
call fcn.180004c60
mov rcx, rax
call fcn.1800096a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a61f
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x39]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x38]
movzx r8d, byte [rsp + 0x39]
movzx edx, byte [rsp + 0x4b]
lea rcx, [rsp + 0x170]
call fcn.180004c90
mov rcx, rax
call fcn.1800096e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a61f
lea rax, [rsp + 0x3a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x3b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x3a]
movzx r8d, byte [rsp + 0x3b]
movzx edx, byte [rsp + 0x4c]
lea rcx, [rsp + 0xd0]
call fcn.180004cc0
mov rcx, rax
call fcn.180009660
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a61f
lea rax, [rsp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x3d]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x3c]
movzx r8d, byte [rsp + 0x3d]
movzx edx, byte [rsp + 0x4d]
lea rcx, [rsp + 0xe0]
call fcn.180004cf0
mov rcx, rax
call fcn.180009700
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a61f
lea rax, [rsp + 0x3e]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x3f]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x3e]
movzx r8d, byte [rsp + 0x3f]
movzx edx, byte [rsp + 0x4e]
lea rcx, [rsp + 0xf0]
call fcn.180004d20
mov rcx, rax
call fcn.180009640
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a61f
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x40]
movzx r8d, byte [rsp + 0x41]
movzx edx, byte [rsp + 0x4f]
lea rcx, [rsp + 0x100]
call fcn.180004d50
mov rcx, rax
call fcn.1800095e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18000a626
xor eax, eax
jmp 0x18000a8a7
mov rax, qword [rsp + 0x6d0]
cmp dword [rax + 0x28], 1
jg 0x18000a63e
mov eax, 0x277a
jmp 0x18000a8a7
lea rax, [0x1800b5000]
mov rdi, rax
mov rsi, qword [rsp + 0x6d8]
mov ecx, 0x78
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x54]
call fcn.180006700
mov qword [rsp + 0x68], rax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x6d0]
mov eax, dword [rcx + rax + 0x2c]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x44], 0
jmp 0x18000a693
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x44], eax
jge 0x18000a6ea
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x274
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x58]
cmp dword [rcx + rax + 0x24], edx
jne 0x18000a6e8
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x274
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov r8d, 0x274
mov rdx, rax
lea rcx, [rsp + 0x420]
call sub.VCRUNTIME140.dll_memcpy
nop
jmp 0x18000a6ea
jmp 0x18000a689
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x44], eax
jl 0x18000a6fe
mov eax, 0x277a
jmp 0x18000a8a7
mov dword [rsp + 0x5c], 0x104
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x5c]
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x434]
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
jne 0x18000a737
mov eax, 0x277a
jmp 0x18000a8a7
mov r8d, 0x104
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x210]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x18000a761
mov eax, 0x277a
jmp 0x18000a8a7
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x110]
call fcn.1800059d0
mov rcx, rax
call fcn.1800088a0
mov r8d, 8
xor edx, edx
mov rcx, rax
call fcn.1800069b0
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x110]
call fcn.1800054a0
nop
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x98]
call fcn.180003890
mov rcx, rax
call fcn.180005630
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x98]
call fcn.180004250
nop
mov rax, qword [rsp + 0x6d0]
mov qword [rsp + 0x78], rax
cmp dword [rsp + 0x448], 1
jne 0x18000a80a
lea rax, [rsp + 0x420]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x190]
mov rdi, rax
mov rsi, qword [rsp + 0x6d8]
mov ecx, 0x78
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x6e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x190]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x6c8]
movzx ecx, word [rsp + 0x6c0]
call qword [rsp + 0x90]
mov dword [rsp + 0x60], eax
lea rax, [0x1800b5080]
mov rdi, rax
mov rsi, qword [rsp + 0x6e0]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov r8d, 0xf0
mov rdx, qword [rsp + 0x6e0]
lea rcx, [0x1800b5280]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x68]
call fcn.180006410
mov eax, dword [rsp + 0x60]
add rsp, 0x6a8
pop rdi
pop rsi
ret