Function at 0x140001b58
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x4e0
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
movdqa xmm0, xmmword [0x140044d40]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xb0]
call fcn.1400134d0
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
lea rcx, str.CommonProgramFiles
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movdqa xmm0, xmmword [0x140044e40]
movdqu xmmword [rsp + 0x80], xmm0
movdqa xmm1, xmmword [0x140044f30]
movdqu xmmword [rsp + 0x90], xmm1
mov dword [rsp + 0xa0], 0x22
mov dword [rsp + 0xa4], 0xd
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.1400024b8
lea r8d, [rdi + 0xa]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140005870
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140001c2b
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14000261c
nop
lea rcx, [rsp + 0x60]
call fcn.1400025b8
mov r8d, 0xe
lea rdx, [0x14004bd50]
lea rcx, [rsp + 0x60]
call fcn.140005870
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140001c69
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14000261c
nop
lea rcx, [rsp + 0x60]
call fcn.1400025b8
mov r8d, 0x104
lea rdx, [rsp + 0x2c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x20], rdi
movdqa xmm0, xmmword [0x140044d40]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], di
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x20]
call fcn.1400024b8
nop
xor r8d, r8d
lea rdx, str.Common_Files
lea rcx, [rsp + 0x20]
call fcn.1400023dc
cmp rax, 0xffffffffffffffff
jne 0x14000200c
xor r8d, r8d
lea rdx, str.common_files
lea rcx, [rsp + 0x20]
call fcn.1400023dc
cmp rax, 0xffffffffffffffff
jne 0x14000200c
xor r8d, r8d
lea rdx, str.Common1
lea rcx, [rsp + 0x20]
call fcn.1400023dc
cmp rax, 0xffffffffffffffff
jne 0x14000200c
xor r8d, r8d
lea rdx, str.common1
lea rcx, [rsp + 0x20]
call fcn.1400023dc
cmp rax, 0xffffffffffffffff
jne 0x14000200c
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.140001aec
test eax, eax
jne 0x140001dbd
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
lea rdx, [0x14004e1e0]
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], di
jne 0x140001d82
xor ecx, ecx
movzx eax, word [r8 + rcx*2]
mov word [rdx + rcx*2], ax
inc rcx
test ax, ax
jne 0x140001d8d
lea rcx, [rsp + 0x20]
call fcn.1400025b8
nop
lea rcx, [rsp + 0x40]
call fcn.1400025b8
mov eax, 1
jmp 0x140002062
xor r8d, r8d
lea rdx, str.Microsoft
lea rcx, [rsp + 0x20]
call fcn.1400023dc
cmp rax, 0xffffffffffffffff
jne 0x140001fb8
xor r8d, r8d
lea rdx, str.Microsoft
lea rcx, [rsp + 0x20]
call fcn.1400023dc
cmp rax, 0xffffffffffffffff
jne 0x140001fb8
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movdqa xmm0, xmmword [0x140044ef0]
movdqu xmmword [rsp + 0x80], xmm0
movdqa xmm1, xmmword [0x140044fe0]
movdqu xmmword [rsp + 0x90], xmm1
mov dword [rsp + 0xa0], gethostname
mov dword [rsp + 0xa4], 0x25
mov dword [rsp + 0xa8], 0xd
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.1400024b8
mov r8d, inet_ntoa
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140005870
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140001e8f
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14000261c
nop
lea rcx, [rsp + 0x60]
call fcn.1400025b8
mov r8d, 0xe
lea rdx, [0x14004bd50]
lea rcx, [rsp + 0x60]
call fcn.140005870
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140001ecd
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14000261c
nop
lea rcx, [rsp + 0x60]
call fcn.1400025b8
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.140001aec
lea rdx, [0x14004e1e0]
test eax, eax
jne 0x140001f68
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], di
jne 0x140001f2d
xor ecx, ecx
movzx eax, word [r8 + rcx*2]
mov word [rdx + rcx*2], ax
inc rcx
test ax, ax
jne 0x140001f38
lea rcx, [rsp + 0x20]
call fcn.1400025b8
nop
lea rcx, [rsp + 0x40]
call fcn.1400025b8
mov eax, 3
jmp 0x140002062
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], di
jne 0x140001f7d
xor ecx, ecx
movzx eax, word [r8 + rcx*2]
mov word [rdx + rcx*2], ax
inc rcx
test ax, ax
jne 0x140001f88
lea rcx, [rsp + 0x20]
call fcn.1400025b8
nop
lea rcx, [rsp + 0x40]
call fcn.1400025b8
mov eax, 4
jmp 0x140002062
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
lea rdx, [0x14004e1e0]
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], di
jne 0x140001fd4
xor eax, eax
movzx ecx, word [r8 + rax*2]
mov word [rdx + rax*2], cx
inc rax
test cx, cx
jne 0x140001fdf
lea rcx, [rsp + 0x20]
call fcn.1400025b8
nop
lea rcx, [rsp + 0x40]
call fcn.1400025b8
mov eax, 2
jmp 0x140002062
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
lea rdx, [0x14004e1e0]
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], di
jne 0x140002028
xor ecx, ecx
movzx eax, word [r8 + rcx*2]
mov word [rdx + rcx*2], ax
inc rcx
test ax, ax
jne 0x140002033
lea rcx, [rsp + 0x20]
call fcn.1400025b8
nop
lea rcx, [rsp + 0x40]
call fcn.1400025b8
xor eax, eax
jmp 0x140002062
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140010040
add rsp, 0x4e0
pop rdi
ret