Function at 0x454660
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5b706c]
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 - 0x120], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x118], 1
push edi
test eax, eax
je 0x4546af
cmp byte [eax], 0
mov dword [ebp - 0x12c], 1
jne 0x4546b9
mov dword [ebp - 0x12c], 0
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x111], bl
mov byte [ebp - 0x112], bl
mov dword [ebp - 0x130], ebx
test esi, esi
jne 0x45476f
push str.HOME
call fcn.00535df6
add esp, 4
mov byte [ebp - 0x110], bl
test eax, eax
je 0x454864
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x110], bl
je 0x454864
lea eax, [ebp - 0x110]
push eax
call dword [0x5b7b74]
mov edi, eax
add esp, 4
test edi, edi
je 0x454864
push str._netrc
push 0x588c50
push edi
push str._s_s_s
call fcn.0043c7e0
push edi
mov esi, eax
call dword [0x5b7b6c]
add esp, 0x14
test esi, esi
jne 0x45476a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov edi, 1
push 0x588cbc
push esi
call fcn.0052e79e
add esp, 8
mov dword [ebp - 0x128], eax
test edi, edi
je 0x454797
push esi
call dword [0x5b7b6c]
mov eax, dword [ebp - 0x128]
add esp, 4
test eax, eax
je 0x454a62
nop
push eax
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.00535ae0
add esp, 0xc
test eax, eax
je 0x454a54
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x110]
call fcn.00459c40
mov esi, eax
add esp, 4
test esi, esi
je 0x4547e3
cmp byte [esi], 0x23
mov eax, dword [ebp - 0x128]
je 0x4547a0
mov edi, dword [ebp - 0x124]
nop dword [eax]
test esi, esi
je 0x454a3f
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x120]
mov ecx, dword [eax]
test ecx, ecx
je 0x45481e
cmp byte [ecx], 0
je 0x45481e
mov eax, dword [edx]
test eax, eax
je 0x45481e
cmp byte [eax], 0
jne 0x454a54
mov eax, ebx
sub eax, 0
je 0x454972
sub eax, 1
je 0x454949
sub eax, 1
jne 0x4549ae
cmp byte [ebp - 0x111], al
je 0x4548a7
cmp dword [ebp - 0x12c], eax
je 0x45487a
mov edx, esi
call fcn.0044aa50
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x111], 0
jmp 0x4549ae
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
push ecx
call dword [0x5b7b6c]
push esi
call dword [0x5b7b74]
mov ecx, dword [ebp - 0x134]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x454a4a
mov byte [ebp - 0x111], 0
jmp 0x4549ae
cmp byte [ebp - 0x112], 0
je 0x4548f0
cmp dword [ebp - 0x130], 0
jne 0x4548c2
cmp dword [ebp - 0x12c], 0
jne 0x4548e4
push dword [edx]
call dword [0x5b7b6c]
push esi
call dword [0x5b7b74]
mov esi, dword [ebp - 0x120]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x454a4a
mov byte [ebp - 0x112], 0
jmp 0x4549ae
mov edx, esi
mov ecx, str.login
call fcn.0044aa50
test eax, eax
je 0x45490c
mov byte [ebp - 0x111], 1
jmp 0x4549ae
mov edx, esi
mov ecx, str.password
call fcn.0044aa50
test eax, eax
je 0x454928
mov byte [ebp - 0x112], 1
jmp 0x4549ae
mov edx, esi
mov ecx, str.machine
call fcn.0044aa50
test eax, eax
je 0x4549ae
mov ebx, 1
mov dword [ebp - 0x130], 0
jmp 0x4549a8
mov ecx, dword [ebp - 0x138]
mov edx, esi
call fcn.0044aa50
xor ecx, ecx
mov ebx, eax
test ebx, ebx
cmove ecx, dword [ebp - 0x118]
neg ebx
mov dword [ebp - 0x118], ecx
sbb ebx, ebx
and ebx, 2
jmp 0x4549a8
mov edx, esi
mov ecx, str.machine
call fcn.0044aa50
test eax, eax
je 0x454989
mov ebx, 1
jmp 0x4549a8
mov edx, esi
mov ecx, str.default
call fcn.0044aa50
test eax, eax
je 0x4549ae
mov ebx, 2
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], ebx
mov al, byte [edi]
mov esi, edi
test al, al
je 0x4549da
movsx eax, al
push eax
push 0x588cd0
call fcn.00524370
add esp, 8
test eax, eax
je 0x4549da
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4549b6
xor esi, esi
jmp 0x4547f0
cmp byte [esi], 0
je 0x4549d3
mov al, byte [esi + 1]
lea edi, [esi + 1]
mov dword [ebp - 0x124], edi
test al, al
je 0x454a34
mov ebx, edi
movsx eax, al
push eax
push 0x588cd0
call fcn.00524370
add esp, 8
test eax, eax
jne 0x454a23
mov al, byte [ebx + 1]
lea edi, [ebx + 1]
mov dword [ebp - 0x124], edi
mov ebx, edi
test al, al
jne 0x4549f1
mov ebx, dword [ebp - 0x11c]
jmp 0x4547f0
cmp byte [edi], 0
je 0x454a34
mov byte [edi], 0
lea edi, [ebx + 1]
mov dword [ebp - 0x124], edi
mov ebx, dword [ebp - 0x11c]
jmp 0x4547f0
mov eax, dword [ebp - 0x128]
jmp 0x4547a0
mov dword [ebp - 0x118], 0xffffffff
push dword [ebp - 0x128]
call fcn.005294e0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret