Function at 0x40bd70
Capabilities:
Get proxy
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5ef60c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea edx, [ebp - 0x214]
push edx
xor esi, esi
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x40bdf1
push eax
push str.____Internet_Setting_not_found___ld__n
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.004035c0
add esp, 8
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x21c]
push edx
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.ProxyEnable
push eax
mov dword [ebp - 0x210], 4
call esi
test eax, eax
je 0x40be45
push eax
push str.____ProxyEnable_not_found___ld__n
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.004035c0
add esp, 8
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, 1
mov dword [ebp - 0x210], 0
cmp dword [ebp - 0x21c], ebx
jne 0x40bf21
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push 0
push str.ProxyServer
push eax
mov dword [edi], ebx
call esi
mov ecx, dword [ebp - 0x210]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 0x224]
mov dword [edx], eax
test eax, eax
jne 0x40bed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GlobalAllocPtr_Error___ld__n
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.004035c0
add esp, 8
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [edi], 0
jmp 0x40bfb8
mov edx, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
push ecx
push eax
push 0
push 0
push str.ProxyServer
push edx
call esi
test eax, eax
je 0x40bfb2
push eax
push str.____ProxyServer_not_found___ld__n
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.004035c0
add esp, 8
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [edi], 0
jmp 0x40bfb8
mov edx, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push 0
push str.AutoConfigURL
push edx
call esi
mov eax, dword [ebp - 0x210]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
test eax, eax
jne 0x40bf8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GlobalAllocPtr_Error___ld__n
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.004035c0
add esp, 8
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [edi], 0
jmp 0x40bfb8
mov edx, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
push ecx
push eax
push 0
push 0
push str.AutoConfigURL
push edx
call esi
test eax, eax
jne 0x40bfb8
mov dword [edi], 2
mov dword [ebp - 0x218], ebx
mov eax, dword [ebp - 0x214]
pop esi
pop ebx
test eax, eax
je 0x40bfcb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.0055799e
mov esp, ebp
pop ebp
ret