Function at 0x499320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.no_proxy
mov dword [ebp - 0x6a0], ecx
xor esi, esi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 4
mov byte [ebp - 0x188], 0
test eax, eax
je 0x499389
push 0x104
lea ecx, [ebp - 0x188]
push ecx
push eax
call edi
cmp byte [ebp - 0x188], 0
je 0x499389
lea eax, [ebp - 0x188]
push eax
call dword [0x5bcc80]
add esp, 4
mov ebx, eax
jmp 0x49938b
xor ebx, ebx
test ebx, ebx
jne 0x4993d4
push str.NO_PROXY
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov byte [ebp - 0x28c], bl
test eax, eax
je 0x4993d2
push 0x104
lea ecx, [ebp - 0x28c]
push ecx
push eax
call edi
cmp byte [ebp - 0x28c], bl
je 0x4993d2
lea eax, [ebp - 0x28c]
push eax
call dword [0x5bcc80]
add esp, 4
mov ebx, eax
jmp 0x4993d4
xor ebx, ebx
mov edi, dword [ebp - 0x6a0]
mov edx, ebx
mov ecx, dword [edi + 0x98]
call fcn.004991e0
test eax, eax
jne 0x4995ad
mov eax, dword [edi + 0x2c0]
lea esi, [ebp - 0x84]
mov edi, dword [eax]
mov al, byte [edi]
test al, al
je 0x49941c
movsx eax, al
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [esi], al
lea edi, [edi + 1]
mov al, byte [edi]
add esp, 4
inc esi
test al, al
jne 0x499403
mov eax, dword [str._proxy]
mov dword [esi], eax
mov ax, word [0x596a14]
mov word [esi + 4], ax
mov al, byte [0x596a16]
mov byte [esi + 6], al
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 4
mov byte [ebp - 0x390], 0
test eax, eax
je 0x499482
push 0x104
lea ecx, [ebp - 0x390]
push ecx
push eax
call edi
cmp byte [ebp - 0x390], 0
je 0x499482
lea eax, [ebp - 0x390]
push eax
call dword [0x5bcc80]
add esp, 4
mov esi, eax
jmp 0x499484
xor esi, esi
test esi, esi
jne 0x499512
lea edx, [ebp - 0x84]
mov ecx, str.http_proxy
call fcn.004bf790
test eax, eax
jne 0x49951b
mov esi, 0x80
lea edx, [ebp - 0x84]
nop dword [eax + eax]
mov cl, byte [edx]
call fcn.004bf6c0
mov byte [edx], al
lea edx, [edx + 1]
test al, al
je 0x4994c5
sub esi, 1
jne 0x4994b0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov byte [ebp - 0x494], 0
test eax, eax
je 0x49950c
push 0x104
lea ecx, [ebp - 0x494]
push ecx
push eax
call edi
cmp byte [ebp - 0x494], 0
je 0x49950c
lea eax, [ebp - 0x494]
push eax
call dword [0x5bcc80]
add esp, 4
mov esi, eax
jmp 0x49950e
xor esi, esi
test esi, esi
je 0x49951b
cmp byte [esi], 0
jne 0x4995ad
push str.all_proxy
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov byte [ebp - 0x598], 0
test eax, eax
je 0x499560
push 0x104
lea ecx, [ebp - 0x598]
push ecx
push eax
call edi
cmp byte [ebp - 0x598], 0
je 0x499560
lea eax, [ebp - 0x598]
push eax
call dword [0x5bcc80]
add esp, 4
mov esi, eax
jmp 0x499562
xor esi, esi
test esi, esi
jne 0x4995ad
push str.ALL_PROXY
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov byte [ebp - 0x69c], 0
test eax, eax
je 0x4995ab
push 0x104
lea ecx, [ebp - 0x69c]
push ecx
push eax
call edi
cmp byte [ebp - 0x69c], 0
je 0x4995ab
lea eax, [ebp - 0x69c]
push eax
call dword [0x5bcc80]
add esp, 4
mov esi, eax
jmp 0x4995ad
xor esi, esi
test ebx, ebx
je 0x4995bb
push ebx
call dword [0x5bcc7c]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523a6a
mov esp, ebp
pop ebp
ret