Function at 0x1400c8050
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x168
mov rax, qword [0x1402581e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [rdx]
mov qword [rsp + 0x38], rcx
mov ecx, 1
mov rbx, r9
mov r13, r8
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x20], ecx
test rax, rax
je 0x1400c80a0
cmp byte [rax], 0
je 0x1400c80a0
mov esi, ecx
jmp 0x1400c80a2
xor esi, esi
xor edi, edi
xor ebp, ebp
xor r15b, r15b
xor r14b, r14b
xor r12d, r12d
test rbx, rbx
jne 0x1400c8144
lea rcx, [0x14025c488]
call qword [sym.imp.MSVCR120.dll_getenv]
mov byte [rsp + 0x40], dil
test rax, rax
je 0x1400c8238
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x40], dil
je 0x1400c8238
lea rcx, [rsp + 0x40]
call qword [case.0x1400ba044.0]
mov rdi, rax
test rax, rax
je 0x1400c8238
lea r9, str._netrc
lea r8, [0x14025a23c]
lea rcx, [0x14025a8cc]
mov rdx, rax
call fcn.1400bd5e0
mov rcx, rdi
mov rbx, rax
call qword [sub.MSVCR120.dll_free]
test rbx, rbx
jne 0x1400c813f
or eax, 0xffffffff
jmp 0x1400c841a
mov edi, 1
lea rdx, [0x14025a27c]
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_fopen]
mov qword [rsp + 0x28], rax
test edi, edi
je 0x1400c8170
test rbx, rbx
je 0x1400c8170
mov rcx, rbx
call qword [sub.MSVCR120.dll_free]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400c8416
mov rdi, qword [rsp + 0x38]
movsxd rsi, esi
lea rcx, [rsp + 0x40]
mov r8, rax
mov edx, 0x100
call qword [sym.imp.MSVCR120.dll_fgets]
test rax, rax
je 0x1400c840b
cmp byte [rsp + 0x40], 0
lea rbx, [rsp + 0x40]
je 0x1400c8242
nop dword [rax]
movsx edx, byte [rbx]
lea rcx, [0x14025a2f4]
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
je 0x1400c8242
inc rbx
cmp byte [rbx], 0
jne 0x1400c81b0
xor ebx, ebx
nop
test rbx, rbx
je 0x1400c83f9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400c81fd
cmp byte [rcx], 0
je 0x1400c81fd
mov rax, qword [r13]
test rax, rax
je 0x1400c81fd
cmp byte [rax], 0
jne 0x1400c840b
mov edx, ebp
test ebp, ebp
je 0x1400c835b
dec edx
je 0x1400c8337
dec edx
jne 0x1400c8374
test r15b, r15b
je 0x1400c82b1
test rsi, rsi
je 0x1400c8289
mov rdx, rbx
call fcn.1400c8610
xor r15b, r15b
mov r12d, eax
jmp 0x1400c8374
mov eax, 1
jmp 0x1400c841a
cmp byte [rbx], 0
je 0x1400c81cd
movzx eax, byte [rbx + 1]
lea rdi, [rbx + 1]
test al, al
je 0x1400c81d0
nop word [rax + rax]
lea rcx, [0x14025a2f4]
movsx edx, al
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
jne 0x1400c83e5
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400c8260
jmp 0x1400c81d0
call qword [sub.MSVCR120.dll_free]
mov rcx, rbx
call qword [case.0x1400ba044.0]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
test rax, rax
je 0x1400c8403
xor r15b, r15b
jmp 0x1400c8374
test r14b, r14b
je 0x1400c82e8
test r12d, r12d
jne 0x1400c82c0
test rsi, rsi
jne 0x1400c82e0
mov rcx, qword [r13]
call qword [sub.MSVCR120.dll_free]
mov rcx, rbx
call qword [case.0x1400ba044.0]
mov qword [r13], rax
test rax, rax
je 0x1400c8403
xor r14b, r14b
jmp 0x1400c8374
lea rcx, str.login
mov rdx, rbx
call fcn.1400c8610
test eax, eax
je 0x1400c8300
mov r15b, 1
jmp 0x1400c8374
lea rcx, str.password
mov rdx, rbx
call fcn.1400c8610
test eax, eax
je 0x1400c8318
mov r14b, 1
jmp 0x1400c8374
lea rcx, str.machine
mov rdx, rbx
call fcn.1400c8610
test eax, eax
je 0x1400c8374
mov eax, 1
xor r12d, r12d
mov ebp, eax
jmp 0x1400c8374
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call fcn.1400c8610
test eax, eax
je 0x1400c8357
mov ebp, 2
mov dword [rsp + 0x20], 0
jmp 0x1400c8374
xor ebp, ebp
jmp 0x1400c8374
lea rcx, [0x14025c538]
mov rdx, rbx
call fcn.1400c8610
test eax, eax
mov eax, 1
cmovne ebp, eax
cmp byte [rdi], 0
mov rbx, rdi
je 0x1400c83a2
nop dword [rax]
movsx edx, byte [rbx]
lea rcx, [0x14025a354]
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
je 0x1400c83a2
inc rbx
cmp byte [rbx], 0
jne 0x1400c8380
jmp 0x1400c81cd
cmp byte [rbx], 0
je 0x1400c81cd
movzx eax, byte [rbx + 1]
lea rdi, [rbx + 1]
test al, al
je 0x1400c81d0
nop dword [rax + rax]
lea rcx, [0x14025a354]
movsx edx, al
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
jne 0x1400c83e5
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400c83c0
jmp 0x1400c81d0
cmp byte [rdi], 0
je 0x1400c81d0
mov byte [rdi], 0
inc rdi
jmp 0x1400c81d0
mov rax, qword [rsp + 0x28]
jmp 0x1400c8181
mov dword [rsp + 0x20], 0xffffffff
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR120.dll_fclose]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401bddc0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret