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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ffec
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.004d3090
mov eax, dword [0x58e5a4]
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 - 0x2230], 0
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
mov dword [ebp - 4], 0
push ebx
call fcn.00477980
mov esi, eax
test esi, esi
js 0x4792ea
cmp word [ebx], 0x7d
je 0x4792ea
nop dword [eax]
nop word [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x5678b8
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x478843
test edi, edi
je 0x478971
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00477980
mov esi, eax
test esi, esi
js 0x4792ea
cmp dword [ebp + 0x10], 0
je 0x478971
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
mov byte [ebp - 4], 1
mov edx, ebx
movzx eax, word [ebx]
test ax, ax
je 0x4788b4
mov ecx, eax
cmp cx, 0x5c
je 0x4788ac
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x478891
jmp 0x4788b4
test edx, edx
jne 0x47925a
mov esi, 0x542a28
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x478922
add esi, 4
cmp esi, 0x542a58
jl 0x4788c0
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2240]
push ebx
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
call fcn.00477fe0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
test edi, edi
je 0x478963
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00477980
mov esi, eax
test esi, esi
js 0x47926f
push ebx
mov ecx, edi
call fcn.00479980
mov esi, eax
test esi, esi
js 0x47926f
mov byte [ebp - 4], 0
mov dword [ebp - 0x223c], 0
jmp 0x478e4c
mov byte [ebp - 4], 0
mov dword [ebp - 0x223c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4789a1
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.00477980
mov esi, eax
test esi, esi
js 0x4792ea
jmp 0x4789a7
mov edi, dword [ebp - 0x2234]
push 0x5678b0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x478b6d
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.00477980
mov esi, eax
test esi, esi
js 0x4792ea
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00477980
mov esi, eax
test esi, esi
js 0x4792ea
cmp word [ebx], 0x3d
jne 0x479268
cmp dword [ebp + 0x10], 0
je 0x478a9a
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x224c]
mov dword [ebp - 0x2248], 0
push eax
mov dword [ebp - 0x2244], 0
call fcn.004768b0
mov esi, eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
test esi, esi
js 0x47927f
mov byte [ebp - 4], 0
mov dword [ebp - 0x2248], 0
jmp 0x478e4c
cmp dword [ebp + 0x14], 0
jne 0x478b52
test edi, edi
je 0x478b52
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2234]
push eax
push 0x20006
push 0
push 0
push dword [ebp - 0x2220]
mov dword [ebp - 0x2234], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4792bf
mov edi, dword [ebp - 0x2234]
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x2218]
push eax
push edi
mov dword [ebp - 0x2258], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x478b2f
cmp eax, 2
jne 0x47928f
mov byte [ebp - 4], 0
test edi, edi
je 0x478b48
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00479980
mov esi, eax
test esi, esi
js 0x4792ea
jmp 0x47924b
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x478ba3
mov edx, eax
nop dword [eax]
cmp dx, 0x5c
je 0x478b9b
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x478b80
jmp 0x478ba3
test ecx, ecx
jne 0x479268
cmp dword [ebp + 0x10], 0
je 0x478eac
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x478c13
cmp dword [esi], 0
je 0x478c06
push 0x562958
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x478c77
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x478c0c
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x478c2e
cmp dword [esi + 4], 0
jne 0x478c13
mov eax, 1
jmp 0x478c2e
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 0x478c77
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x478c4d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], 0
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x478e13
jmp 0x478c7d
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x478cdd
cmp dword [esi], 0
je 0x478cd0
push 0x562958
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x478d39
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x478cd6
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x478cf8
cmp dword [esi + 4], 0
jne 0x478cdd
mov eax, 1
jmp 0x478cf8
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 0x478d39
test edi, edi
je 0x478d11
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], 0
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x478e13
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x478da6
cmp dword [esi], 0
je 0x478d99
push 0x562958
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4792da
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x478d9f
push 0
push dword [esi]
lea ecx, [ebp - 0x2268]
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 0x478dce
cmp dword [esi + 4], 0
jne 0x478da6
mov eax, 1
jmp 0x478dce
lea eax, [ebp - 0x2268]
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 0x4792df
test edi, edi
je 0x478deb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], 0
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x4792df
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00477980
mov esi, eax
test esi, esi
js 0x4792ea
cmp word [ebx], 0x3d
jne 0x478e4c
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.004768b0
mov esi, eax
test esi, esi
js 0x4792ea
cmp word [ebx], 0x7b
jne 0x47924b
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478e60
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x47924b
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.00478780
mov esi, eax
test esi, esi
js 0x4792ea
push ebx
mov ecx, edi
call fcn.00477980
mov esi, eax
test esi, esi
js 0x4792ea
jmp 0x47924b
cmp dword [ebp + 0x14], 0
jne 0x478f80
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x478f20
cmp dword [esi], 0
je 0x478f13
push 0x562958
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x478ee6
lea edi, [eax + 1]
jmp 0x478f85
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x478f19
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x478f3b
cmp dword [esi + 4], 0
jne 0x478f20
mov edi, 1
jmp 0x478f3d
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 0x478f85
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x478f5e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov dword [ebp - 0x2230], 0
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
jmp 0x478f85
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.004fc358
push eax
call fcn.0040f8f0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.00477980
mov esi, eax
test esi, esi
js 0x4792ea
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00479980
mov esi, eax
test esi, esi
js 0x4792ea
cmp word [ebx], 0x7b
jne 0x479047
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478ff0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x479047
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.00478780
mov esi, eax
test esi, esi
jns 0x479031
cmp dword [ebp - 0x221c], 0
je 0x4792ea
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00477980
mov esi, eax
test esi, esi
js 0x4792ea
cmp edi, 2
je 0x47924b
test edi, edi
je 0x479064
cmp dword [ebp + 0x14], 0
jne 0x47924b
push edi
jmp 0x4792e0
cmp dword [ebp + 0x14], 0
je 0x4790f6
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 0x4790f6
cmp dword [ebp - 0x221c], eax
jbe 0x4790f6
mov edi, 0x542a28
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x47924b
add edi, 4
cmp edi, 0x542a58
jl 0x4790b0
cmp dword [ebp - 0x2234], 0
je 0x47924b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00477fe0
jmp 0x47924b
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 0x47912f
xor edi, edi
jmp 0x47913b
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 0x479156
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 0x4792df
cmp dword [ebp - 0x2234], eax
je 0x47924b
test edi, edi
jne 0x47924b
mov dword [ebp - 0x2264], edi
mov dword [ebp - 0x2260], edi
mov dword [ebp - 0x225c], edi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2220]
mov dword [ebp - 0x2264], ecx
mov dword [ebp - 0x2260], edi
mov dword [ebp - 0x225c], edi
cmp byte [0x5968ac], al
jne 0x4791f5
push 0x562958
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4791e1
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2220]
mov dword [0x5968a8], eax
mov byte [0x5968ac], 1
jmp 0x4791fa
mov eax, dword [0x5968a8]
mov ecx, dword [ebp - 0x2220]
mov byte [0x5968ac], 1
jmp 0x4791fa
mov eax, dword [0x5968a8]
test eax, eax
je 0x47920e
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push ecx
call eax
jmp 0x47921c
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x2264], 0
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x479336
mov byte [ebp - 4], al
mov dword [ebp - 0x2260], eax
cmp word [ebx], 0x7d
jne 0x478810
jmp 0x4792ea
mov byte [ebp - 4], 0
mov dword [ebp - 0x223c], 0
mov esi, 0x80020009
jmp 0x4792ea
mov byte [ebp - 4], 0
mov dword [ebp - 0x223c], 0
jmp 0x4792ea
mov byte [ebp - 4], 0
mov dword [ebp - 0x2248], 0
jmp 0x4792ea
push eax
call fcn.00477040
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
test edi, edi
je 0x4792b3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
jmp 0x4792ea
push eax
call fcn.00477040
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x2254], 0
jmp 0x4792ea
mov eax, 1
push eax
call fcn.00477040
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x47930c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], 0
mov eax, esi
mov dword [ebp - 0x222c], 0
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.004d2a60
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.00477040
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x2260], 0
jmp 0x4792ea