Function at 0x477f60
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56127c
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x5a6124]
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 esi, edx
mov dword [ebp - 0x638], esi
mov ebx, ecx
mov dword [ebp - 0x640], ebx
movups xmm0, xmmword [str.SoftwareClasses_]
mov eax, dword [0x584ce4]
lea ecx, [ebp - 0x634]
push ebx
movups xmmword [ebp - 0x664], xmm0
mov dword [ebp - 0x644], eax
movups xmm0, xmmword [0x584cd4]
movups xmmword [ebp - 0x654], xmm0
call fcn.00407b50
push eax
lea edx, [ebp - 0x664]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.0047c1a0
add esp, 4
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x634]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x478036
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x478032
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x478032
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x478036
mov ecx, edx
call edi
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478040
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0x57f940
push dword [ebp - 0x63c]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x6c
lea eax, [ebp - 0x37c]
mov ecx, 0x25
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_sUserChoice
lea edi, [ebp - 0x410]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00506b00
mov ecx, 0x27
lea edi, [ebp - 0x310]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_sOpenWithProgids
lea eax, [ebp - 0x272]
rep movsd dword es:[edi], dword [esi]
push 0x62
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00506b00
mov ecx, 0x21
lea edi, [ebp - 0x210]
mov esi, str.SoftwareMicrosoftWindowsRoamingOpenWithFileExts_sUserChoice
lea eax, [ebp - 0x18a]
rep movsd dword es:[edi], dword [esi]
push 0x7a
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00506b00
push 0x70
lea eax, [ebp - 0x80]
mov ecx, 0x24
mov esi, str.SoftwareMicrosoftWindowsRoamingOpenWithFileExts_sOpenWithProgids
lea edi, [ebp - 0x110]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00506b00
add esp, 0x30
mov ecx, ebx
call fcn.00477ab0
test eax, eax
je 0x478116
mov esi, dword [ebp - 0x638]
mov ecx, ebx
mov edx, esi
call fcn.00477dd0
test eax, eax
jne 0x478169
lea esi, [ebp - 0x410]
mov edi, 4
push 0x208
lea eax, [ebp - 0x618]
push 0
push eax
call fcn.00506b00
push ebx
lea eax, [ebp - 0x618]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x618]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esi, 0x100
sub edi, 1
jne 0x478121
mov esi, dword [ebp - 0x638]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478170
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0x57f940
push dword [ebp - 0x63c]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
mov dword [ebp - 0x61c], 7
mov dword [ebp - 0x620], 0
mov word [ebp - 0x630], ax
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4781d8
test esi, esi
je 0x4781d8
lea eax, [ebp - 0x630]
mov edx, esi
push eax
mov ecx, ebx
call fcn.004aa290
add esp, 4
xor edi, edi
lea ebx, [ebp - 0x410]
call fcn.00408130
test eax, eax
je 0x4783ef
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x478203
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x478207
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x634], eax
push dword [ebp - 0x640]
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 4
push ebx
push eax
call fcn.0042ff80
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478230
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
mov esi, dword [ebp - 0x634]
push 1
push str.ProgId
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x61c], 8
lea edx, [ebp - 0x630]
cmovae edx, dword [ebp - 0x630]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x634], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478280
sub ecx, dword [ebp - 0x634]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push str.Hash
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4782ec
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4782ea
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4782ea
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4782ec
call edx
mov esi, dword [ebp - 0x638]
inc edi
add ebx, 0x100
cmp edi, 4
jl 0x4781e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x61c]
cmp eax, 8
jb 0x478368
mov ecx, dword [ebp - 0x630]
inc eax
cmp eax, 0x7fffffff
jbe 0x478324
call fcn.00511381
add eax, eax
cmp eax, 0x1000
jb 0x47835f
test byte [ebp - 0x630], 0x1f
je 0x47833b
call fcn.00511381
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x478347
call fcn.00511381
sub ecx, eax
cmp ecx, 4
jae 0x478353
call fcn.00511381
cmp ecx, 0x23
jbe 0x47835d
call fcn.00511381
mov ecx, eax
push ecx
call fcn.0050241a
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x63c]
mov word [ebp - 0x630], ax
add ecx, 0xfffffff0
mov dword [ebp - 0x61c], 7
or eax, 0xffffffff
mov dword [ebp - 0x620], 0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4783d1
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4783cd
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4783cd
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4783d1
mov ecx, edx
call esi
xor eax, eax
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.00502bf3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407c80
int3