Function at 0x6cb24e30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
test byte [0x6cb2c14c], 8
jne 0x6cb24f40
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
mov dword [esp], 0x80000002
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x6cb24ecf
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.WinHttpSettings
mov dword [esp], eax
mov dword [ebp - 0x14], 0
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x6cb24ec1
cmp dword [ebp - 0x18], 3
je 0x6cb24f80
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov dword [esp], str.http_proxy
call sym._getenv
mov ebx, eax
test eax, eax
je 0x6cb24f09
mov dword [esp + 4], 0x3a
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strchr]
test eax, eax
je 0x6cb24f00
cmp byte [eax + 1], 0x2f
je 0x6cb25010
cmp byte [ebx], 0
jne 0x6cb25080
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [esp], 0
call sym._SetLastError_4
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0x6cb2fe2c
mov dword [esp + 0x10], 0x608
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.WinHttpGetDefaultProxyConfiguration
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x6cb24e46
mov ebx, dword [ebp - 0x14]
cmp ebx, 0x13
jbe 0x6cb24ec1
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6cb24ec1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.WinHttpSettings
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x6cb25180
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
jmp 0x6cb24ec1
cmp byte [eax + 2], 0x2f
jne 0x6cb24f00
mov edi, 0x6cb301d6
mov ecx, 7
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x6cb25170
test byte [0x6cb2c14c], 4
je 0x6cb24f09
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], str.unsupported_scheme_in__http_proxy:__s_n
mov dword [esp + 0x10], 0x65d
mov dword [esp + 0xc], str.WinHttpGetDefaultProxyConfiguration
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 2
call sym._ros_dbg_log
jmp 0x6cb24f09
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._MultiByteToWideChar_24
sub esp, 0x18
mov edi, eax
lea eax, [eax + eax]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GlobalAlloc_8
sub esp, 8
mov esi, eax
test eax, eax
je 0x6cb24f09
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._MultiByteToWideChar_24
mov eax, dword [ebp + 8]
sub esp, 0x18
mov dword [eax], 3
mov dword [eax + 4], esi
mov dword [eax + 8], 0
test byte [0x6cb2c14c], 8
je 0x6cb24f20
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], str.http_proxy__from_environment____s_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x66f
mov dword [esp + 0xc], str.WinHttpGetDefaultProxyConfiguration
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x6cb24f20
add ebx, 7
je 0x6cb24f09
jmp 0x6cb24f00
cmp dword [ebx], 0x18
jne 0x6cb24fe8
mov edi, dword [ebx + 4]
test edi, edi
jne 0x6cb24fe8
test byte [ebx + 8], 2
je 0x6cb24fe8
mov eax, dword [ebx + 0xc]
lea edx, [eax + 0xc]
cmp edx, dword [ebp - 0x14]
jbe 0x6cb251bf
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x6cb24fe8
add eax, 1
mov dword [esp], 0
add eax, eax
mov dword [esp + 4], eax
call sym._GlobalAlloc_8
mov edi, eax
push esi
push esi
test eax, eax
je 0x6cb25204
mov ecx, dword [ebx + 0xc]
lea edx, [ebx + 0x10]
mov dword [ebp - 0x24], edx
test ecx, ecx
je 0x6cb251ff
movzx esi, byte [edx]
add edx, 1
add eax, 2
mov word [eax - 2], si
mov esi, edx
sub esi, dword [ebp - 0x24]
cmp ecx, esi
ja 0x6cb251e9
mov word [eax], 0
mov eax, dword [ebx + 0xc]
lea edx, [eax + 0x10]
lea esi, [ebx + edx]
mov eax, dword [esi]
add edx, eax
cmp edx, dword [ebp - 0x14]
ja 0x6cb252a7
add eax, 1
mov dword [esp], 0
add eax, eax
mov dword [esp + 4], eax
call sym._GlobalAlloc_8
push ecx
push ecx
test eax, eax
je 0x6cb25262
mov edx, dword [esi]
add esi, 4
mov dword [ebp - 0x28], esi
test edx, edx
mov dword [ebp - 0x24], edx
mov edx, eax
je 0x6cb2525d
movzx ecx, byte [esi]
add esi, 1
add edx, 2
mov word [edx - 2], cx
mov ecx, esi
sub ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x24], ecx
ja 0x6cb25246
mov word [edx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 4], edi
mov dword [edx + 8], eax
mov dword [edx], 3
test byte [0x6cb2c14c], 8
jne 0x6cb252b5
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp], eax
call sym._RegCloseKey_4
push eax
jmp 0x6cb24f20
mov dword [esp], edi
call sym._GlobalFree_4
push edx
jmp 0x6cb251a9
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 4], 0xffffffff
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.http_proxy__from_registry____s__bypass___s_n
mov dword [esp + 0x10], 0x647
mov dword [esp + 0xc], str.WinHttpGetDefaultProxyConfiguration
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x6cb2527a