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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x677f96
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x270], ecx
push eax
call fcn.00626220
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00626220
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
call fcn.0061e700
add esp, 0x18
mov ecx, dword [ebp - 0x24c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x622576
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x62256c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6227b8
push ecx
push edx
call fcn.00632721
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x268]
push eax
push 0xf003f
push 0
push str.SOFTWAREClassesApplications
push bind
mov dword [ebp - 0x24c], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x6225c1
mov eax, str.Error_opening_registry_key
jmp 0x6226e3
cmp dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x264]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push 0
push eax
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [ebp - 0x268]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
call edi
test esi, esi
je 0x622616
mov eax, str.Error_creating_registry_key
jmp 0x6226e3
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 2
push str.FriendlyAppName
push 0
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, dword [ebp - 0x234]
mov ebx, dword [ebp - 0x248]
test eax, eax
jne 0x6226a0
cmp esi, 7
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x218]
cmova eax, ebx
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x62268d
test dx, dx
je 0x622689
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x62268d
add ecx, 4
add eax, 4
test dx, dx
jne 0x622667
xor eax, eax
jmp 0x622692
sbb eax, eax
or eax, 1
test eax, eax
jne 0x6226a0
push dword [ebp - 0x264]
call edi
jmp 0x6226ff
mov eax, dword [ebp - 0x238]
cmp esi, 7
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x248]
cmova eax, ebx
push eax
push 1
push 0
push str.FriendlyAppName
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x264]
mov esi, eax
call edi
test esi, esi
je 0x6226f6
mov eax, str.Error_setting_registry_value
push esi
push eax
push str.shell_register_application
call fcn.00626170
add esp, 0xc
xor bl, bl
jmp 0x622701
mov eax, dword [ebp - 0x270]
mov byte [eax], 1
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x622741
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x622737
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6227bd
push ecx
push edx
call fcn.00632721
add esp, 8
mov ecx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp ecx, 7
jbe 0x62279a
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x622790
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6227bd
push ecx
push edx
call fcn.00632721
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret
call fcn.0063f01f
call fcn.0063f01f
int3