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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aea78
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x4de080]
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 0x417514
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 0x41745f
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x41745f
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 0x4173d6
cmp dword [ebp - 0x448], eax
je 0x417440
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00485800
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 0x417325
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 0x416d50
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.00467c30
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416ddc
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, 0x4c17e8
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x19d
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Read_registry_ProxyServer:
mov ecx, eax
call fcn.00411040
cmp dword [ebp - 0x418], 7
lea edx, [ebp - 0x42c]
push dword [ebp - 0x41c]
cmova edx, dword [ebp - 0x42c]
mov ecx, eax
call fcn.00412510
push eax
call fcn.004113c0
mov byte [ebp - 4], 2
add esp, 8
mov ecx, dword [ebp - 0x468]
cmp ecx, 7
jbe 0x416e8a
mov edx, dword [ebp - 0x47c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416e80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176ca
push ecx
push edx
call fcn.0048355d
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 0x416ee2
mov edx, 0x3b
nop dword [eax]
cmp word [eax], 0x20
jne 0x416ec9
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x416ec0
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 0x416f29
mov ecx, edi
xor esi, esi
mov edx, eax
test ecx, ecx
je 0x416f1f
cmp word [eax], 0x3b
je 0x416f17
cmp ecx, 1
je 0x416f19
add edx, 2
dec ecx
cmp word [edx], 0x3b
jne 0x416f08
mov esi, edx
mov eax, dword [ebp - 0x484]
test esi, esi
je 0x416f29
sub esi, eax
sar esi, 1
jmp 0x416f2c
or esi, 0xffffffff
lea eax, [ebp - 0x42c]
cmp esi, 0xffffffff
je 0x416fd9
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 0x416fb9
mov edx, dword [ebp - 0x444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416faf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176d9
push ecx
push edx
call fcn.0048355d
add esp, 8
movups xmm0, xmmword [ebp - 0x47c]
movups xmmword [ebp - 0x444], xmm0
movq xmm0, qword [ebp - 0x46c]
movq qword [ebp - 0x434], xmm0
jmp 0x416ff4
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 0x41703d
mov ecx, edi
xor esi, esi
mov edx, eax
test ecx, ecx
je 0x417033
cmp word [eax], 0x3d
je 0x417031
cmp ecx, 1
je 0x417033
add edx, 2
dec ecx
cmp word [edx], 0x3d
jne 0x417022
mov esi, edx
test esi, esi
je 0x41703d
sub esi, eax
sar esi, 1
jmp 0x417040
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x4170bf
inc esi
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x47c], xmm0
cmp edi, esi
jb 0x4176cf
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 0x4170e0
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 0x41710c
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.00485800
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 0x417187
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417160
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x48c]
push eax
call fcn.0040db20
jmp 0x417236
lea ecx, [ebp - 0x47c]
call fcn.00467c30
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4171a1
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, 0x4c17e8
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x1bf
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_GetProxySettings_RegQueryValueExW_3__error:
mov ecx, eax
call fcn.00411040
push esi
mov ecx, eax
call fcn.0041b6a0
push eax
call fcn.004113c0
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x468]
cmp ecx, 7
jbe 0x417236
mov edx, dword [ebp - 0x47c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41722c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176d4
push ecx
push edx
call fcn.0048355d
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44c]
cmp ecx, 7
jbe 0x41727a
mov edx, dword [ebp - 0x460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417270
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176d9
push ecx
push edx
call fcn.0048355d
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x430]
cmp ecx, 7
jbe 0x4172be
mov edx, dword [ebp - 0x444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4172b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176d9
push ecx
push edx
call fcn.0048355d
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 0x417440
mov edx, dword [ebp - 0x42c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417436
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176d9
jmp 0x417436
lea ecx, [ebp - 0x4a4]
call fcn.00467c30
mov dword [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x417342
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, 0x4c17e8
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x1c4
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_GetProxySettings_RegQueryValueExW_2__error:
mov ecx, eax
call fcn.00411040
push esi
mov ecx, eax
call fcn.0041b6a0
push eax
call fcn.004113c0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x490]
cmp ecx, 7
jbe 0x417440
mov edx, dword [ebp - 0x4a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417436
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176de
jmp 0x417436
cmp esi, 2
je 0x417440
lea ecx, [ebp - 0x4a4]
call fcn.00467c30
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4173f8
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, 0x4c17e8
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x1ca
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_GetProxySettings_RegQueryValueExW_1__error:
jmp 0x41737b
push ecx
push edx
call fcn.0048355d
add esp, 8
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x47d]
test al, al
jne 0x4176ad
jmp 0x417514
lea ecx, [ebp - 0x4a4]
call fcn.00467c30
mov dword [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41747c
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, 0x4c17e8
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x1d0
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_GetProxySettings_RegOpenKeyExW_error:
mov ecx, eax
call fcn.00411040
push esi
mov ecx, eax
call fcn.0041b6a0
push eax
call fcn.004113c0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x490]
cmp ecx, 7
jbe 0x417514
mov edx, dword [ebp - 0x4a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41750a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176de
push ecx
push edx
call fcn.0048355d
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 0x417623
lea ecx, [ebp - 0x4bc]
call fcn.00467c30
mov dword [ebp - 4], 8
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x417551
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, 0x4c17e8
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x1da
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Failed_to_get_current_user_proxy_data:
mov ecx, eax
call fcn.00411040
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.0041b4e0
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.004113c0
mov ecx, dword [ebp - 0x4a8]
add esp, 4
cmp ecx, 7
jbe 0x4176a7
mov edx, dword [ebp - 0x4bc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417614
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176de
push ecx
push edx
call fcn.0048355d
add esp, 8
jmp 0x4176a7
mov eax, dword [ebp - 0x470]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x417636
push eax
call edi
mov esi, dword [ebp - 0x46c]
test esi, esi
je 0x417674
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 0x417650
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 0x4176a7
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x417683
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.00483226
mov esp, ebp
pop ebp
ret 0xc
call fcn.0048878f
call fcn.00413120
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
int3