Function at 0x456bd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x134], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x130], 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 0x456c1f
cmp byte [eax], 0
mov dword [ebp - 0x124], 1
jne 0x456c29
mov dword [ebp - 0x124], 0
xor bl, bl
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x112], bl
mov byte [ebp - 0x111], bl
test esi, esi
jne 0x456cd9
push str.HOME
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x110], bl
test eax, eax
je 0x456dc0
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x110], bl
je 0x456dc0
lea eax, [ebp - 0x110]
push eax
call dword [0x5007a4]
mov edi, eax
add esp, 4
test edi, edi
je 0x456dc0
push str._netrc
push 0x4e94e4
push edi
push str._s_s_s
call fcn.004507c0
push edi
mov esi, eax
call dword [0x5007b0]
add esp, 0x14
test esi, esi
jne 0x456cd7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov bl, 1
push 0x4f0ec0
push esi
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov ecx, eax
mov dword [ebp - 0x12c], ecx
test bl, bl
je 0x456d04
push esi
call dword [0x5007b0]
mov ecx, dword [ebp - 0x12c]
add esp, 4
test ecx, ecx
je 0x456f95
xor ebx, ebx
mov edi, edi
push ecx
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll_fgets]
add esp, 0xc
test eax, eax
je 0x456f86
lea eax, [ebp - 0x11c]
mov edx, 0x4f37c8
push eax
lea ecx, [ebp - 0x110]
call fcn.004655f0
mov edi, dword [ebp - 0x11c]
add esp, 4
mov esi, eax
test esi, esi
je 0x456f71
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x120]
mov ecx, dword [eax]
test ecx, ecx
je 0x456d7e
cmp byte [ecx], 0
je 0x456d7e
mov eax, dword [edx]
test eax, eax
je 0x456d7e
cmp byte [eax], 0
jne 0x456f86
mov eax, ebx
sub eax, 0
je 0x456eb7
dec eax
je 0x456ea2
dec eax
jne 0x456eed
cmp byte [ebp - 0x112], al
je 0x456e03
cmp dword [ebp - 0x124], eax
je 0x456dd6
mov edx, esi
call fcn.0045e730
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x112], 0
jmp 0x456eed
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
push ecx
call dword [0x5007b0]
push esi
call dword [0x5007a4]
mov ecx, dword [ebp - 0x130]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x456f7c
mov byte [ebp - 0x112], 0
jmp 0x456eed
cmp byte [ebp - 0x111], 0
je 0x456e4c
cmp dword [ebp - 0x128], 0
jne 0x456e1e
cmp dword [ebp - 0x124], 0
jne 0x456e40
push dword [edx]
call dword [0x5007b0]
push esi
call dword [0x5007a4]
mov esi, dword [ebp - 0x120]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x456f7c
mov byte [ebp - 0x111], 0
jmp 0x456eed
mov edx, esi
mov ecx, str.login
call fcn.0045e730
test eax, eax
je 0x456e68
mov byte [ebp - 0x112], 1
jmp 0x456eed
mov edx, esi
mov ecx, str.password
call fcn.0045e730
test eax, eax
je 0x456e81
mov byte [ebp - 0x111], 1
jmp 0x456eed
mov edx, esi
mov ecx, str.machine
call fcn.0045e730
test eax, eax
je 0x456eed
mov dword [ebp - 0x128], 0
mov ebx, 1
jmp 0x456eed
mov ecx, dword [ebp - 0x134]
mov edx, esi
call fcn.0045e730
test eax, eax
jne 0x456ede
xor ebx, ebx
jmp 0x456eed
mov edx, esi
mov ecx, str.machine
call fcn.0045e730
test eax, eax
je 0x456ece
mov ebx, 1
jmp 0x456eed
mov edx, esi
mov ecx, str.default
call fcn.0045e730
test eax, eax
je 0x456eed
mov ebx, 2
mov dword [ebp - 0x118], 0
cmp byte [edi], 0
mov esi, edi
je 0x456f17
movsx eax, byte [esi]
push eax
push 0x4f37c8
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
je 0x456f17
inc esi
cmp byte [esi], 0
jne 0x456ef4
xor esi, esi
jmp 0x456d50
cmp byte [esi], 0
je 0x456f10
mov al, byte [esi + 1]
lea edi, [esi + 1]
mov dword [ebp - 0x11c], edi
test al, al
je 0x456d50
movsx eax, al
push eax
push 0x4f37c8
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
jne 0x456f59
mov al, byte [edi + 1]
inc edi
mov dword [ebp - 0x11c], edi
test al, al
jne 0x456f30
jmp 0x456d50
cmp byte [edi], 0
je 0x456d50
mov byte [edi], 0
inc edi
mov dword [ebp - 0x11c], edi
jmp 0x456d50
mov ecx, dword [ebp - 0x12c]
jmp 0x456d10
mov dword [ebp - 0x118], 0xffffffff
push dword [ebp - 0x12c]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret