Function at 0x40a6f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7790
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x278
push esi
mov esi, ecx
mov ecx, 0x524e73
push edi
mov dword [ebp - 0x28], esi
call fcn.004e6414
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
mov eax, accept
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 0x10
jb 0x40aaab
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40a761
mov eax, dword [esi]
push 0x10
push str.OpenWithProgids
push ecx
push eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.00409310
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push 0x20019
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a7af
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
test eax, eax
jne 0x40aa82
xor esi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], eax
push esi
push esi
push esi
mov byte [ebp - 4], 3
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x288]
mov dword [ebp - 0x24], 0x200
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40a881
nop dword [eax]
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x58]
call fcn.004038f0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x48], 0
je 0x40a843
lea eax, [ebp - 0x58]
push eax
cmp esi, dword [ebp - 0x1c]
je 0x40a831
mov ecx, esi
call fcn.00407640
add esi, 0x18
mov dword [ebp - 0x3c], esi
jmp 0x40a843
push esi
lea ecx, [ebp - 0x40]
call fcn.0040bff0
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x24], 0x200
mov byte [ebp - 4], 3
call fcn.00403830
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40a800
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
test edi, edi
je 0x40a894
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApplicationAssociationToasts
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x40a8e0
test edi, edi
je 0x40a8d0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
test ecx, ecx
jne 0x40aa24
mov edi, dword [ebp - 0x20]
cmp edi, esi
je 0x40aa08
nop word [eax + eax]
mov ecx, dword [edi + 0x10]
mov eax, accept
sub eax, ecx
cmp eax, 1
jb 0x40aaab
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40a91d
mov eax, dword [edi]
push 1
push 0x5102b0
push ecx
push eax
push edi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x88]
call fcn.00409310
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x40a946
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x88]
call fcn.004087c0
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x88]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov byte [ebp - 4], 3
call fcn.00403830
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x14]
push 4
push ecx
push 4
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x58]
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x40a9fd
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a9f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aab0
push ecx
push edx
call fcn.004b8e2a
add esp, 8
add edi, 0x18
cmp edi, esi
jne 0x40a900
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test edi, edi
je 0x40aa24
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40aa82
mov edi, eax
cmp edi, esi
je 0x40aa3f
mov ecx, edi
call fcn.00403830
add edi, 0x18
cmp edi, esi
jne 0x40aa31
mov esi, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40aa78
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aab0
push ecx
push esi
call fcn.004b8e2a
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00403830
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40aa98
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402650
call fcn.004c05a0
int3