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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbd38
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x50b080]
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 0x417694
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 0x4175df
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x4175df
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 0x417556
cmp dword [ebp - 0x448], eax
je 0x4175c0
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00492970
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 0x4174a5
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 0x416ed0
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.00467d30
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416f5c
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x1ab
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 0x41700a
mov edx, dword [ebp - 0x47c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417000
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41784a
push ecx
push edx
call fcn.004906cd
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 0x417062
mov edx, 0x3b
nop dword [eax]
cmp word [eax], 0x20
jne 0x417049
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x417040
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 0x4170a9
mov ecx, edi
xor esi, esi
mov edx, eax
test ecx, ecx
je 0x41709f
cmp word [eax], 0x3b
je 0x417097
cmp ecx, 1
je 0x417099
add edx, 2
dec ecx
cmp word [edx], 0x3b
jne 0x417088
mov esi, edx
mov eax, dword [ebp - 0x484]
test esi, esi
je 0x4170a9
sub esi, eax
sar esi, 1
jmp 0x4170ac
or esi, 0xffffffff
lea eax, [ebp - 0x42c]
cmp esi, 0xffffffff
je 0x417159
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 0x417139
mov edx, dword [ebp - 0x444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41712f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417859
push ecx
push edx
call fcn.004906cd
add esp, 8
movups xmm0, xmmword [ebp - 0x47c]
movups xmmword [ebp - 0x444], xmm0
movq xmm0, qword [ebp - 0x46c]
movq qword [ebp - 0x434], xmm0
jmp 0x417174
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 0x4171bd
mov ecx, edi
xor esi, esi
mov edx, eax
test ecx, ecx
je 0x4171b3
cmp word [eax], 0x3d
je 0x4171b1
cmp ecx, 1
je 0x4171b3
add edx, 2
dec ecx
cmp word [edx], 0x3d
jne 0x4171a2
mov esi, edx
test esi, esi
je 0x4171bd
sub esi, eax
sar esi, 1
jmp 0x4171c0
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x41723f
inc esi
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x47c], xmm0
cmp edi, esi
jb 0x41784f
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 0x417260
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 0x41728c
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.00492970
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 0x417307
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4172e0
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x48c]
push eax
call fcn.0040db20
jmp 0x4173b6
lea ecx, [ebp - 0x47c]
call fcn.00467d30
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x417321
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x1cd
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.0041b830
push eax
call fcn.004113d0
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x468]
cmp ecx, 7
jbe 0x4173b6
mov edx, dword [ebp - 0x47c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4173ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417854
push ecx
push edx
call fcn.004906cd
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44c]
cmp ecx, 7
jbe 0x4173fa
mov edx, dword [ebp - 0x460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4173f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417859
push ecx
push edx
call fcn.004906cd
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x430]
cmp ecx, 7
jbe 0x41743e
mov edx, dword [ebp - 0x444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417434
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417859
push ecx
push edx
call fcn.004906cd
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 0x4175c0
mov edx, dword [ebp - 0x42c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4175b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417859
jmp 0x4175b6
lea ecx, [ebp - 0x4a4]
call fcn.00467d30
mov dword [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4174c2
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x1d2
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.0041b830
push eax
call fcn.004113d0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x490]
cmp ecx, 7
jbe 0x4175c0
mov edx, dword [ebp - 0x4a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4175b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41785e
jmp 0x4175b6
cmp esi, 2
je 0x4175c0
lea ecx, [ebp - 0x4a4]
call fcn.00467d30
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x417578
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x1d8
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_GetProxySettings_RegQueryValueExW_1__error:
jmp 0x4174fb
push ecx
push edx
call fcn.004906cd
add esp, 8
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x47d]
test al, al
jne 0x41782d
jmp 0x417694
lea ecx, [ebp - 0x4a4]
call fcn.00467d30
mov dword [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4175fc
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x1de
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.0041b830
push eax
call fcn.004113d0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x490]
cmp ecx, 7
jbe 0x417694
mov edx, dword [ebp - 0x4a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41768a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41785e
push ecx
push edx
call fcn.004906cd
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 0x4177a3
lea ecx, [ebp - 0x4bc]
call fcn.00467d30
mov dword [ebp - 4], 8
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4176d1
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x1e8
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.0041b670
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 0x417827
mov edx, dword [ebp - 0x4bc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417794
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41785e
push ecx
push edx
call fcn.004906cd
add esp, 8
jmp 0x417827
mov eax, dword [ebp - 0x470]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4177b6
push eax
call edi
mov esi, dword [ebp - 0x46c]
test esi, esi
je 0x4177f4
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 0x4177d0
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 0x417827
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x417803
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.00490396
mov esp, ebp
pop ebp
ret 0xc
call fcn.004958ff
call fcn.004131a0
call fcn.004958ff
call fcn.004958ff
call fcn.004958ff
int3