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

Disassembly:
push 0xffffffffffffffff
push 0x57b208
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations_
lea ecx, [esp + 0x24]
call fcn.00402390
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x48], 0
call fcn.00401ba0
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
push SysReAllocStringLen
call esi
test eax, eax
mov eax, dword [esp + 0x2c]
sete bl
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4b7523
mov ecx, dword [esp + 0x14]
push str.UserChoice
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.UserChoice
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [esp + 0x18]
test edx, edx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4b74e2
mov ebx, dword [esp + 0x48]
mov eax, ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b74b6
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.Progid
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4b750a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push str.SoftwareMicrosoftWindowsShell
lea ecx, [esp + 0x30]
call fcn.00402390
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
call esi
test eax, eax
jne 0x4b76aa
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.Associations
push eax
call esi
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Associations
push eax
call edi
mov ecx, dword [esp + 0x18]
push str.UrlAssociations
push ecx
call esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.UrlAssociations
push ecx
call edi
mov edx, dword [esp + 0x28]
push ebp
push edx
call esi
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push ebp
push edx
call edi
mov eax, dword [esp + 0x24]
push str.UserChoice
push eax
call esi
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.UserChoice
push eax
call edi
mov edx, dword [esp + 0x30]
test edx, edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4b764d
mov ebx, dword [esp + 0x48]
mov eax, ebx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b7621
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.Progid
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x30]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4b74fe
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b76c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4b76ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret