Function at 0x140008d98
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 [0x14005f390], r13d
mov dword [0x14005fc5c], r13d
call fcn.140002e84
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.14000305c
lea r8, [rsp + 0x88]
lea rdx, [0x14002fd4c]
lea rcx, [rsp + 0xa0]
call fcn.140003070
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.14000305c
lea r8, [rsp + 0x90]
lea rdx, [0x14002fd4c]
lea rcx, [rsp + 0xa0]
call fcn.140003070
lea ecx, [rbx + 0xf]
call fcn.140007930
test rax, rax
je 0x1400090ed
or r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.1400131b0
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.14000305c
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 0x14000910a
cmp ecx, r13d
jne 0x1400090f4
and dword [0x14005fc68], 0
test r15d, r15d
jne 0x1400092d0
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 0x140009099
cmp ecx, r13d
jne 0x140009116
lea ecx, [r15 + 0x28]
call fcn.140007930
test rax, rax
je 0x14000912c
mov rdx, rdi
mov rcx, rax
call fcn.140009c18
mov rsi, rax
mov rdx, rsi
lea rcx, [0x14005fd10]
call fcn.14000a000
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 0x140009150
cmp ecx, r13d
jne 0x140009116
mov rdx, qword [rsi + 0x10]
movsxd rbx, dword [rdx + 0x28]
mov rcx, qword [0x14005c218]
call fcn.140009930
mov rcx, qword [0x14005c218]
call fcn.140001120
and dword [0x14005b974], 0
mov rdx, qword [rsi + 0x10]
mov rdx, qword [rdx + 0x10]
lea rcx, [0x14002fecc]
call fcn.140009464
lea rcx, [rbx + rbx*2]
lea r9, [fcn.140006c20]
mov rdx, qword [0x14005c218]
lea rax, [0x140043820]
mov rcx, qword [rax + rcx*8 + 0x10]
call fcn.140008620
mov dword [0x14005f3a8], 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 [0x14005f3a8]
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 [0x14005f388]
test rdx, rdx
je 0x140009133
lea rcx, [0x14002fecc]
call fcn.140009464
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 [0x14005f388]
mov rcx, rdi
call fcn.1400093e4
mov ecx, r13d
call fcn.140008864
jmp 0x140008f21
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.140006c20]
mov rdx, qword [0x14005c218]
lea rcx, [0x14005c1f0]
call fcn.140008620
mov r15d, r13d
mov dword [rsp + 0x80], r13d
jmp 0x140009094
xor edi, edi
jmp 0x140008e8d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [0x14005fc68], r13d
jmp 0x140008f21
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor esi, esi
jmp 0x140008f74
mov dword [rsp + 0x50], 0x29d
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [rax]
jmp 0x14000908c
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 0x28]
lea rax, [rcx + rcx*2]
lea rdx, [0x140043820]
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 0x14000919b
cmp rbx, r14
je 0x14000919b
mov rcx, r14
call fcn.140029a40
mov r14, rbx
mov qword [rsp + 0x98], rbx
mov rcx, qword [0x14005c218]
mov qword [rcx + 0x10], rbx
mov rdx, qword [rsi + 0x10]
call fcn.140009930
mov rcx, qword [0x14005c218]
call fcn.140001120
and dword [0x14005b974], 0
mov rcx, qword [0x14005c218]
call fcn.1400086a8
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, [0x14002fecc]
call fcn.140009464
mov rcx, r9
call fcn.140006c20
mov dword [0x14005f3a8], 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 [0x14005f3a8]
mov dword [rsp + 0x60], eax
mov rax, qword [rdi]
mov r8d, ebx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [rax]
cmp dword [0x14005f3a8], 0
je 0x14000924b
mov ecx, r13d
call fcn.140008864
mov rdx, qword [0x14005f388]
test rdx, rdx
je 0x14000928c
lea rcx, [0x14002fecc]
call fcn.140009464
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 [0x14005f388]
mov rcx, rdi
call fcn.1400093e4
jmp 0x1400092a4
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, [0x140043820]
mov rcx, qword [rcx + rax*8 + 0x10]
movsxd rax, dword [rsi + 0x18]
cmp dword [rcx + rax*4 + 4], 0x12
jne 0x140009094
jmp 0x14000908c
jmp 0x1400092d2
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140011610
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