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

Disassembly:
push 0xffffffffffffffff
push 0x53b4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x58b998]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b998]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 0xf003f
xor ebp, ebp
push ebp
push str.SoftwareIDM_Computer_SolutionsUpdate
push SysReAllocStringLen
mov ebx, ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebp
jne 0x405d9e
mov dword [esp + 0x1c], 1
call fcn.00416df7
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x405b54
push 0x80004005
call fcn.00402a00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x20], 0x2000
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x1000
or eax, ecx
jge 0x405b99
push 0x1000
lea ecx, [esp + 0x18]
call fcn.00402980
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x20]
push ecx
push esi
lea edx, [esp + 0x24]
push edx
push ebp
push str.ProxyServer
push eax
call edi
test eax, eax
jne 0x405c03
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0050ca3f
add esp, 8
cmp eax, ebp
jl 0x405d94
cmp eax, dword [esi - 8]
jg 0x405d94
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405be7
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebx + 0x600]
call fcn.004018d0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x1000
or eax, ecx
jge 0x405c29
push 0x1000
lea ecx, [esp + 0x18]
call fcn.00402980
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x24]
push eax
push ebp
push str.ProxyPort
push ecx
call edi
test eax, eax
jne 0x405c8d
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0050ca3f
add esp, 8
cmp eax, ebp
jl 0x405d94
cmp eax, dword [esi - 8]
jg 0x405d94
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405c71
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebx + 0x61c]
call fcn.004018d0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x1000
or eax, ecx
jge 0x405cb3
push 0x1000
lea ecx, [esp + 0x18]
call fcn.00402980
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push ebp
push str.ProxyType
push edx
call edi
test eax, eax
jne 0x405d64
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0050ca3f
add esp, 8
cmp eax, ebp
jl 0x405d94
cmp eax, dword [esi - 8]
jg 0x405d94
xor ecx, ecx
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], cx
mov eax, esi
mov word [esp + 0x28], dx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405d12
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.004018d0
mov eax, dword [esp + 0x28]
mov edi, 8
cmp dword [esp + 0x3c], edi
jae 0x405d3f
lea eax, [esp + 0x28]
push 0xa
push ebp
push eax
call fcn.0050c9e8
add esp, 0xc
mov dword [ebx + 0x638], eax
cmp dword [esp + 0x3c], edi
jb 0x405d64
mov eax, dword [esp + 0x28]
push eax
call fcn.0040dd3a
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0x88], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405e1d
push 0x80070057
call fcn.00402a00
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push ebp
mov ebx, 7
xor edx, edx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push 0x568a30
mov word [ecx + 4], dx
call fcn.004018d0
push esi
lea ecx, [esp + 0x60]
call fcn.004085f0
push 2
lea ecx, [esp + 0x44]
mov dword [esp + 0x8c], 1
call fcn.00408e30
mov edi, 8
cmp dword [esp + 0x78], edi
jb 0x405dfb
mov eax, dword [esp + 0x64]
push eax
call fcn.0040dd3a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], cx
cmp dword [esp + 0x5c], edi
jb 0x405e1d
mov edx, dword [esp + 0x48]
push edx
call fcn.0040dd3a
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0050bda6
add esp, 0x78
ret