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

Disassembly:
sub esp, 0x56c
push ebx
push ebp
push esi
push edi
mov ebp, 1
push str.wininet.dll
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [0x1004c1b8]
mov edi, eax
push str.InternetGetConnectedStateExA
push edi
call ebx
push str.DetectAutoProxyUrl
push edi
mov esi, eax
call ebx
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp esi, ebx
je 0x1003625a
cmp eax, ebx
je 0x1003625a
xor eax, eax
mov ecx, 0x40
mov dword [esp + 0x28], eax
lea edi, [esp + 0x79]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x78], bl
mov dword [esp + 0x30], eax
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x7c]
push 0x104
lea edx, [esp + 0x20]
mov ebp, 0x14
push ecx
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 5
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 3
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 2
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebp
stosb byte es:[edi], al
call esi
mov eax, dword [esp + 0x18]
test al, 1
je 0x100360be
push eax
lea eax, [esp + 0x7c]
push eax
push str._CurrentConnectionName___s_dwFlags__0x_.8X
push 0x1004bf04
call sym.TpiSetup.dll_TPI_OutputLog
lea ecx, [esp + 0x88]
add esp, 0x10
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x44]
push 0x4b
push ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], 5
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], ebp
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
jne 0x100360f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret
mov al, byte [esp + 0x40]
test al, 2
je 0x1003611a
mov ecx, dword [esp + 0x580]
mov edx, dword [esp + 0x70]
mov dword [ecx], edx
mov ecx, dword [esp + 0x584]
mov edx, dword [esp + 0x64]
mov dword [ecx], edx
mov ebp, dword [esp + 0x588]
test al, 4
je 0x1003617b
mov edi, dword [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
cmp edx, ebx
mov dword [ebp], edx
je 0x1003617b
mov edi, dword [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
push ecx
push str._PROXY_TYPE_AUTO_PROXY_URL__url_s
push 0x1004bf38
call sym.TpiSetup.dll_TPI_OutputLog
add esp, 0xc
test byte [esp + 0x40], 8
je 0x10036377
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x17d]
mov byte [esp + 0x17c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 3
lea edx, [esp + 0x180]
push 0x400
push edx
stosb byte es:[edi], al
call dword [esp + 0x28]
test eax, eax
je 0x10036377
mov edx, dword [ebp]
cmp edx, ebx
je 0x100361de
lea edi, [esp + 0x17c]
or ecx, 0xffffffff
xor eax, eax
push 0x42
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
jmp 0x100361f7
lea edi, [esp + 0x17c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp], eax
je 0x10036377
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, dword [ebp]
mov ecx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push str._PROXY_TYPE_AUTO_DETECT
and ecx, 3
push 0x1004bf60
rep stosb byte es:[edi], al
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sym.TpiSetup.dll_TPI_OutputLog
add esp, 8
jmp 0x10036377
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebx
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
mov dword [esp + 0x4c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10036292
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x56c
ret
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x38]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push ebx
push str.ProxyEnable
push ecx
call edi
test eax, eax
jne 0x1003636c
cmp dword [esp + 0x20], ebx
je 0x1003636c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push 0x1004bfb4
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
jne 0x10036317
mov ecx, dword [esp + 0x1c]
inc ecx
push ecx
push 0x40
call esi
mov edx, dword [esp + 0x580]
cmp eax, ebx
mov dword [edx], eax
je 0x10036313
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebx
push ebx
push str.ProxyServer
push edx
call edi
test eax, eax
mov dword [esp + 0x14], ebp
je 0x10036317
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push 0x1004bfcc
push ecx
call edi
test eax, eax
jne 0x1003636c
cmp dword [esp + 0x14], ebx
je 0x10036368
mov edx, dword [esp + 0x18]
inc edx
push edx
push 0x40
call esi
mov ecx, dword [esp + 0x584]
cmp eax, ebx
mov dword [ecx], eax
je 0x10036368
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
push ebx
push ebx
push str.ProxyOverride
push eax
call edi
test eax, eax
mov dword [esp + 0x14], ebp
je 0x1003636c
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x580]
mov eax, dword [edx]
cmp eax, ebx
je 0x10036397
push eax
push str._PROXY_TYPE_PROXY_Proxy_s
push 0x1004c00c
call sym.TpiSetup.dll_TPI_OutputLog
add esp, 0xc
mov eax, dword [esp + 0x584]
mov eax, dword [eax]
cmp eax, ebx
je 0x100363b7
push eax
push str.__________________ProxyBypass_s
push str.connect.log
call sym.TpiSetup.dll_TPI_OutputLog
add esp, 0xc
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret