Function at 0x1001fd70
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
add esp, 0xffffff80
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], 0x100470d4
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x10047304]
sub esp, 4
test eax, eax
je 0x1001fddb
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 [0x10047304]
mov eax, dword [eax + 8]
mov dword [esp], eax
call esi
mov dword [ebx + 8], eax
mov dword [esp], 0x100470d4
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x54]
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 - 0x58], eax
sub esp, 0xc
test eax, eax
jne 0x10020140
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x54]
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 - 0x5c], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x1001fe5b
cmp dword [ebp - 0x50], 4
je 0x1001fe9e
mov eax, dword [ebp - 0x54]
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 0x10020178
mov eax, dword [sym.imp.ucrtbase.dll__wgetenv]
mov dword [esp], str.http_proxy
mov dword [ebp - 0x64], eax
call eax
mov dword [ebp - 0x68], eax
test eax, eax
je 0x1001fec0
mov esi, dword [ebx]
test esi, esi
je 0x1001ffa0
lea eax, [ebp - 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], str.ProxyServer
call eax
sub esp, 0x18
test eax, eax
jne 0x1001ff03
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x100201c0
test byte [0x100471a4], 8
jne 0x10020460
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x60], 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 0x1002006a
movzx eax, byte [0x100471a4]
and eax, 8
test al, al
je 0x1001ff83
mov dword [esp + 0xc], str.Proxy_is_disabled._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x58]
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 - 0x60], 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 - 0x44]
mov ecx, 0xe
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], 1
call sym.wininet.dll_InternetCrackUrlW
sub esp, 0x10
test eax, eax
je 0x100204a0
mov edi, dword [ebp - 0x34]
test edi, edi
jne 0x100204d0
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 4], eax
mov esi, eax
test eax, eax
je 0x100204a0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
test byte [0x100471a4], 8
jne 0x10020620
mov dword [ebx], 1
mov dword [ebx + 8], 0
test byte [0x100471a4], 8
jne 0x100202d0
mov dword [esp], str.no_proxy
mov eax, dword [ebp - 0x64]
call eax
mov edi, eax
test eax, eax
je 0x10020300
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 0x10020815
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x100200b0
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
mov dword [ebx + 8], esi
test byte [0x100471a4], 8
je 0x1001ff83
mov eax, esi
shr eax, 0x10
je 0x10020600
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x1004c271
test edx, edx
jne 0x10020111
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], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x1001ff83
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 - 0x58]
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 - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x58]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x50], 1
jne 0x1001ff03
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
mov eax, dword [ebp - 0x54]
test esi, esi
je 0x10020818
lea ecx, [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x50]
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], 0x1004c4e4
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov ecx, 0x74
mov edx, eax
mov eax, 0x1004c4e4
test edx, edx
jne 0x10020234
jmp 0x10020260
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10020230
sub eax, 0x1004c4e4
lea ecx, [edx + eax]
xor eax, eax
lea esi, cs:[esi]
nop
movzx edx, word [ecx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x10020250
mov dword [esp + 4], 0x3b
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x1002027a
xor ecx, ecx
mov word [eax], cx
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x60], 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 [0x100471a4], 8
jne 0x1002076a
mov eax, dword [ebx]
test eax, eax
jne 0x10020077
jmp 0x1001ff83
mov dword [esp + 0xc], str.Proxy_is_enabled._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x10020077
lea eax, [ebp - 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], str.ProxyOverride
call eax
sub esp, 0x18
test eax, eax
jne 0x10020410
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10020410
cmp dword [ebp - 0x50], 1
jne 0x10020410
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
mov eax, dword [ebp - 0x54]
test esi, esi
je 0x10020818
lea ecx, [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x50]
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 - 0x60]
call eax
mov dword [ebx + 8], esi
test byte [0x100471a4], 8
je 0x1001ff83
mov eax, esi
shr eax, 0x10
je 0x100207fd
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x1004c271
test edx, edx
jne 0x100203e3
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], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x1001ff83
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
mov dword [ebx + 8], 0
test byte [0x100471a4], 8
je 0x1001ff83
mov dword [esp + 0xc], str.No_proxy_bypass_server_settings_in_registry._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x1001ff83
mov dword [esp + 0xc], str.No_proxy_server_settings_in_registry._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x1001ff10
mov eax, dword [ebx + 4]
mov dword [ebx + 0xc], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
lea esi, cs:[esi]
test byte [0x100471a4], 4
jne 0x100206c8
mov dword [ebx], 0
movzx eax, byte [0x100471a4]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
and eax, 8
jmp 0x1001ff5b
lea ecx, [edi + 0xc]
lea eax, [ecx + ecx]
mov dword [ebp - 0x6c], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x70], eax
call eax
mov dword [ebx + 4], eax
test eax, eax
je 0x100204a0
movzx edx, word [ebp - 0x30]
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], str._.s:_u
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], edx
mov dword [esp], eax
call sym._swprintf_1
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x10020588
mov dword [ebx + 0xc], 0
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x10020660
mov dword [ebx + 0x10], 0
test byte [0x100471a4], 8
je 0x1002005d
mov esi, dword [ebx + 4]
mov eax, 0x1004c26a
test esi, esi
jne 0x10020620
lea esi, [esi]
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], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x1002005d
mov eax, dword [ebp - 0x2c]
mov edx, eax
mov dword [ebp - 0x6c], eax
xor eax, eax
test edx, edx
je 0x10020489
mov dword [ebp - 0x74], esi
mov esi, dword [ebp - 0x6c]
movzx edx, word [esi + eax*2]
mov edi, eax
inc eax
test dx, dx
je 0x1002072b
cmp eax, ecx
jne 0x100205a0
mov esi, dword [ebp - 0x74]
lea eax, [ecx + ecx + 2]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov dword [esp], eax
call ecx
mov edi, eax
test eax, eax
je 0x10020489
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x6c]
mov dword [esp], edi
sub eax, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0x74]
xor edx, edx
mov dword [ebx + 0xc], edi
mov word [edi + eax - 2], dx
jmp 0x10020525
movzx esi, si
mov dword [esp], 0x1004c264
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x10020111
mov eax, esi
shr eax, 0x10
je 0x10020752
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x1004c271
test edx, edx
jne 0x10020558
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0_2
jmp 0x10020558
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x100207c9
lea esi, cs:[esi]
movzx eax, word [edi + esi*2]
mov ecx, esi
inc esi
test ax, ax
je 0x10020735
cmp esi, edx
jne 0x10020670
lea esi, [edx + edx + 2]
mov eax, dword [ebp - 0x70]
mov dword [esp], esi
call eax
mov edx, eax
test eax, eax
je 0x100207c9
lea eax, [esi - 2]
mov dword [esp + 4], edi
xor edi, edi
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x68], edx
call sym._memcpy
mov edx, dword [ebp - 0x68]
mov word [edx + esi - 2], di
mov dword [ebx + 0x10], edx
jmp 0x10020537
mov eax, dword [ebp - 0x68]
shr eax, 0x10
je 0x1002073c
mov esi, dword [ebp - 0x68]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x1004c271
test edx, edx
jne 0x100206fe
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], 0x100471a4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_5
jmp 0x100204ad
mov esi, dword [ebp - 0x74]
mov ecx, edi
jmp 0x100205b7
mov edx, ecx
jmp 0x10020684
movzx eax, word [ebp - 0x68]
mov dword [esp], 0x1004c264
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x100206fe
movzx esi, si
mov dword [esp], 0x1004c264
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x10020558
mov eax, esi
shr eax, 0x10
je 0x100207e8
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x1004c271
test edx, edx
jne 0x1002079c
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], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x1001ff47
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp - 0x60]
mov dword [ebx + 0x10], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
jmp 0x100204a0
movzx esi, si
mov dword [esp], 0x1004c264
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x1002079c
movzx esi, si
mov dword [esp], 0x1004c264
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x100203e3
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
push edx
call sym._FreeProxyInfo
mov dword [ebp - 0x58], 0xe
jmp 0x10020166