Function at 0x44f380
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4ad0cc]
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 0x44f3cf
cmp byte [eax], 0
mov dword [ebp - 0x12c], 1
jne 0x44f3d9
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 0x44f48f
push str.HOME
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x110], bl
test eax, eax
je 0x44f572
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x110], bl
je 0x44f572
lea eax, [ebp - 0x110]
push eax
call dword [0x4ad70c]
mov edi, eax
add esp, 4
test edi, edi
je 0x44f572
push str._netrc
push 0x496d84
push edi
push str._s_s_s
call fcn.0044dce0
push edi
mov esi, eax
call dword [0x4ad774]
add esp, 0x14
test esi, esi
jne 0x44f48b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
mov bl, 1
xor edi, edi
push 0x49a2d0
push esi
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov ecx, eax
mov dword [ebp - 0x128], ecx
test bl, bl
je 0x44f4ba
push esi
call dword [0x4ad774]
mov ecx, dword [ebp - 0x128]
add esp, 4
test ecx, ecx
je 0x44f815
push ecx
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll_fgets]
add esp, 0xc
test eax, eax
je 0x44f806
lea eax, [ebp - 0x118]
mov edx, 0x49bfe8
push eax
lea ecx, [ebp - 0x110]
call fcn.004548c0
mov ebx, dword [ebp - 0x118]
add esp, 4
mov esi, eax
test esi, esi
je 0x44f7f1
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x124]
mov ecx, dword [eax]
test ecx, ecx
je 0x44f530
cmp byte [ecx], 0
je 0x44f530
mov eax, dword [edx]
test eax, eax
je 0x44f530
cmp byte [eax], 0
jne 0x44f806
mov eax, edi
sub eax, 0
je 0x44f6dc
dec eax
je 0x44f664
dec eax
jne 0x44f766
cmp byte [ebp - 0x112], al
je 0x44f5b5
cmp dword [ebp - 0x12c], eax
je 0x44f588
mov edx, esi
call fcn.0044f940
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x112], 0
jmp 0x44f766
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
push ecx
call dword [0x4ad774]
push esi
call dword [0x4ad70c]
mov ecx, dword [ebp - 0x134]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x44f7fc
mov byte [ebp - 0x112], 0
jmp 0x44f766
cmp byte [ebp - 0x111], 0
je 0x44f5fe
cmp dword [ebp - 0x130], 0
jne 0x44f5d0
cmp dword [ebp - 0x12c], 0
jne 0x44f5f2
push dword [edx]
call dword [0x4ad774]
push esi
call dword [0x4ad70c]
mov esi, dword [ebp - 0x124]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x44f7fc
mov byte [ebp - 0x111], 0
jmp 0x44f766
mov edx, esi
mov ecx, str.login
call fcn.0044f940
test eax, eax
je 0x44f61a
mov byte [ebp - 0x112], 1
jmp 0x44f766
mov edx, esi
mov ecx, str.password
call fcn.0044f940
test eax, eax
je 0x44f636
mov byte [ebp - 0x111], 1
jmp 0x44f766
mov edx, esi
mov ecx, str.machine
call fcn.0044f940
test eax, eax
je 0x44f766
mov edi, 1
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x11c], edi
jmp 0x44f766
mov eax, dword [ebp - 0x138]
mov edi, eax
cmp byte [eax], 0
je 0x44f699
mov al, byte [esi]
test al, al
je 0x44f699
mov dl, byte [edi]
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x44f684
sub dl, 0x20
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x44f68e
sub al, 0x20
cmp dl, al
jne 0x44f699
inc edi
inc esi
cmp byte [edi], 0
jne 0x44f671
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x44f6a5
sub dl, 0x20
mov cl, byte [esi]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44f6b1
sub cl, 0x20
cmp dl, cl
jne 0x44f6cf
mov edi, 2
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], edi
jmp 0x44f766
xor edi, edi
mov dword [ebp - 0x11c], edi
jmp 0x44f766
mov ebx, esi
mov edi, str.machine
mov cl, byte [ebx]
test cl, cl
je 0x44f70a
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x44f6f5
sub dl, 0x20
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44f6ff
sub cl, 0x20
cmp dl, cl
jne 0x44f70a
inc edi
inc ebx
cmp byte [edi], 0
jne 0x44f6e3
mov dl, byte [edi]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x44f716
sub dl, 0x20
mov cl, byte [ebx]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x44f722
sub cl, 0x20
cmp dl, cl
jne 0x44f733
mov edi, 1
mov dword [ebp - 0x11c], edi
jmp 0x44f760
mov edx, esi
mov ecx, str.default
call fcn.0044f940
test eax, eax
je 0x44f75a
mov edi, 2
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], edi
jmp 0x44f760
mov edi, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x118]
cmp byte [ebx], 0
mov esi, ebx
je 0x44f793
lea ecx, [ecx]
movsx eax, byte [esi]
push eax
push 0x49bfe8
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
je 0x44f793
inc esi
cmp byte [esi], 0
jne 0x44f770
xor esi, esi
jmp 0x44f502
cmp byte [esi], 0
je 0x44f78c
mov al, byte [esi + 1]
lea ebx, [esi + 1]
mov dword [ebp - 0x118], ebx
test al, al
je 0x44f502
lea esp, [esp]
movsx eax, al
push eax
push 0x49bfe8
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
jne 0x44f7d9
mov al, byte [ebx + 1]
inc ebx
mov dword [ebp - 0x118], ebx
test al, al
jne 0x44f7b0
jmp 0x44f502
cmp byte [ebx], 0
je 0x44f502
mov byte [ebx], 0
inc ebx
mov dword [ebp - 0x118], ebx
jmp 0x44f502
mov ecx, dword [ebp - 0x128]
jmp 0x44f4c2
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.0048079e
mov esp, ebp
pop ebp
ret