Function at 0x4a4770
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a70ab
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.0055cc70
mov eax, dword [0x639354]
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 dword [ebp - 0x2224], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
push ebx
mov dword [ebp - 4], 0
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a517e
cmp word [ebx], 0x7d
je 0x4a516b
jmp 0x4a4800
push str.Delete
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x5b97a8
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4a4833
test edi, edi
je 0x4a4935
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a516b
cmp dword [ebp + 0x10], 0
je 0x4a4935
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x4a4894
cmp ax, 0x5c
je 0x4a488c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x4a4871
jmp 0x4a4894
test edx, edx
jne 0x4a5159
mov esi, 0x5c8938
lea esp, [esp]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4a48ee
add esi, 4
cmp esi, 0x5c8968
jl 0x4a48a0
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2244]
push ebx
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
call fcn.0043a090
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test edi, edi
je 0x4a492b
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a516b
push ebx
mov ecx, edi
call fcn.004a5460
mov esi, eax
test esi, esi
js 0x4a516b
mov dword [ebp - 0x2240], 0
jmp 0x4a4d9a
mov dword [ebp - 0x2240], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a4965
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a516b
jmp 0x4a496b
mov edi, dword [ebp - 0x2234]
push 0x5b97a0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a4abf
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a516b
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a516b
cmp word [ebx], 0x3d
jne 0x4a5159
cmp dword [ebp + 0x10], 0
je 0x4a4a3c
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2250]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
call fcn.004a2030
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x4a516b
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x4a4d9a
cmp dword [ebp + 0x14], 0
jne 0x4a4aa4
test edi, edi
je 0x4a4aa4
xor edi, edi
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], edi
push eax
push 0x20006
push edi
push edi
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a4a72
mov edi, dword [ebp - 0x2234]
mov byte [ebp - 4], 0
test eax, eax
jne 0x4a5141
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4a4a99
cmp eax, 2
jne 0x4a5141
test edi, edi
je 0x4a4aa4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004a5460
mov esi, eax
test esi, esi
js 0x4a516b
jmp 0x4a5135
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x4a4af1
mov edx, ecx
jmp 0x4a4ad0
cmp dx, 0x5c
je 0x4a4ae9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x4a4ad0
jmp 0x4a4af1
test eax, eax
jne 0x4a5159
cmp dword [ebp + 0x10], 0
je 0x4a4dfc
mov esi, dword [ebp - 0x2228]
mov byte [ebp - 4], 3
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4a4bbc
cmp dword [esi], 0
je 0x4a4baf
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4a4b82
mov eax, 1
mov edi, dword [ebp - 0x2230]
mov byte [ebp - 4], 0
test eax, eax
je 0x4a4d61
mov byte [ebp - 4], 4
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4a4c45
cmp dword [esi], 0
je 0x4a4c38
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4a4c0b
mov eax, 1
jmp 0x4a4c85
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a4bb5
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4a4bd7
cmp dword [esi + 4], 0
jne 0x4a4bbc
mov eax, 1
jmp 0x4a4bd7
lea eax, [ebp - 0x221c]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a4b34
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x4a4bf0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
jmp 0x4a4b3a
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a4c3e
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4a4c60
cmp dword [esi + 4], 0
jne 0x4a4c45
mov eax, 1
jmp 0x4a4c60
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a4c85
test edi, edi
je 0x4a4c6f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
test eax, eax
je 0x4a4d61
mov byte [ebp - 4], 5
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4a4d08
cmp dword [esi], 0
je 0x4a4cfb
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4a4cc1
mov eax, 1
jmp 0x4a4d55
push 0x5c1a90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a4d01
push 0
push dword [esi]
lea ecx, [ebp - 0x2238]
push ecx
lea ecx, [ebp - 0x221c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4a4d30
cmp dword [esi + 4], 0
jne 0x4a4d08
mov eax, 1
jmp 0x4a4d30
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x221c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a4d55
test edi, edi
je 0x4a4d3f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
test eax, eax
jne 0x4a5160
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a516b
cmp word [ebx], 0x3d
jne 0x4a4d9a
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.004a2030
mov esi, eax
test esi, esi
js 0x4a516b
cmp word [ebx], 0x7b
jne 0x4a5135
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4db0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4a5135
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.004a4770
mov esi, eax
test esi, esi
js 0x4a516b
push ebx
mov ecx, edi
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a516b
jmp 0x4a5135
cmp dword [ebp + 0x14], 0
jne 0x4a4ec7
mov esi, dword [ebp - 0x2228]
mov byte [ebp - 4], 6
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4a4e77
cmp dword [esi], 0
je 0x4a4e6a
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4a4e3d
lea edi, [eax + 1]
mov byte [ebp - 4], al
jmp 0x4a4ecc
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a4e70
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4a4e92
cmp dword [esi + 4], 0
jne 0x4a4e77
mov edi, 1
jmp 0x4a4e94
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4a4ec1
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4a4eab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
jmp 0x4a4ecc
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005712cd
push eax
call fcn.00429ac0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a516b
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004a5460
mov esi, eax
test esi, esi
js 0x4a516b
cmp word [ebx], 0x7b
jne 0x4a4f88
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4f31
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4a4f88
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.004a4770
mov esi, eax
test esi, esi
jns 0x4a4f72
cmp dword [ebp - 0x221c], 0
je 0x4a516b
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004a39f0
mov esi, eax
test esi, esi
js 0x4a516b
cmp edi, 2
je 0x4a5135
test edi, edi
je 0x4a4fa5
cmp dword [ebp + 0x14], 0
jne 0x4a5135
push edi
jmp 0x4a5161
cmp dword [ebp + 0x14], 0
je 0x4a5037
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4a5037
cmp dword [ebp - 0x221c], eax
jbe 0x4a5037
mov edi, 0x5c8938
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4a5135
add edi, 4
cmp edi, 0x5c8968
jl 0x4a4ff1
cmp dword [ebp - 0x2234], 0
je 0x4a5135
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0043a090
jmp 0x4a5135
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4a5070
xor edi, edi
jmp 0x4a507c
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2230]
xor eax, eax
test ecx, ecx
je 0x4a5097
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x4a5160
cmp dword [ebp - 0x2234], eax
je 0x4a5135
test edi, edi
jne 0x4a5135
mov byte [ebp - 4], 7
cmp byte [0x641b44], al
jne 0x4a50fc
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a50ee
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x641b40], eax
mov byte [0x641b44], 1
jmp 0x4a5101
mov eax, dword [0x641b40]
mov byte [0x641b44], 1
jmp 0x4a5101
mov eax, dword [0x641b40]
test eax, eax
je 0x4a511a
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x4a512d
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0
test eax, eax
jne 0x4a5160
cmp word [ebx], 0x7d
jne 0x4a4800
jmp 0x4a516b
push eax
call fcn.004a2680
add esp, 4
mov esi, eax
test edi, edi
je 0x4a516b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a516b
mov esi, 0x80020009
jmp 0x4a516b
push eax
call fcn.004a2680
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4a517c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.0055c3a9
mov esp, ebp
pop ebp
ret 0x10