Function at 0x140015788
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rsi, rcx
lea rdx, [rbp - 0x60]
lea rcx, str.APPDATA
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rbp + 0x1d8]
call fcn.14001529c
mov rdx, rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x80]
call fcn.140017710
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x60]
call fcn.1400125c8
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140015803
mov eax, 1
jmp 0x140015a5d
mov rcx, qword [rsp + 0x38]
inc rcx
call fcn.140002460
mov r10, qword [rsp + 0x38]
xor r9d, r9d
mov rdi, rax
test r10, r10
jle 0x14001583f
mov r8, qword [rsp + 0x30]
mov rdx, rax
sub r8, rax
mov cl, byte [r8 + rdx]
inc r9d
mov byte [rdx], cl
inc rdx
movsxd rax, r9d
cmp rax, r10
jl 0x14001582b
mov byte [r10 + rdi], 0
mov rcx, rdi
mov edx, dword [rsp + 0x38]
inc edx
call fcn.140015434
inc eax
lea ebx, [rax + rax*4]
movsxd rax, ebx
lea rcx, [rax + rax*2]
shl rcx, 2
call fcn.140002460
lea rcx, [rsp + 0x40]
mov r14, rax
call fcn.1400174d0
mov r8d, dword [rsp + 0x38]
lea rcx, [rsp + 0x40]
inc r8d
mov dword [rsp + 0x20], ebx
mov r9, r14
mov rdx, rdi
call fcn.1400174dc
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call fcn.140002438
test ebx, ebx
jne 0x1400158c4
mov r8d, dword [rsp + 0x44]
lea rax, [rbp - 0x80]
lea r9, [rbp + 0x1d8]
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rdi
call fcn.1400161bc
and dword [rsp + 0x44], ebx
mov rcx, r14
call fcn.140002438
mov rcx, rdi
call fcn.140002438
lea rcx, [rbp + 0x1d8]
call fcn.140014fc4
mov rdx, rax
mov rcx, rsi
call fcn.140001930
mov r14d, 0x2c
jmp 0x140015a1f
lea rdx, str._url_:_
mov rcx, rsi
call fcn.140001930
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1400019bc
mov rcx, qword [rsp + 0x50]
call fcn.140002438
lea rdx, str.___login_:_
mov rcx, rsi
call fcn.140001930
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.1400019bc
mov rcx, qword [rsp + 0x58]
call fcn.140002438
mov rdx, qword [rsp + 0x74]
lea rcx, str.MODE_DEFAULT
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1400159ea
lea ecx, [rax + 0x64]
call fcn.140002534
mov rcx, qword [rsp + 0x60]
mov rdi, rax
and qword [rbp + 0x1e0], 0
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x60]
movsxd rbx, eax
call fcn.14000762c
mov rcx, rax
lea r8, [rbp + 0x1e0]
mov rdx, rbx
call fcn.140009c34
mov r8, qword [rbp + 0x1e0]
mov rdx, rax
mov rcx, rdi
call fcn.1400024b0
mov rax, qword [rbp + 0x1e0]
mov byte [rax + rdi], 0
mov rcx, qword [rsp + 0x60]
call fcn.140002438
lea rcx, [rbp + 0x1d8]
call fcn.14000cd4c
mov rdx, rax
mov rcx, rsi
call fcn.140001930
mov rdx, rdi
mov rcx, rsi
call fcn.1400019bc
mov rcx, rdi
call fcn.140002438
lea rdx, str.___port_:_
mov rcx, rsi
call fcn.140001930
mov rdx, qword [rsp + 0x6c]
mov rcx, rsi
call fcn.1400019bc
mov rcx, qword [rsp + 0x6c]
call fcn.140002438
lea rdx, [0x14001c0a8]
mov rcx, rsi
call fcn.140001930
mov r8, r14
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140017748
test eax, eax
je 0x1400158f6
lea rcx, [rbp - 0x80]
call fcn.140017704
mov edx, r14d
mov rcx, rsi
call fcn.140001a5c
lea rdx, [0x14001be7c]
mov rcx, rsi
call fcn.140001930
xor eax, eax
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret