Function at 0x1400c9060
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 [0x140264330]
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 0x1400c90b0
cmp byte [rax], 0
je 0x1400c90b0
mov esi, ecx
jmp 0x1400c90b2
xor esi, esi
xor edi, edi
xor ebp, ebp
xor r15b, r15b
xor r14b, r14b
xor r12d, r12d
test rbx, rbx
jne 0x1400c9154
lea rcx, [0x1402685d8]
call qword [sym.imp.MSVCR120.dll_getenv]
mov byte [rsp + 0x40], dil
test rax, rax
je 0x1400c9248
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x40], dil
je 0x1400c9248
lea rcx, [rsp + 0x40]
call qword [case.0x1400bb044.0]
mov rdi, rax
test rax, rax
je 0x1400c9248
lea r9, str._netrc
lea r8, [0x14026638c]
lea rcx, [0x140266a1c]
mov rdx, rax
call fcn.1400be5e0
mov rcx, rdi
mov rbx, rax
call qword [sub.MSVCR120.dll_free]
test rbx, rbx
jne 0x1400c914f
or eax, 0xffffffff
jmp 0x1400c942a
mov edi, 1
lea rdx, [0x1402663cc]
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_fopen]
mov qword [rsp + 0x28], rax
test edi, edi
je 0x1400c9180
test rbx, rbx
je 0x1400c9180
mov rcx, rbx
call qword [sub.MSVCR120.dll_free]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400c9426
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 0x1400c941b
cmp byte [rsp + 0x40], 0
lea rbx, [rsp + 0x40]
je 0x1400c9252
nop dword [rax]
movsx edx, byte [rbx]
lea rcx, [0x140266444]
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
je 0x1400c9252
inc rbx
cmp byte [rbx], 0
jne 0x1400c91c0
xor ebx, ebx
nop
test rbx, rbx
je 0x1400c9409
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400c920d
cmp byte [rcx], 0
je 0x1400c920d
mov rax, qword [r13]
test rax, rax
je 0x1400c920d
cmp byte [rax], 0
jne 0x1400c941b
mov edx, ebp
test ebp, ebp
je 0x1400c936b
dec edx
je 0x1400c9347
dec edx
jne 0x1400c9384
test r15b, r15b
je 0x1400c92c1
test rsi, rsi
je 0x1400c9299
mov rdx, rbx
call fcn.1400c9620
xor r15b, r15b
mov r12d, eax
jmp 0x1400c9384
mov eax, 1
jmp 0x1400c942a
cmp byte [rbx], 0
je 0x1400c91dd
movzx eax, byte [rbx + 1]
lea rdi, [rbx + 1]
test al, al
je 0x1400c91e0
nop word [rax + rax]
lea rcx, [0x140266444]
movsx edx, al
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
jne 0x1400c93f5
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400c9270
jmp 0x1400c91e0
call qword [sub.MSVCR120.dll_free]
mov rcx, rbx
call qword [case.0x1400bb044.0]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
test rax, rax
je 0x1400c9413
xor r15b, r15b
jmp 0x1400c9384
test r14b, r14b
je 0x1400c92f8
test r12d, r12d
jne 0x1400c92d0
test rsi, rsi
jne 0x1400c92f0
mov rcx, qword [r13]
call qword [sub.MSVCR120.dll_free]
mov rcx, rbx
call qword [case.0x1400bb044.0]
mov qword [r13], rax
test rax, rax
je 0x1400c9413
xor r14b, r14b
jmp 0x1400c9384
lea rcx, str.login
mov rdx, rbx
call fcn.1400c9620
test eax, eax
je 0x1400c9310
mov r15b, 1
jmp 0x1400c9384
lea rcx, str.password
mov rdx, rbx
call fcn.1400c9620
test eax, eax
je 0x1400c9328
mov r14b, 1
jmp 0x1400c9384
lea rcx, str.machine
mov rdx, rbx
call fcn.1400c9620
test eax, eax
je 0x1400c9384
mov eax, 1
xor r12d, r12d
mov ebp, eax
jmp 0x1400c9384
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call fcn.1400c9620
test eax, eax
je 0x1400c9367
mov ebp, 2
mov dword [rsp + 0x20], 0
jmp 0x1400c9384
xor ebp, ebp
jmp 0x1400c9384
lea rcx, [0x140268688]
mov rdx, rbx
call fcn.1400c9620
test eax, eax
mov eax, 1
cmovne ebp, eax
cmp byte [rdi], 0
mov rbx, rdi
je 0x1400c93b2
nop dword [rax]
movsx edx, byte [rbx]
lea rcx, [0x1402664a4]
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
je 0x1400c93b2
inc rbx
cmp byte [rbx], 0
jne 0x1400c9390
jmp 0x1400c91dd
cmp byte [rbx], 0
je 0x1400c91dd
movzx eax, byte [rbx + 1]
lea rdi, [rbx + 1]
test al, al
je 0x1400c91e0
nop dword [rax + rax]
lea rcx, [0x1402664a4]
movsx edx, al
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
jne 0x1400c93f5
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400c93d0
jmp 0x1400c91e0
cmp byte [rdi], 0
je 0x1400c91e0
mov byte [rdi], 0
inc rdi
jmp 0x1400c91e0
mov rax, qword [rsp + 0x28]
jmp 0x1400c9191
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.1401bb2c0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret