Function at 0x4b34a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5bc324]
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 - 0x11c], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x118], 1
push edi
test eax, eax
je 0x4b34ef
cmp byte [eax], 0
mov dword [ebp - 0x128], 1
jne 0x4b34f9
mov dword [ebp - 0x128], 0
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x111], bl
mov byte [ebp - 0x112], bl
mov dword [ebp - 0x12c], ebx
test esi, esi
jne 0x4b359e
push str.HOME
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov byte [ebp - 0x110], bl
test eax, eax
je 0x4b3694
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x110], bl
je 0x4b3694
lea eax, [ebp - 0x110]
push eax
call dword [0x5bcc80]
mov edi, eax
add esp, 4
test edi, edi
je 0x4b3694
push str._netrc
push 0x590dfc
push edi
push str._s_s_s
call fcn.004a0b20
push edi
mov esi, eax
call dword [0x5bcc7c]
add esp, 0x14
test esi, esi
je 0x4b3694
lea edi, [ebx + 1]
push 0x593b44
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov ecx, eax
mov dword [ebp - 0x130], ecx
test edi, edi
je 0x4b35cd
test esi, esi
je 0x4b35cd
push esi
call dword [0x5bcc7c]
mov ecx, dword [ebp - 0x130]
add esp, 4
test ecx, ecx
je 0x4b3873
nop word [eax + eax]
push ecx
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4b3864
lea eax, [ebp - 0x120]
mov edx, 0x599830
push eax
lea ecx, [ebp - 0x110]
call fcn.004c5c10
mov edi, dword [ebp - 0x120]
add esp, 4
mov esi, eax
test esi, esi
je 0x4b384f
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [eax]
test ecx, ecx
je 0x4b364e
cmp byte [ecx], 0
je 0x4b364e
mov eax, dword [edx]
test eax, eax
je 0x4b364e
cmp byte [eax], 0
jne 0x4b3864
mov eax, ebx
sub eax, 0
je 0x4b379d
sub eax, 1
je 0x4b3774
sub eax, 1
jne 0x4b37b9
cmp byte [ebp - 0x111], al
je 0x4b36d5
cmp dword [ebp - 0x128], eax
je 0x4b36a8
mov edx, esi
call fcn.004bf790
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x111], 0
jmp 0x4b37b9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
push ecx
call dword [0x5bcc7c]
push esi
call dword [0x5bcc80]
mov ecx, dword [ebp - 0x134]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x4b385a
mov byte [ebp - 0x111], 0
jmp 0x4b37b9
cmp byte [ebp - 0x112], 0
je 0x4b371e
cmp dword [ebp - 0x12c], 0
jne 0x4b36f0
cmp dword [ebp - 0x128], 0
jne 0x4b3712
push dword [edx]
call dword [0x5bcc7c]
push esi
call dword [0x5bcc80]
mov esi, dword [ebp - 0x11c]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4b385a
mov byte [ebp - 0x112], 0
jmp 0x4b37b9
mov edx, esi
mov ecx, str.login
call fcn.004bf790
test eax, eax
je 0x4b373a
mov byte [ebp - 0x111], 1
jmp 0x4b37b9
mov edx, esi
mov ecx, str.password
call fcn.004bf790
test eax, eax
je 0x4b3753
mov byte [ebp - 0x112], 1
jmp 0x4b37b9
mov edx, esi
mov ecx, str.machine
call fcn.004bf790
test eax, eax
je 0x4b37b9
mov ebx, 1
mov dword [ebp - 0x12c], 0
jmp 0x4b37b3
mov ecx, dword [ebp - 0x138]
mov edx, esi
call fcn.004bf790
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 0x4b37b3
mov edx, esi
mov ecx, str.machine
call fcn.004bf790
test eax, eax
mov eax, 1
cmovne ebx, eax
mov dword [ebp - 0x124], ebx
mov al, byte [edi]
mov esi, edi
test al, al
je 0x4b37e6
movsx eax, al
push eax
push 0x599830
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
je 0x4b37e6
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4b37c1
xor esi, esi
jmp 0x4b3620
cmp byte [esi], 0
je 0x4b37df
mov al, byte [esi + 1]
lea edi, [esi + 1]
mov dword [ebp - 0x120], edi
test al, al
je 0x4b3844
mov ebx, edi
nop dword [eax]
movsx eax, al
push eax
push 0x599830
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
jne 0x4b3833
mov al, byte [ebx + 1]
lea edi, [ebx + 1]
mov dword [ebp - 0x120], edi
mov ebx, edi
test al, al
jne 0x4b3800
mov ebx, dword [ebp - 0x124]
jmp 0x4b3620
cmp byte [edi], 0
je 0x4b3844
mov byte [edi], 0
lea edi, [ebx + 1]
mov dword [ebp - 0x120], edi
mov ebx, dword [ebp - 0x124]
jmp 0x4b3620
mov ecx, dword [ebp - 0x130]
jmp 0x4b35e0
mov dword [ebp - 0x118], 0xffffffff
push dword [ebp - 0x130]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.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.00523a6a
mov esp, ebp
pop ebp
ret