Function at 0x6c120040
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 0x6c1200ae
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 0x6c120410
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 0x6c12012e
cmp dword [ebp - 0x5c], 4
je 0x6c120171
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 0x6c120448
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 0x6c120193
mov esi, dword [ebx]
test esi, esi
je 0x6c120270
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 0x6c1201d6
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x6c120490
test byte [0x6c1471a4], 8
jne 0x6c120770
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 0x6c12033a
movzx eax, byte [0x6c1471a4]
and eax, 8
test al, al
je 0x6c120256
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 0x6c120740
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x6c1207a0
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 0x6c120740
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
test byte [0x6c1471a4], 8
jne 0x6c120827
mov dword [ebx], 1
mov dword [ebx + 8], 0
test byte [0x6c1471a4], 8
jne 0x6c1205a0
mov dword [esp], str.no_proxy
mov eax, dword [ebp - 0x78]
call eax
mov edi, eax
test eax, eax
je 0x6c1205d0
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 0x6c120afc
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x6c120380
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 0x6c120256
mov eax, esi
shr eax, 0x10
je 0x6c120920
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c24d
test edx, edx
jne 0x6c1203e1
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 0x6c120256
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 0x6c1201d6
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
mov eax, dword [ebp - 0x60]
test esi, esi
je 0x6c120b15
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], 0x6c14c4c0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov ecx, 0x74
mov edx, eax
mov eax, 0x6c14c4c0
test edx, edx
jne 0x6c120504
jmp 0x6c120530
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x6c120500
sub eax, 0x6c14c4c0
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 0x6c120520
mov dword [esp + 4], 0x3b
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x6c12054a
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 0x6c120a51
mov eax, dword [ebx]
test eax, eax
jne 0x6c120347
jmp 0x6c120256
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 0x6c120347
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 0x6c1206e0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x6c1206e0
cmp dword [ebp - 0x5c], 1
jne 0x6c1206e0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
mov eax, dword [ebp - 0x60]
test esi, esi
je 0x6c120aff
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 0x6c120256
mov eax, esi
shr eax, 0x10
je 0x6c120ae4
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c24d
test edx, edx
jne 0x6c1206b3
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 0x6c120256
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 0x6c120256
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 0x6c120256
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 0x6c1209a8
mov dword [ebx], 0
movzx eax, byte [0x6c1471a4]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
and eax, 8
jmp 0x6c12022e
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 0x6c1201e3
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 0x6c120740
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 0x6c120890
mov dword [ebx + 0xc], 0
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x6c120940
mov dword [ebx + 0x10], 0
test byte [0x6c1471a4], 8
je 0x6c12032d
mov esi, dword [ebx + 4]
mov eax, 0x6c14c246
test esi, esi
je 0x6c12085d
mov eax, esi
shr eax, 0x10
je 0x6c120a23
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c24d
test edx, edx
jne 0x6c12085d
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 0x6c12032d
mov eax, dword [ebp - 0x38]
mov edx, eax
mov dword [ebp - 0x80], eax
xor eax, eax
test edx, edx
je 0x6c120728
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 0x6c120a0f
cmp eax, ecx
jne 0x6c1208b0
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 0x6c120728
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 0x6c1207fc
movzx esi, si
mov dword [esp], 0x6c14c240
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c1203e1
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x6c120ab0
lea esi, [esi]
nop
movzx eax, word [edi + esi*2]
mov ecx, esi
inc esi
test ax, ax
je 0x6c120a1c
cmp esi, edx
jne 0x6c120950
lea esi, [edx + edx + 2]
mov eax, dword [ebp - 0x84]
mov dword [esp], esi
call eax
mov edx, eax
test eax, eax
je 0x6c120ab0
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 0x6c12080e
mov eax, dword [ebp - 0x7c]
shr eax, 0x10
je 0x6c120a3b
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, 0x6c14c24d
test edx, edx
jne 0x6c1209e2
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 0x6c12074d
mov esi, dword [ebp - 0x88]
mov ecx, edi
jmp 0x6c1208ca
mov edx, ecx
jmp 0x6c120964
movzx esi, si
mov dword [esp], 0x6c14c240
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c12085d
movzx eax, word [ebp - 0x7c]
mov dword [esp], 0x6c14c240
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c1209e2
mov eax, esi
shr eax, 0x10
je 0x6c120acf
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c24d
test edx, edx
jne 0x6c120a83
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 0x6c12021a
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 0x6c120740
movzx esi, si
mov dword [esp], 0x6c14c240
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c120a83
movzx esi, si
mov dword [esp], 0x6c14c240
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c1206b3
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x6c], 0xe
push edx
jmp 0x6c120436
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 0x6c120436