Function at 0x4058b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e8b1
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x634f58]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x26c], edi
push 0x4d
xor eax, eax
mov dword [ebp - 0x23c], 0
push str.SOFTWAREMicrosoftEdgeUpdateClientsF3017226_FE2A_4295_8BDF_00C3A9A7E4C5_
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00402ed0
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005552b0
add esp, 0xc
mov dword [ebp - 0x270], 0x104
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x268]
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x274], 1
cmovae eax, dword [ebp - 0x24c]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x268], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4059e4
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x610bd8
mov ecx, edi
call fcn.00402ed0
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x405d58
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405d4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d75
jmp 0x405d4e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x274]
push eax
push 0
push str.location
push dword [ebp - 0x268]
call esi
test eax, eax
je 0x405a4d
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [edi + 0x10], 0
xor ecx, ecx
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a36
sub ecx, edx
sar ecx, 1
push ecx
push 0
jmp 0x40599a
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a73
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00402ed0
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0x610ea8
push dword [ebp - 0x268]
call esi
test eax, eax
je 0x405b6b
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [edi + 0x10], 0
xor ecx, ecx
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405af0
sub ecx, edx
sar ecx, 1
push ecx
push 0
mov ecx, edi
call fcn.00402ed0
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x405b49
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d75
push edx
push ecx
call fcn.0054cfd9
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
jmp 0x4059a1
xor eax, eax
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b91
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00402ed0
mov byte [ebp - 4], 2
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x610a5c
lea ecx, [ebp - 0x234]
call fcn.00402a10
cmp dword [ebp - 0x250], 8
lea edx, [ebp - 0x264]
mov esi, dword [ebp - 0x224]
cmovae edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x254]
sub eax, esi
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x278], esi
cmp ecx, eax
ja 0x405c53
cmp dword [ebp - 0x220], 8
lea eax, [esi + ecx]
mov dword [ebp - 0x224], eax
lea esi, [ebp - 0x234]
cmovae esi, dword [ebp - 0x234]
lea eax, [ecx + ecx]
push eax
mov eax, dword [ebp - 0x278]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.005543e0
mov eax, dword [ebp - 0x26c]
add esp, 0xc
add eax, dword [ebp - 0x278]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x405c6e
push ecx
push edx
mov byte [ebp - 0x26c], 0
push dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00402b90
movups xmm0, xmmword [ebp - 0x234]
mov edx, dword [ebp - 0x250]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov eax, 7
mov dword [edi + 0x14], 0
mov word [ebp - 0x234], cx
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x224]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], eax
cmp edx, 8
jb 0x405cf7
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405ce7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d75
push edx
push ecx
call fcn.0054cfd9
mov eax, dword [ebp - 0x220]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], cx
cmp eax, 8
jb 0x405b49
mov ecx, dword [ebp - 0x234]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405b3f
jmp 0x405d75
push edx
push ecx
call fcn.0054cfd9
add esp, 8
mov eax, edi
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.0054cfc8
mov esp, ebp
pop ebp
ret
call fcn.00558f09
int3