Function at 0x44c890
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 0x44c8df
cmp byte [eax], 0
mov dword [ebp - 0x12c], 1
jne 0x44c8e9
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 0x44c99f
push str.HOME
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x110], bl
test eax, eax
je 0x44ca82
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x110], bl
je 0x44ca82
lea eax, [ebp - 0x110]
push eax
call dword [0x4aa70c]
mov edi, eax
add esp, 4
test edi, edi
je 0x44ca82
push str._netrc
push 0x493c54
push edi
push str._s_s_s
call fcn.0044b1f0
push edi
mov esi, eax
call dword [0x4aa774]
add esp, 0x14
test esi, esi
jne 0x44c99b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047dbfe
mov esp, ebp
pop ebp
ret
mov bl, 1
xor edi, edi
push 0x4971ac
push esi
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov ecx, eax
mov dword [ebp - 0x128], ecx
test bl, bl
je 0x44c9ca
push esi
call dword [0x4aa774]
mov ecx, dword [ebp - 0x128]
add esp, 4
test ecx, ecx
je 0x44cd25
push ecx
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll_fgets]
add esp, 0xc
test eax, eax
je 0x44cd16
lea eax, [ebp - 0x118]
mov edx, 0x498ecc
push eax
lea ecx, [ebp - 0x110]
call fcn.00451dd0
mov ebx, dword [ebp - 0x118]
add esp, 4
mov esi, eax
test esi, esi
je 0x44cd01
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x124]
mov ecx, dword [eax]
test ecx, ecx
je 0x44ca40
cmp byte [ecx], 0
je 0x44ca40
mov eax, dword [edx]
test eax, eax
je 0x44ca40
cmp byte [eax], 0
jne 0x44cd16
mov eax, edi
sub eax, 0
je 0x44cbec
dec eax
je 0x44cb74
dec eax
jne 0x44cc76
cmp byte [ebp - 0x112], al
je 0x44cac5
cmp dword [ebp - 0x12c], eax
je 0x44ca98
mov edx, esi
call fcn.0044ce50
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x112], 0
jmp 0x44cc76
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047dbfe
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 0x44cd0c
mov byte [ebp - 0x112], 0
jmp 0x44cc76
cmp byte [ebp - 0x111], 0
je 0x44cb0e
cmp dword [ebp - 0x130], 0
jne 0x44cae0
cmp dword [ebp - 0x12c], 0
jne 0x44cb02
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 0x44cd0c
mov byte [ebp - 0x111], 0
jmp 0x44cc76
mov edx, esi
mov ecx, str.login
call fcn.0044ce50
test eax, eax
je 0x44cb2a
mov byte [ebp - 0x112], 1
jmp 0x44cc76
mov edx, esi
mov ecx, str.password
call fcn.0044ce50
test eax, eax
je 0x44cb46
mov byte [ebp - 0x111], 1
jmp 0x44cc76
mov edx, esi
mov ecx, str.machine
call fcn.0044ce50
test eax, eax
je 0x44cc76
mov edi, 1
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x11c], edi
jmp 0x44cc76
mov eax, dword [ebp - 0x138]
mov edi, eax
cmp byte [eax], 0
je 0x44cba9
mov al, byte [esi]
test al, al
je 0x44cba9
mov dl, byte [edi]
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x44cb94
sub dl, 0x20
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x44cb9e
sub al, 0x20
cmp dl, al
jne 0x44cba9
inc edi
inc esi
cmp byte [edi], 0
jne 0x44cb81
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x44cbb5
sub dl, 0x20
mov cl, byte [esi]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44cbc1
sub cl, 0x20
cmp dl, cl
jne 0x44cbdf
mov edi, 2
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], edi
jmp 0x44cc76
xor edi, edi
mov dword [ebp - 0x11c], edi
jmp 0x44cc76
mov ebx, esi
mov edi, str.machine
mov cl, byte [ebx]
test cl, cl
je 0x44cc1a
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x44cc05
sub dl, 0x20
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44cc0f
sub cl, 0x20
cmp dl, cl
jne 0x44cc1a
inc edi
inc ebx
cmp byte [edi], 0
jne 0x44cbf3
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x44cc26
sub dl, 0x20
mov cl, byte [ebx]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44cc32
sub cl, 0x20
cmp dl, cl
jne 0x44cc43
mov edi, 1
mov dword [ebp - 0x11c], edi
jmp 0x44cc70
mov edx, esi
mov ecx, str.default
call fcn.0044ce50
test eax, eax
je 0x44cc6a
mov edi, 2
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], edi
jmp 0x44cc70
mov edi, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x118]
cmp byte [ebx], 0
mov esi, ebx
je 0x44cca3
lea ecx, [ecx]
movsx eax, byte [esi]
push eax
push 0x498ecc
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
je 0x44cca3
inc esi
cmp byte [esi], 0
jne 0x44cc80
xor esi, esi
jmp 0x44ca12
cmp byte [esi], 0
je 0x44cc9c
mov al, byte [esi + 1]
lea ebx, [esi + 1]
mov dword [ebp - 0x118], ebx
test al, al
je 0x44ca12
lea esp, [esp]
movsx eax, al
push eax
push 0x498ecc
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
jne 0x44cce9
mov al, byte [ebx + 1]
inc ebx
mov dword [ebp - 0x118], ebx
test al, al
jne 0x44ccc0
jmp 0x44ca12
cmp byte [ebx], 0
je 0x44ca12
mov byte [ebx], 0
inc ebx
mov dword [ebp - 0x118], ebx
jmp 0x44ca12
mov ecx, dword [ebp - 0x128]
jmp 0x44c9d2
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.0047dbfe
mov esp, ebp
pop ebp
ret