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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov dword [ebp - 0x41c], 0
mov ebx, ecx
mov dword [ebp - 0x418], eax
push esi
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x410], esi
mov byte [ebx], 0
mov word [eax], cx
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006e073
push edi
push 0x200
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x408], 0x200
push eax
call fcn.10081610
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x408]
add esp, 0xc
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push str.ProxyServer
push dword [ebp - 0x40c]
call edi
test eax, eax
jne 0x1006deeb
mov eax, dword [ebp - 0x408]
shr eax, 1
mov dword [ebp - 0x408], eax
add eax, eax
cmp eax, 0x200
jae 0x1006e090
xor ecx, ecx
mov esi, 1
mov word [ebp + eax - 0x204], cx
mov dword [ebp - 0x410], esi
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0x200
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push str.AutoConfigURL
push dword [ebp - 0x40c]
call edi
test eax, eax
jne 0x1006df82
mov eax, dword [ebp - 0x408]
shr eax, 1
mov dword [ebp - 0x408], eax
add eax, eax
cmp eax, 0x200
jae 0x1006e090
xor ecx, ecx
or esi, 2
mov word [ebp + eax - 0x404], cx
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x410], esi
call fcn.1006dd80
test eax, eax
je 0x1006df82
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x3f6]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1006df82
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 4
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push str.ProxyEnable
push dword [ebp - 0x40c]
call edi
lea eax, [ebp - 0x204]
push 0x3b
push eax
call fcn.1007bcf6
add esp, 8
test eax, eax
lea eax, [ebp - 0x204]
jne 0x1006e005
push 0x3a
push eax
xor esi, esi
call fcn.1007bcf6
mov edx, eax
add esp, 8
test edx, edx
je 0x1006e060
lea eax, [ebp - 0x204]
cmp eax, edx
je 0x1006e042
mov ecx, eax
mov edi, edi
mov al, byte [ecx]
lea ecx, [ebp - 0x204]
mov byte [ebx + esi], al
inc esi
lea ecx, [ecx + esi*2]
cmp ecx, edx
jne 0x1006dff0
jmp 0x1006e042
push str.http
push eax
call fcn.1007c198
mov edi, eax
add esp, 8
test edi, edi
je 0x1006e060
add edi, 0xa
xor esi, esi
push 0x3a
push edi
call fcn.1007bcf6
mov edx, eax
add esp, 8
test edx, edx
je 0x1006e060
cmp edi, edx
je 0x1006e042
mov ecx, edi
mov al, byte [ecx]
mov byte [ebx + esi], al
inc esi
lea ecx, [edi + esi*2]
cmp ecx, edx
jne 0x1006e035
xor eax, eax
mov byte [ebx + esi], 0
mov word [edx], ax
lea eax, [edx + 2]
push eax
call fcn.1007bf08
mov ecx, dword [ebp - 0x418]
add esp, 4
mov word [ecx], ax
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x410]
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x41c], eax
cmove esi, eax
xor ecx, ebp
mov eax, esi
pop esi
pop ebx
call fcn.1007a730
mov esp, ebp
pop ebp
ret
call fcn.1007b843
int3