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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5420bb
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.004ba8b0
mov eax, dword [0x589ed0]
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.0046f540
mov esi, eax
test esi, esi
js 0x4709c6
cmp word [ebx], 0x7d
je 0x4709b3
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 0x568e90
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4700d3
test edi, edi
je 0x4701d5
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0046f540
mov esi, eax
test esi, esi
js 0x4709b3
cmp dword [ebp + 0x10], 0
je 0x4701d5
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x470134
cmp ax, 0x5c
je 0x47012c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x470111
jmp 0x470134
test edx, edx
jne 0x47099c
mov esi, 0x5518c4
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x47018e
add esi, 4
cmp esi, 0x5518f4
jl 0x470140
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2244]
push ebx
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
call fcn.0046fae0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test edi, edi
je 0x4701cb
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0046f540
mov esi, eax
test esi, esi
js 0x4709b3
push ebx
mov ecx, edi
call fcn.00470ad0
mov esi, eax
test esi, esi
js 0x4709b3
mov dword [ebp - 0x2240], 0
jmp 0x4705f5
mov dword [ebp - 0x2240], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x470205
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.0046f540
mov esi, eax
test esi, esi
js 0x4709b3
jmp 0x47020b
mov edi, dword [ebp - 0x2234]
push 0x568e88
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x47035b
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.0046f540
mov esi, eax
test esi, esi
js 0x4709b3
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0046f540
mov esi, eax
test esi, esi
js 0x4709b3
cmp word [ebx], 0x3d
jne 0x47099c
cmp dword [ebp + 0x10], 0
je 0x4702dc
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.0046e510
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x4709b3
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x4705f5
cmp dword [ebp + 0x14], 0
jne 0x470340
test edi, edi
je 0x470340
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], 0
push eax
push 0x20006
push 0
push 0
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4709a8
mov edi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x470335
cmp eax, 2
jne 0x470984
test edi, edi
je 0x470340
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00470ad0
mov esi, eax
test esi, esi
js 0x4709b3
jmp 0x470978
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x470388
mov edx, ecx
cmp dx, 0x5c
je 0x470380
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x470367
jmp 0x470388
test eax, eax
jne 0x47099c
cmp dword [ebp + 0x10], 0
je 0x470650
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4703f8
cmp dword [esi], 0
je 0x4703eb
push 0x5517ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x470448
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4703f1
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x470413
cmp dword [esi + 4], 0
jne 0x4703f8
mov eax, 1
jmp 0x470413
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 0x470448
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x470428
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x4705bc
jmp 0x47044e
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4704ae
cmp dword [esi], 0
je 0x4704a1
push 0x5517ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4704f6
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4704a7
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4704c9
cmp dword [esi + 4], 0
jne 0x4704ae
mov eax, 1
jmp 0x4704c9
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 0x4704f6
test edi, edi
je 0x4704d8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x4705bc
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x470563
cmp dword [esi], 0
je 0x470556
push 0x5517ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4709a3
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47055c
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 0x47058b
cmp dword [esi + 4], 0
jne 0x470563
mov eax, 1
jmp 0x47058b
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 0x4709a8
test edi, edi
je 0x47059e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x4709a8
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0046f540
mov esi, eax
test esi, esi
js 0x4709b3
cmp word [ebx], 0x3d
jne 0x4705f5
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.0046e510
mov esi, eax
test esi, esi
js 0x4709b3
cmp word [ebx], 0x7b
jne 0x470978
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470604
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x470978
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.00470010
mov esi, eax
test esi, esi
js 0x4709b3
push ebx
mov ecx, edi
call fcn.0046f540
mov esi, eax
test esi, esi
js 0x4709b3
jmp 0x470978
cmp dword [ebp + 0x14], 0
jne 0x470710
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4706c4
cmp dword [esi], 0
je 0x4706b7
push 0x5517ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x47068a
lea edi, [eax + 1]
jmp 0x470715
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4706bd
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4706df
cmp dword [esi + 4], 0
jne 0x4706c4
mov edi, 1
jmp 0x4706e1
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 0x470715
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4706f8
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
jmp 0x470715
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.004e4e6f
push eax
call fcn.00435780
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.0046f540
mov esi, eax
test esi, esi
js 0x4709b3
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00470ad0
mov esi, eax
test esi, esi
js 0x4709b3
cmp word [ebx], 0x7b
jne 0x4707d7
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470780
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4707d7
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.00470010
mov esi, eax
test esi, esi
jns 0x4707c1
cmp dword [ebp - 0x221c], 0
je 0x4709b3
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0046f540
mov esi, eax
test esi, esi
js 0x4709b3
cmp edi, 2
je 0x470978
test edi, edi
je 0x4707f4
cmp dword [ebp + 0x14], 0
jne 0x470978
push edi
jmp 0x4709a9
cmp dword [ebp + 0x14], 0
je 0x470886
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 0x470886
cmp dword [ebp - 0x221c], eax
jbe 0x470886
mov edi, 0x5518c4
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x470978
add edi, 4
cmp edi, 0x5518f4
jl 0x470840
cmp dword [ebp - 0x2234], 0
je 0x470978
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0046fae0
jmp 0x470978
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 0x4708bf
xor edi, edi
jmp 0x4708cb
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 0x4708e6
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 0x4709a8
cmp dword [ebp - 0x2234], eax
je 0x470978
test edi, edi
jne 0x470978
cmp byte [0x58eafc], al
jne 0x470943
push 0x5517ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x470935
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x58eaf8], eax
mov byte [0x58eafc], 1
jmp 0x470948
mov eax, dword [0x58eaf8]
mov byte [0x58eafc], 1
jmp 0x470948
mov eax, dword [0x58eaf8]
test eax, eax
je 0x470961
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x470974
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4709a8
cmp word [ebx], 0x7d
jne 0x4700a0
jmp 0x4709b3
push eax
call fcn.0046eb80
add esp, 4
mov esi, eax
test edi, edi
je 0x4709b3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4709b3
mov esi, 0x80020009
jmp 0x4709b3
mov eax, 1
push eax
call fcn.0046eb80
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4709c4
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.004ba2f5
mov esp, ebp
pop ebp
ret 0x10