Function at 0x6cb25770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov dword [ebp - 0x1c], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], 0
test byte [0x6cb2c14c], 8
jne 0x6cb259c0
test ebx, ebx
je 0x6cb25a00
lea eax, [ebp - 0x1c]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
mov dword [esp], 0x80000001
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x6cb25840
xor edi, edi
mov eax, dword [ebp - 0x1c]
mov esi, 1
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
mov dword [esp], 0
call sym._SetLastError_4
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DefaultConnectionSettings
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x6cb257ec
cmp dword [ebp - 0x18], 3
jne 0x6cb257ec
mov edi, dword [ebp - 0x14]
cmp edi, 0xb
jbe 0x6cb257ec
call sym._GetProcessHeap_0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x6cb25a20
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DefaultConnectionSettings
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x6cb257ee
cmp dword [edi], 0x46
jne 0x6cb257ee
mov eax, dword [edi + 8]
shr eax, 3
and eax, 1
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x6cb25a20
mov edx, dword [edi + 0xc]
test edx, edx
je 0x6cb25923
test byte [edi + 8], 2
jne 0x6cb25a95
lea ecx, [edx + 0x14]
mov dword [ebp - 0x24], ecx
cmp ecx, eax
ja 0x6cb25a20
mov ecx, dword [edi + edx + 0x10]
test ecx, ecx
je 0x6cb25943
test byte [edi + 8], 2
jne 0x6cb25af8
add ecx, dword [ebp - 0x24]
lea edx, [ecx + 4]
cmp edx, eax
ja 0x6cb25a20
mov ecx, dword [edi + ecx]
test ecx, ecx
je 0x6cb257ee
test byte [edi + 8], 4
je 0x6cb257ee
lea eax, [ecx + 1]
mov dword [esp], 0
add eax, eax
mov dword [ebp - 0x28], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x24], ecx
call sym._GlobalAlloc_8
push edx
push edx
mov dword [ebx + 4], eax
test eax, eax
je 0x6cb25a20
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
lea esi, [edi + edx]
mov edx, esi
movzx ebx, byte [edx]
add edx, 1
add eax, 2
mov word [eax - 2], bx
mov ebx, edx
sub ebx, esi
cmp ecx, ebx
ja 0x6cb25999
mov word [eax], 0
jmp 0x6cb257ee
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x6cb2fe2c
mov dword [esp + 0x10], 0x689
mov dword [esp + 0xc], str.WinHttpGetIEProxyConfigForCurrentUser
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 3
call sym._ros_dbg_log
test ebx, ebx
jne 0x6cb2579f
mov dword [esp], 0x57
xor esi, esi
call sym._SetLastError_4
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, dword [ebx + 4]
sub esp, 0xc
mov dword [esp], eax
call sym._GlobalFree_4
mov eax, dword [ebx + 8]
mov dword [ebx + 4], 0
sub esp, 4
mov dword [esp], eax
call sym._GlobalFree_4
mov eax, dword [ebx + 0xc]
mov dword [ebx + 8], 0
sub esp, 4
mov dword [esp], eax
call sym._GlobalFree_4
mov dword [ebx + 0xc], 0
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea eax, [edx + edx + 2]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x28], edx
call sym._GlobalAlloc_8
sub esp, 8
mov ecx, eax
mov dword [ebx + 8], eax
test eax, eax
je 0x6cb25a20
mov dword [ebp - 0x24], esi
lea eax, [edi + 0x10]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov edi, eax
lea esi, [esi]
movzx esi, byte [eax]
add eax, 1
add ecx, 2
mov word [ecx - 2], si
mov esi, eax
sub esi, edi
cmp edx, esi
ja 0x6cb25ad0
xor eax, eax
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov word [ecx], ax
mov eax, dword [ebp - 0x14]
jmp 0x6cb25923
lea eax, [ecx + ecx + 2]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x2c], ecx
call sym._GlobalAlloc_8
sub esp, 8
mov dword [ebx + 0xc], eax
test eax, eax
je 0x6cb25a20
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp + 8], ebx
add edx, edi
mov dword [ebp - 0x28], edx
mov ebx, edx
movzx edi, byte [edx]
add edx, 1
add eax, 2
mov word [eax - 2], di
mov edi, edx
sub edi, ebx
cmp ecx, edi
ja 0x6cb25b30
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov word [eax], 0
mov eax, dword [ebp - 0x14]
jmp 0x6cb25943