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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x50c080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 8], 0
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x488], edi
mov dword [ebp - 0x48c], eax
mov byte [ebp - 0x47d], 0
je 0x4175c4
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0
push eax
push 0x20019
push 0
push str.S_1_5_18SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x41750f
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x41750f
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push ecx
push esi
push esi
push str.ProxyEnable
push eax
mov dword [ebp - 0x414], 4
call edi
mov esi, eax
test esi, esi
jne 0x417486
cmp dword [ebp - 0x448], eax
je 0x4174f0
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00493220
add esp, 0xc
mov dword [ebp - 0x414], 0x3fe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push esi
push esi
push str.ProxyServer
push dword [ebp - 0x464]
call edi
mov esi, eax
test esi, esi
jne 0x4173d5
xorps xmm0, xmm0
mov byte [ebp - 0x47d], 1
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x41c], eax
movups xmmword [ebp - 0x42c], xmm0
mov dword [ebp - 0x418], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416e00
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040df90
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x434], 0
movups xmmword [ebp - 0x444], xmm0
mov dword [ebp - 0x430], 7
mov word [ebp - 0x444], ax
movups xmmword [ebp - 0x460], xmm0
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 2
call fcn.00467cf0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416e8c
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x19d
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Read_registry_ProxyServer:
mov ecx, eax
call fcn.00411050
cmp dword [ebp - 0x418], 7
lea edx, [ebp - 0x42c]
push dword [ebp - 0x41c]
cmova edx, dword [ebp - 0x42c]
mov ecx, eax
call fcn.00412550
push eax
call fcn.004113d0
mov byte [ebp - 4], 2
add esp, 8
mov ecx, dword [ebp - 0x468]
cmp ecx, 7
jbe 0x416f3a
mov edx, dword [ebp - 0x47c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416f30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41777a
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov edx, dword [ebp - 0x418]
lea eax, [ebp - 0x42c]
mov esi, dword [ebp - 0x42c]
cmp edx, 7
mov edi, dword [ebp - 0x41c]
cmova eax, esi
lea ecx, [eax + edi*2]
lea eax, [ebp - 0x42c]
cmova eax, esi
cmp eax, ecx
je 0x416f92
mov edx, 0x3b
nop dword [eax]
cmp word [eax], 0x20
jne 0x416f79
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x416f70
mov edi, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x418]
mov esi, dword [ebp - 0x42c]
cmp edx, 7
lea eax, [ebp - 0x42c]
cmova eax, esi
mov dword [ebp - 0x484], eax
test edi, edi
je 0x416fd9
mov ecx, edi
xor esi, esi
mov edx, eax
test ecx, ecx
je 0x416fcf
cmp word [eax], 0x3b
je 0x416fc7
cmp ecx, 1
je 0x416fc9
add edx, 2
dec ecx
cmp word [edx], 0x3b
jne 0x416fb8
mov esi, edx
mov eax, dword [ebp - 0x484]
test esi, esi
je 0x416fd9
sub esi, eax
sar esi, 1
jmp 0x416fdc
or esi, 0xffffffff
lea eax, [ebp - 0x42c]
cmp esi, 0xffffffff
je 0x417089
cmp edi, esi
mov dword [ebp - 0x46c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x468], 0
cmovb esi, edi
lea ecx, [ebp - 0x47c]
cmp dword [ebp - 0x418], 7
push esi
cmova eax, dword [ebp - 0x42c]
push eax
movups xmmword [ebp - 0x47c], xmm0
call fcn.0040df90
mov ecx, dword [ebp - 0x430]
cmp ecx, 7
jbe 0x417069
mov edx, dword [ebp - 0x444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41705f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417789
push ecx
push edx
call fcn.00490f7d
add esp, 8
movups xmm0, xmmword [ebp - 0x47c]
movups xmmword [ebp - 0x444], xmm0
movq xmm0, qword [ebp - 0x46c]
movq qword [ebp - 0x434], xmm0
jmp 0x4170a4
cmp dword [ebp - 0x418], 7
lea ecx, [ebp - 0x444]
push edi
cmova eax, dword [ebp - 0x42c]
push eax
call fcn.0040db20
cmp dword [ebp - 0x430], 7
lea eax, [ebp - 0x444]
mov edi, dword [ebp - 0x434]
cmova eax, dword [ebp - 0x444]
test edi, edi
je 0x4170ed
mov ecx, edi
xor esi, esi
mov edx, eax
test ecx, ecx
je 0x4170e3
cmp word [eax], 0x3d
je 0x4170e1
cmp ecx, 1
je 0x4170e3
add edx, 2
dec ecx
cmp word [edx], 0x3d
jne 0x4170d2
mov esi, edx
test esi, esi
je 0x4170ed
sub esi, eax
sar esi, 1
jmp 0x4170f0
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x41716f
inc esi
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x47c], xmm0
cmp edi, esi
jb 0x41777f
sub edi, esi
lea eax, [ebp - 0x444]
or ecx, 0xffffffff
cmp edi, 0xffffffff
cmovb ecx, edi
cmp dword [ebp - 0x430], 7
push ecx
cmova eax, dword [ebp - 0x444]
lea ecx, [ebp - 0x47c]
lea eax, [eax + esi*2]
push eax
call fcn.0040df90
movups xmm0, xmmword [ebp - 0x47c]
movups xmmword [ebp - 0x460], xmm0
movq xmm0, qword [ebp - 0x46c]
movq qword [ebp - 0x450], xmm0
jmp 0x417190
cmp dword [ebp - 0x430], 7
lea eax, [ebp - 0x444]
push edi
cmova eax, dword [ebp - 0x444]
lea ecx, [ebp - 0x460]
push eax
call fcn.0040db20
mov edi, dword [ebp - 0x488]
lea eax, [ebp - 0x460]
cmp edi, eax
je 0x4171bc
cmp dword [ebp - 0x44c], 7
mov ecx, edi
push dword [ebp - 0x450]
cmova eax, dword [ebp - 0x460]
push eax
call fcn.0040db20
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00493220
add esp, 0xc
mov dword [ebp - 0x414], 0x3fe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.ProxyOverride
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x417237
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417210
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x48c]
push eax
call fcn.0040db20
jmp 0x4172e6
lea ecx, [ebp - 0x47c]
call fcn.00467cf0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x417251
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x1bf
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_GetProxySettings_RegQueryValueExW_3__error:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b750
push eax
call fcn.004113d0
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x468]
cmp ecx, 7
jbe 0x4172e6
mov edx, dword [ebp - 0x47c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4172dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417784
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44c]
cmp ecx, 7
jbe 0x41732a
mov edx, dword [ebp - 0x460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417320
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417789
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x430]
cmp ecx, 7
jbe 0x41736e
mov edx, dword [ebp - 0x444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417364
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417789
push ecx
push edx
call fcn.00490f7d
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 7
mov word [ebp - 0x444], ax
cmp ecx, 7
jbe 0x4174f0
mov edx, dword [ebp - 0x42c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4174e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417789
jmp 0x4174e6
lea ecx, [ebp - 0x4a4]
call fcn.00467cf0
mov dword [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4173f2
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x1c4
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_GetProxySettings_RegQueryValueExW_2__error:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b750
push eax
call fcn.004113d0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x490]
cmp ecx, 7
jbe 0x4174f0
mov edx, dword [ebp - 0x4a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4174e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41778e
jmp 0x4174e6
cmp esi, 2
je 0x4174f0
lea ecx, [ebp - 0x4a4]
call fcn.00467cf0
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4174a8
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x1ca
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_GetProxySettings_RegQueryValueExW_1__error:
jmp 0x41742b
push ecx
push edx
call fcn.00490f7d
add esp, 8
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x47d]
test al, al
jne 0x41775d
jmp 0x4175c4
lea ecx, [ebp - 0x4a4]
call fcn.00467cf0
mov dword [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41752c
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x1d0
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_GetProxySettings_RegOpenKeyExW_error:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b750
push eax
call fcn.004113d0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x490]
cmp ecx, 7
jbe 0x4175c4
mov edx, dword [ebp - 0x4a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4175ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41778e
push ecx
push edx
call fcn.00490f7d
add esp, 8
lea eax, [ebp - 0x474]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x474], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
cmp eax, 1
je 0x4176d3
lea ecx, [ebp - 0x4bc]
call fcn.00467cf0
mov dword [ebp - 4], 8
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x417601
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x1da
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Failed_to_get_current_user_proxy_data:
mov ecx, eax
call fcn.00411050
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041b590
mov edx, eax
push edx
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx + 0x14]
and eax, 0xfffff3ff
or eax, 0x200
mov dword [ecx + edx + 0x14], eax
call fcn.004113d0
mov ecx, dword [ebp - 0x4a8]
add esp, 4
cmp ecx, 7
jbe 0x417757
mov edx, dword [ebp - 0x4bc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4176c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41778e
push ecx
push edx
call fcn.00490f7d
add esp, 8
jmp 0x417757
mov eax, dword [ebp - 0x470]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4176e6
push eax
call edi
mov esi, dword [ebp - 0x46c]
test esi, esi
je 0x417724
mov edx, esi
mov byte [ebp - 0x47d], 1
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x417700
sub edx, ecx
mov ecx, dword [ebp - 0x488]
sar edx, 1
push edx
push esi
call fcn.0040db20
push dword [ebp - 0x46c]
call edi
mov esi, dword [ebp - 0x468]
test esi, esi
je 0x417757
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x417733
sub edx, ecx
mov ecx, dword [ebp - 0x48c]
sar edx, 1
push edx
push esi
call fcn.0040db20
push dword [ebp - 0x468]
call edi
mov al, byte [ebp - 0x47d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490c46
mov esp, ebp
pop ebp
ret 0xc
call fcn.004961af
call fcn.004131a0
call fcn.004961af
call fcn.004961af
call fcn.004961af
int3