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

Disassembly:
push 0xffffffffffffffff
push 0x4bcabc
mov eax, dword fs:[0]
push eax
mov eax, 0x34e8
call fcn.0049c9e0
mov eax, dword [0x4f36a0]
xor eax, esp
mov dword [esp + 0x34e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0x34fc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x350c]
xor ebp, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
push 0x1048
lea edx, [esp + 0x24aa]
mov dword [esp + 0x3508], ebp
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x28], 0x825
mov word [esp + 0x24b0], cx
call fcn.0049ca10
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x40f8f0
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
push ebp
push str.ProxyEnable
mov esi, 4
push ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x40f749
cmp dword [esp + 0x30], esi
je 0x40f75d
cmp ebx, ebp
je 0x40f8f0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f8f0
cmp dword [esp + 0x2c], 1
jne 0x40f749
push str.ProxyServer
lea ecx, [esp + 0x28]
push ecx
lea edi, [esp + 0x24]
lea esi, [esp + 0x24ac]
call fcn.00407350
test eax, eax
jne 0x40f749
mov ebx, esi
lea esi, [esp + 0x18]
call fcn.004035f0
mov bl, 1
mov byte [esp + 0x3504], bl
mov esi, dword [esp + 0x18]
cmp dword [esi - 8], ebp
jle 0x40f897
push 0x3d
push esi
call fcn.00498d91
add esp, 8
cmp eax, ebp
je 0x40f897
sub eax, esi
sar eax, 1
cmp eax, ebp
jle 0x40f897
mov ecx, 0x4dc228
lea esi, [esp + 0x18]
call fcn.0040f0e0
cmp eax, ebp
jl 0x40f8de
lea edx, [eax + 5]
lea esi, [esp + 0x1c]
lea eax, [esp + 0x18]
call fcn.0040f000
mov edi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x3504], 2
call fcn.0040a460
mov byte [esp + 0x3504], bl
call fcn.004035c0
mov ecx, 0x3b
lea esi, [esp + 0x18]
call fcn.0040efe0
cmp eax, ebp
jl 0x40f84b
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
push ecx
mov ecx, eax
xor edx, edx
call fcn.0040f020
mov edi, eax
mov eax, esi
mov byte [esp + 0x3504], 3
call fcn.0040a460
lea esi, [esp + 0x1c]
mov byte [esp + 0x3504], bl
call fcn.004035c0
lea esi, [esp + 0x34]
call fcn.0040e790
mov eax, esi
call fcn.0040ef80
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.0040eaa0
test eax, eax
je 0x40f8de
cmp dword [esp + 0x2484], 0xffffffff
mov esi, dword [esp + 0x20]
lea eax, [esi + 4]
jne 0x40f8ca
lea edi, [esp + 0x34]
call fcn.004036c0
lea edx, [esp + 0x76]
push edx
call fcn.00498969
cwde
add esp, 4
mov dword [esi + 8], eax
jmp 0x40f8de
lea esi, [esp + 0x34]
call fcn.0040e790
mov eax, esi
call fcn.0040ef80
lea ecx, [esp + 0x24a4]
mov edx, esi
call fcn.0040eaa0
test eax, eax
je 0x40f8de
cmp dword [esp + 0x2484], 0xffffffff
mov esi, dword [esp + 0x20]
lea eax, [esi + 4]
je 0x40f87b
lea edi, [esp + 0x76]
call fcn.004036c0
movzx ecx, word [esp + 0x2480]
mov dword [esi + 8], ecx
lea esi, [esp + 0x18]
call fcn.004035c0
lea esi, [esp + 0x24]
call fcn.004072d0
mov ecx, dword [esp + 0x34fc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34e0]
xor ecx, esp
call fcn.00497c58
add esp, 0x34f4
ret 4