Function at 0x44c6f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x138], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x134], eax
mov eax, dword [eax]
mov dword [ebp - 0x124], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x120], 1
push edi
test eax, eax
je 0x44c73f
cmp byte [eax], 0
mov dword [ebp - 0x12c], 1
jne 0x44c749
mov dword [ebp - 0x12c], 0
xor bl, bl
xor edi, edi
mov dword [ebp - 0x11c], edi
mov byte [ebp - 0x112], bl
mov byte [ebp - 0x111], bl
mov dword [ebp - 0x130], edi
test esi, esi
jne 0x44c7ff
push str.HOME
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x110], bl
test eax, eax
je 0x44c8e2
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x110], bl
je 0x44c8e2
lea eax, [ebp - 0x110]
push eax
call dword [0x4aa70c]
mov edi, eax
add esp, 4
test edi, edi
je 0x44c8e2
push str._netrc
push 0x493c54
push edi
push str._s_s_s
call fcn.0044b050
push edi
mov esi, eax
call dword [0x4aa774]
add esp, 0x14
test esi, esi
jne 0x44c7fb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
mov bl, 1
xor edi, edi
push 0x49719c
push esi
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov ecx, eax
mov dword [ebp - 0x128], ecx
test bl, bl
je 0x44c82a
push esi
call dword [0x4aa774]
mov ecx, dword [ebp - 0x128]
add esp, 4
test ecx, ecx
je 0x44cb85
push ecx
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll_fgets]
add esp, 0xc
test eax, eax
je 0x44cb76
lea eax, [ebp - 0x118]
mov edx, 0x498ed0
push eax
lea ecx, [ebp - 0x110]
call fcn.00451c40
mov ebx, dword [ebp - 0x118]
add esp, 4
mov esi, eax
test esi, esi
je 0x44cb61
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x124]
mov ecx, dword [eax]
test ecx, ecx
je 0x44c8a0
cmp byte [ecx], 0
je 0x44c8a0
mov eax, dword [edx]
test eax, eax
je 0x44c8a0
cmp byte [eax], 0
jne 0x44cb76
mov eax, edi
sub eax, 0
je 0x44ca4c
dec eax
je 0x44c9d4
dec eax
jne 0x44cad6
cmp byte [ebp - 0x112], al
je 0x44c925
cmp dword [ebp - 0x12c], eax
je 0x44c8f8
mov edx, esi
call fcn.0044ccb0
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x112], 0
jmp 0x44cad6
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
push ecx
call dword [0x4aa774]
push esi
call dword [0x4aa70c]
mov ecx, dword [ebp - 0x134]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x44cb6c
mov byte [ebp - 0x112], 0
jmp 0x44cad6
cmp byte [ebp - 0x111], 0
je 0x44c96e
cmp dword [ebp - 0x130], 0
jne 0x44c940
cmp dword [ebp - 0x12c], 0
jne 0x44c962
push dword [edx]
call dword [0x4aa774]
push esi
call dword [0x4aa70c]
mov esi, dword [ebp - 0x124]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x44cb6c
mov byte [ebp - 0x111], 0
jmp 0x44cad6
mov edx, esi
mov ecx, str.login
call fcn.0044ccb0
test eax, eax
je 0x44c98a
mov byte [ebp - 0x112], 1
jmp 0x44cad6
mov edx, esi
mov ecx, str.password
call fcn.0044ccb0
test eax, eax
je 0x44c9a6
mov byte [ebp - 0x111], 1
jmp 0x44cad6
mov edx, esi
mov ecx, str.machine
call fcn.0044ccb0
test eax, eax
je 0x44cad6
mov edi, 1
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x11c], edi
jmp 0x44cad6
mov eax, dword [ebp - 0x138]
mov edi, eax
cmp byte [eax], 0
je 0x44ca09
mov al, byte [esi]
test al, al
je 0x44ca09
mov dl, byte [edi]
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x44c9f4
sub dl, 0x20
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x44c9fe
sub al, 0x20
cmp dl, al
jne 0x44ca09
inc edi
inc esi
cmp byte [edi], 0
jne 0x44c9e1
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x44ca15
sub dl, 0x20
mov cl, byte [esi]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44ca21
sub cl, 0x20
cmp dl, cl
jne 0x44ca3f
mov edi, 2
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], edi
jmp 0x44cad6
xor edi, edi
mov dword [ebp - 0x11c], edi
jmp 0x44cad6
mov ebx, esi
mov edi, str.machine
mov cl, byte [ebx]
test cl, cl
je 0x44ca7a
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x44ca65
sub dl, 0x20
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44ca6f
sub cl, 0x20
cmp dl, cl
jne 0x44ca7a
inc edi
inc ebx
cmp byte [edi], 0
jne 0x44ca53
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x44ca86
sub dl, 0x20
mov cl, byte [ebx]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44ca92
sub cl, 0x20
cmp dl, cl
jne 0x44caa3
mov edi, 1
mov dword [ebp - 0x11c], edi
jmp 0x44cad0
mov edx, esi
mov ecx, str.default
call fcn.0044ccb0
test eax, eax
je 0x44caca
mov edi, 2
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], edi
jmp 0x44cad0
mov edi, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x118]
cmp byte [ebx], 0
mov esi, ebx
je 0x44cb03
lea ecx, [ecx]
movsx eax, byte [esi]
push eax
push 0x498ed0
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
je 0x44cb03
inc esi
cmp byte [esi], 0
jne 0x44cae0
xor esi, esi
jmp 0x44c872
cmp byte [esi], 0
je 0x44cafc
mov al, byte [esi + 1]
lea ebx, [esi + 1]
mov dword [ebp - 0x118], ebx
test al, al
je 0x44c872
lea esp, [esp]
movsx eax, al
push eax
push 0x498ed0
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
jne 0x44cb49
mov al, byte [ebx + 1]
inc ebx
mov dword [ebp - 0x118], ebx
test al, al
jne 0x44cb20
jmp 0x44c872
cmp byte [ebx], 0
je 0x44c872
mov byte [ebx], 0
inc ebx
mov dword [ebp - 0x118], ebx
jmp 0x44c872
mov ecx, dword [ebp - 0x128]
jmp 0x44c832
mov dword [ebp - 0x120], 0xffffffff
push dword [ebp - 0x128]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x120]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047db8e
mov esp, ebp
pop ebp
ret