Function at 0x6c11ffe0
Capabilities:
Get proxy
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x9c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esp], 0x6c1470d4
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x6c147304]
sub esp, 4
test eax, eax
je 0x6c12004e
mov edx, dword [eax]
mov esi, dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx], edx
mov eax, dword [eax + 4]
mov dword [esp], eax
call esi
mov dword [ebx + 4], eax
mov eax, dword [0x6c147304]
mov eax, dword [eax + 8]
mov dword [esp], eax
call esi
mov dword [ebx + 8], eax
mov dword [esp], 0x6c1470d4
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x60]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x6c], eax
sub esp, 0xc
test eax, eax
jne 0x6c1203b0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyEnable
mov dword [ebp - 0x70], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x6c1200ce
cmp dword [ebp - 0x5c], 4
je 0x6c120111
mov eax, dword [ebp - 0x60]
mov dword [ebx], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyEnable
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x6c1203e8
mov eax, dword [sym.imp.ucrtbase.dll__wgetenv]
mov dword [esp], str.http_proxy
mov dword [ebp - 0x78], eax
call eax
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x6c120133
mov esi, dword [ebx]
test esi, esi
je 0x6c120210
lea eax, [ebp - 0x58]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], str.ProxyServer
call eax
sub esp, 0x18
test eax, eax
jne 0x6c120176
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x6c120430
test byte [0x6c1471a4], 8
jne 0x6c120710
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x74], edi
mov dword [esp], eax
call edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call edi
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov ecx, dword [ebx]
test ecx, ecx
jne 0x6c1202da
movzx eax, byte [0x6c1471a4]
and eax, 8
test al, al
je 0x6c1201f6
mov dword [esp + 0xc], str.Proxy_is_disabled._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x74], edi
mov dword [esp], eax
call edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call edi
mov eax, esi
lea edi, [ebp - 0x50]
mov ecx, 0xe
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x3c
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 1
call sym.wininet.dll_InternetCrackUrlW
sub esp, 0x10
test eax, eax
je 0x6c1206e0
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x6c120740
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 4], eax
mov esi, eax
test eax, eax
je 0x6c1206e0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
test byte [0x6c1471a4], 8
jne 0x6c1207c7
mov dword [ebx], 1
mov dword [ebx + 8], 0
test byte [0x6c1471a4], 8
jne 0x6c120540
mov dword [esp], str.no_proxy
mov eax, dword [ebp - 0x78]
call eax
mov edi, eax
test eax, eax
je 0x6c120570
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x6c120a9c
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x6c120320
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x74]
call eax
mov dword [ebx + 8], esi
test byte [0x6c1471a4], 8
je 0x6c1201f6
mov eax, esi
shr eax, 0x10
je 0x6c1208c0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c249
test edx, edx
jne 0x6c120381
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0_2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.http_proxy_bypass__from_environment____s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c1201f6
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x6c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x6c], esi
mov eax, dword [ebp - 0x6c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x5c], 1
jne 0x6c120176
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
mov eax, dword [ebp - 0x60]
test esi, esi
je 0x6c120ab5
lea ecx, [ebp - 0x58]
mov dword [esp], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x5c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyServer
call eax
sub esp, 0x18
mov dword [esp + 4], 0x6c14c4bc
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov ecx, 0x74
mov edx, eax
mov eax, 0x6c14c4bc
test edx, edx
jne 0x6c1204a4
jmp 0x6c1204d0
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x6c1204a0
sub eax, 0x6c14c4bc
lea ecx, [edx + eax]
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x6c1204c0
mov dword [esp + 4], 0x3b
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x6c1204ea
xor ecx, ecx
mov word [eax], cx
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x74], edi
mov dword [esp], eax
call edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call edi
mov dword [ebx + 4], esi
mov dword [ebx + 8], 0
test byte [0x6c1471a4], 8
jne 0x6c1209f1
mov eax, dword [ebx]
test eax, eax
jne 0x6c1202e7
jmp 0x6c1201f6
mov dword [esp + 0xc], str.Proxy_is_enabled._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c1202e7
lea eax, [ebp - 0x58]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], str.ProxyOverride
call eax
sub esp, 0x18
test eax, eax
jne 0x6c120680
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x6c120680
cmp dword [ebp - 0x5c], 1
jne 0x6c120680
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
mov eax, dword [ebp - 0x60]
test esi, esi
je 0x6c120a9f
lea ecx, [ebp - 0x58]
mov dword [esp], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x5c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyOverride
call eax
mov eax, dword [ebx + 8]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x74]
call eax
mov dword [ebx + 8], esi
test byte [0x6c1471a4], 8
je 0x6c1201f6
mov eax, esi
shr eax, 0x10
je 0x6c120a84
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c249
test edx, edx
jne 0x6c120653
or edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0_2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.http_proxy_bypass__from_registry____s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c1201f6
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x74]
call eax
mov dword [ebx + 8], 0
test byte [0x6c1471a4], 8
je 0x6c1201f6
mov dword [esp + 0xc], str.No_proxy_bypass_server_settings_in_registry._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c1201f6
mov eax, dword [ebx + 4]
mov dword [ebx + 0xc], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x74]
call eax
lea esi, [esi]
test byte [0x6c1471a4], 4
jne 0x6c120948
mov dword [ebx], 0
movzx eax, byte [0x6c1471a4]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
and eax, 8
jmp 0x6c1201ce
mov dword [esp + 0xc], str.No_proxy_server_settings_in_registry._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c120183
lea ecx, [edi + 0xc]
lea eax, [ecx + ecx]
mov dword [ebp - 0x80], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x84], eax
call eax
mov dword [ebx + 4], eax
test eax, eax
je 0x6c1206e0
movzx edx, word [ebp - 0x3c]
mov ecx, dword [ebp - 0x80]
mov dword [esp + 0xc], edi
mov dword [esp + 8], str._.s:_u
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x44]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], edx
mov dword [esp], eax
call sym._swprintf_1
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x6c120830
mov dword [ebx + 0xc], 0
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x6c1208e0
mov dword [ebx + 0x10], 0
test byte [0x6c1471a4], 8
je 0x6c1202cd
mov esi, dword [ebx + 4]
mov eax, 0x6c14c242
test esi, esi
je 0x6c1207fd
mov eax, esi
shr eax, 0x10
je 0x6c1209c3
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c249
test edx, edx
jne 0x6c1207fd
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0_2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.http_proxy__from_environment____s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c1202cd
mov eax, dword [ebp - 0x38]
mov edx, eax
mov dword [ebp - 0x80], eax
xor eax, eax
test edx, edx
je 0x6c1206c8
mov dword [ebp - 0x88], esi
mov esi, dword [ebp - 0x80]
lea esi, [esi]
nop
movzx edx, word [esi + eax*2]
mov edi, eax
inc eax
test dx, dx
je 0x6c1209af
cmp eax, ecx
jne 0x6c120850
mov esi, dword [ebp - 0x88]
lea eax, [ecx + ecx + 2]
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov dword [esp], eax
call ecx
mov edi, eax
test eax, eax
je 0x6c1206c8
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x80]
mov dword [esp], edi
sub eax, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0x88]
xor edx, edx
mov dword [ebx + 0xc], edi
mov word [edi + eax - 2], dx
jmp 0x6c12079c
movzx esi, si
mov dword [esp], 0x6c14c23c
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c120381
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x6c120a50
lea esi, [esi]
nop
movzx eax, word [edi + esi*2]
mov ecx, esi
inc esi
test ax, ax
je 0x6c1209bc
cmp esi, edx
jne 0x6c1208f0
lea esi, [edx + edx + 2]
mov eax, dword [ebp - 0x84]
mov dword [esp], esi
call eax
mov edx, eax
test eax, eax
je 0x6c120a50
lea eax, [esi - 2]
mov dword [esp + 4], edi
xor edi, edi
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x7c], edx
call sym._memcpy
mov edx, dword [ebp - 0x7c]
mov word [edx + esi - 2], di
mov dword [ebx + 0x10], edx
jmp 0x6c1207ae
mov eax, dword [ebp - 0x7c]
shr eax, 0x10
je 0x6c1209db
mov esi, dword [ebp - 0x7c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c249
test edx, edx
jne 0x6c120982
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0_2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_parse_http_proxy_value__s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c1206ed
mov esi, dword [ebp - 0x88]
mov ecx, edi
jmp 0x6c12086a
mov edx, ecx
jmp 0x6c120904
movzx esi, si
mov dword [esp], 0x6c14c23c
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c1207fd
movzx eax, word [ebp - 0x7c]
mov dword [esp], 0x6c14c23c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c120982
mov eax, esi
shr eax, 0x10
je 0x6c120a6f
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c249
test edx, edx
jne 0x6c120a23
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0_2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.http_proxy__from_registry____s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c1201ba
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp - 0x74]
mov dword [ebx + 0x10], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
jmp 0x6c1206e0
movzx esi, si
mov dword [esp], 0x6c14c23c
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c120a23
movzx esi, si
mov dword [esp], 0x6c14c23c
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c120653
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x6c], 0xe
push edx
jmp 0x6c1203d6
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebx + 4]
push esi
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov dword [ebp - 0x6c], 0xe
jmp 0x6c1203d6