Function at 0x4058a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5762a1
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x629f58]
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.00402df0
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00551350
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 0x4059d4
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x605db0
mov ecx, edi
call fcn.00402df0
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x405d48
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405d3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d65
jmp 0x405d3e
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 0x405a3d
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 0x405a26
sub ecx, edx
sar ecx, 1
push ecx
push 0
jmp 0x40598a
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 0x405a63
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00402df0
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 0x606080
push dword [ebp - 0x268]
call esi
test eax, eax
je 0x405b5b
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 0x405ae0
sub ecx, edx
sar ecx, 1
push ecx
push 0
mov ecx, edi
call fcn.00402df0
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x405b39
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d65
push edx
push ecx
call fcn.0054b294
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
jmp 0x405991
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 0x405b81
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00402df0
mov byte [ebp - 4], 2
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x605c34
lea ecx, [ebp - 0x234]
call fcn.00402930
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 0x405c43
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.00550500
mov eax, dword [ebp - 0x26c]
add esp, 0xc
add eax, dword [ebp - 0x278]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x405c5e
push ecx
push edx
mov byte [ebp - 0x26c], 0
push dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00402ab0
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 0x405ce7
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405cd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d65
push edx
push ecx
call fcn.0054b294
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 0x405b39
mov ecx, dword [ebp - 0x234]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405b2f
jmp 0x405d65
push edx
push ecx
call fcn.0054b294
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.0054b283
mov esp, ebp
pop ebp
ret
call fcn.00555009
int3