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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x496980]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x108]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
push 0
push eax
call fcn.00440bf0
add esp, 0xc
test esi, esi
je 0x408f5e
test edi, edi
jle 0x408f5e
push esi
call fcn.0042d261
pop ecx
cmp dword [ebp + 0x10], 0
mov ecx, str.https
mov eax, str.http
cmovne eax, ecx
xor ebx, ebx
mov dword [ebp - 0x11c], eax
inc ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408fae
push str._GetLastError_
push str.:8:GetWindowsProxy___FAILED:_RegOpenKeyEx___FAILED:__s
call fcn.0040d324
pop ecx
pop ecx
xor eax, eax
jmp 0x4090e2
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00440bf0
add esp, 0xc
mov dword [ebp - 0x114], 0x102
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.ProxyServer
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4090c3
cmp dword [ebp - 0x114], eax
jne 0x409016
lea eax, [ebp - 0x108]
push eax
push str.:8:GetWindowsProxy___encountered_a_problem:_dwDataSize__0_but_RegQueryValueEx___succeeded____s_
call fcn.0040d324
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x108]
push 0x467fc4
push eax
call fcn.00440d50
pop ecx
pop ecx
test eax, eax
je 0x409142
and dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push 0x467fc8
lea eax, [ebp - 0x108]
push eax
jmp 0x409071
push dword [ebp - 0x11c]
push eax
call fcn.0044a5a7
pop ecx
pop ecx
test eax, eax
lea eax, [ebp - 0x110]
push eax
push 0x467fc8
push 0
je 0x4090f1
call fcn.0044b025
add esp, 0xc
test eax, eax
jne 0x40904d
cmp dword [0x4894f0], 0
je 0x4090c3
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.ProxyServer
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
push str.:2:GetWindowsProxy___FAILED:_No__s_proxy_exists:__s
call fcn.0040d7f3
add esp, 0xc
test esi, esi
je 0x4090d2
test edi, edi
jle 0x4090d2
push esi
call fcn.0042d261
pop ecx
xor ebx, ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f5c5
leave
ret
call fcn.0044b025
add esp, 0xc
mov dword [ebp - 0x118], eax
test eax, eax
je 0x40907d
push edi
push esi
push eax
call fcn.00421001
push eax
call fcn.0042dd5b
add esp, 0x10
test eax, eax
je 0x4090d4
push str.genpt
push dword [ebp - 0x118]
call fcn.0042f0d8
pop ecx
pop ecx
push edi
test eax, eax
je 0x40913a
push str.10.26.98.97:80
jmp 0x409180
push dword [ebp - 0x118]
jmp 0x409180
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00421001
push eax
call fcn.0042dd5b
add esp, 0x10
test eax, eax
je 0x4090d4
lea eax, [ebp - 0x108]
push str.genpt
push eax
call fcn.0042f0d8
pop ecx
pop ecx
push edi
test eax, eax
jne 0x409133
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.0042f204
add esp, 0xc
jmp 0x4090d4