Function at 0x140008698
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r13
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor r15d, r15d
xor r14d, r14d
lea r13d, [r15 + 1]
mov dword [0x14005f320], r13d
mov dword [0x14005fc4c], r13d
call fcn.140002780
lea ebx, [r15 + 0x11]
mov r8d, ebx
lea rdx, [rsp + 0xa0]
lea rcx, str.MPCL_WRITE_PIPE_HANDLE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
call fcn.14000295c
lea r8, [rsp + 0x88]
lea rdx, [0x14002fcc4]
lea rcx, [rsp + 0xa0]
call fcn.140002970
mov r8d, ebx
lea rdx, [rsp + 0xa0]
lea rcx, str.MPCL_READ_PIPE_HANDLE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
call fcn.14000295c
lea r8, [rsp + 0x90]
lea rdx, [0x14002fcc4]
lea rcx, [rsp + 0xa0]
call fcn.140002970
lea ecx, [rbx + 0xf]
call fcn.140007230
test rax, rax
je 0x1400089ed
or r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.140012ff0
mov rdi, rax
mov r8d, 0xa
lea rdx, [rsp + 0xc8]
lea rcx, str.MPCL_SERVER_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
call fcn.14000295c
lea rcx, [rsp + 0xc8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov r8d, 8
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov dword [r8 + rdx], eax
mov dword [rsp + 0x20], 0x298
mov rax, qword [rdi]
mov ebx, 4
mov r8d, ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [rax]
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [rax + 8]
mov ecx, dword [rsp + 0x28]
sub ecx, 0x29e
je 0x140008a0a
cmp ecx, r13d
jne 0x1400089f4
and dword [0x14005fc58], 0
test r15d, r15d
jne 0x140008bd0
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call qword [rax + 8]
mov ecx, dword [rsp + 0x2c]
sub ecx, 0x29a
je 0x140008999
cmp ecx, r13d
jne 0x140008a16
lea ecx, [r15 + 0x28]
call fcn.140007230
test rax, rax
je 0x140008a2c
mov rdx, rdi
mov rcx, rax
call fcn.140009518
mov rsi, rax
mov rdx, rsi
lea rcx, [0x14005fd00]
call fcn.140009978
mov dword [rsp + 0x30], 0x298
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [rax]
mov ecx, dword [rsi]
test ecx, ecx
je 0x140008a50
cmp ecx, r13d
jne 0x140008a16
mov rdx, qword [rsi + 0x10]
movsxd rbx, dword [rdx + 0x28]
mov rcx, qword [0x14005c218]
call fcn.140009230
mov rcx, qword [0x14005c218]
call fcn.140001120
and dword [0x14005b974], 0
mov rdx, qword [rsi + 0x10]
mov rdx, qword [rdx + 0x10]
lea rcx, [0x14002fe44]
call fcn.140008d64
lea rcx, [rbx + rbx*2]
lea r9, [fcn.140006520]
mov rdx, qword [0x14005c218]
lea rax, [0x140043310]
mov rcx, qword [rax + rcx*8 + 0x10]
call fcn.140007f20
mov dword [0x14005f338], eax
mov dword [rsp + 0x38], 0x299
mov rax, qword [rdi]
mov ebx, 4
mov r8d, ebx
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [rax]
mov eax, dword [0x14005f338]
mov dword [rsp + 0x40], eax
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [rax]
mov rdx, qword [0x14005f318]
test rdx, rdx
je 0x140008a33
lea rcx, [0x14002fe44]
call fcn.140008d64
mov dword [rsp + 0x48], 0x29c
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [rax]
mov rdx, qword [0x14005f318]
mov rcx, rdi
call fcn.140008ce4
mov ecx, r13d
call fcn.140008164
jmp 0x140008821
mov dword [rsp + 0x78], 0x298
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [rax]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rax, qword [rdi]
mov edx, r13d
mov rcx, rdi
call qword [rax + 0x18]
lea r9, [fcn.140006520]
mov rdx, qword [0x14005c218]
lea rcx, [0x14005c1f0]
call fcn.140007f20
mov r15d, r13d
mov dword [rsp + 0x80], r13d
jmp 0x140008994
xor edi, edi
jmp 0x14000878d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [0x14005fc58], r13d
jmp 0x140008821
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor esi, esi
jmp 0x140008874
mov dword [rsp + 0x50], 0x29d
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [rax]
jmp 0x14000898c
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 0x28]
lea rax, [rcx + rcx*2]
lea rdx, [0x140043310]
mov rdx, qword [rdx + rax*8 + 0x10]
movsxd rax, dword [rsi + 0x18]
movsxd rbx, dword [rdx + rax*4]
shl rbx, 6
lea rax, [0x14005b080]
add rbx, rax
test r14, r14
je 0x140008a9b
cmp rbx, r14
je 0x140008a9b
mov rcx, r14
call fcn.1400299ac
mov r14, rbx
mov qword [rsp + 0x98], rbx
mov rcx, qword [0x14005c218]
mov qword [rcx + 0x10], rbx
mov rdx, qword [rsi + 0x10]
call fcn.140009230
mov rcx, qword [0x14005c218]
call fcn.140001120
and dword [0x14005b974], 0
mov rcx, qword [0x14005c218]
call fcn.140007fa8
mov r9, qword [0x14005c218]
mov rax, qword [r9 + 0x10]
or dword [rax + 0x14], 8
mov rdx, qword [rsi + 0x10]
mov r8d, dword [rsi + 0x18]
mov rdx, qword [rdx + 0x10]
lea rcx, [0x14002fe44]
call fcn.140008d64
mov rcx, r9
call fcn.140006520
mov dword [0x14005f338], eax
mov dword [rsp + 0x58], 0x299
mov rax, qword [rdi]
mov ebx, 4
mov r8d, ebx
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [rax]
mov eax, dword [0x14005f338]
mov dword [rsp + 0x60], eax
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [rax]
cmp dword [0x14005f338], 0
je 0x140008b4b
mov ecx, r13d
call fcn.140008164
mov rdx, qword [0x14005f318]
test rdx, rdx
je 0x140008b8c
lea rcx, [0x14002fe44]
call fcn.140008d64
mov dword [rsp + 0x68], 0x29c
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [rax]
mov rdx, qword [0x14005f318]
mov rcx, rdi
call fcn.140008ce4
jmp 0x140008ba4
mov dword [rsp + 0x70], 0x29d
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [rax]
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 0x28]
lea rax, [rcx + rcx*2]
lea rcx, [0x140043310]
mov rcx, qword [rcx + rax*8 + 0x10]
movsxd rax, dword [rsi + 0x18]
cmp dword [rcx + rax*4 + 4], 0x12
jne 0x140008994
jmp 0x14000898c
jmp 0x140008bd2
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140011450
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
ret