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

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.0047ef80
push 0xffffffffffffffff
push 0x4b317d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x2218]
mov ebx, dword [ebp + 0x2214]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push ebx
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470f77
cmp word [ebx], 0x7d
je 0x470f77
nop word [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4c8e70
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x470680
test edi, edi
je 0x470780
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470f77
cmp dword [ebp + 0x221c], 0
je 0x470780
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov edx, ebx
movzx eax, word [ebx]
test ax, ax
je 0x4706e8
mov ecx, eax
cmp cx, 0x5c
je 0x4706e0
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x4706c5
jmp 0x4706e8
test edx, edx
jne 0x470ee7
mov esi, 0x4ca6ec
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x47073a
add esi, 4
cmp esi, str.RegDeleteKeyTransactedW
jl 0x4706f0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.00470160
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test edi, edi
je 0x470775
mov edi, dword [ebp - 0x18]
mov ecx, edi
push ebx
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470efc
push ebx
mov ecx, edi
call fcn.004700e0
mov esi, eax
test esi, esi
js 0x470efc
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x470b64
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4707aa
mov ecx, dword [ebp - 0x18]
xor edi, edi
push ebx
mov dword [ebp - 0x28], edi
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470f77
jmp 0x4707ad
mov edi, dword [ebp - 0x28]
push 0x4c8e68
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4708fc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push eax
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470f77
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470f77
cmp word [ebx], 0x3d
jne 0x470ef2
cmp dword [ebp + 0x221c], 0
je 0x47086c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x40], eax
lea eax, [ebp]
push ebx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.0046fbe0
mov esi, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test esi, esi
js 0x470f09
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x470b64
cmp dword [ebp + 0x2220], 0
jne 0x4708e4
test edi, edi
je 0x4708e4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
push 0x20006
push 0
push dword [ebp - 0x14]
call fcn.0041c3b0
test eax, eax
jne 0x470f3e
mov edi, dword [ebp - 0x4c]
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4708c7
cmp eax, 2
jne 0x470f16
mov byte [ebp - 4], 0
test edi, edi
je 0x4708dd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.004700e0
mov esi, eax
test esi, esi
js 0x470f77
jmp 0x470ed8
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x47092b
mov edx, eax
cmp dx, 0x5c
je 0x470923
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x470908
jmp 0x47092b
test ecx, ecx
jne 0x470ef2
cmp dword [ebp + 0x221c], 0
je 0x470bbf
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x470992
cmp dword [esi], 0
je 0x470985
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4709de
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47098b
push 0
push dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x4709a7
cmp dword [esi + 4], 0
jne 0x470992
mov eax, 1
jmp 0x4709a7
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4709de
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4709c0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
test eax, eax
je 0x470b31
jmp 0x4709e1
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x470a34
cmp dword [esi], 0
je 0x470a27
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x470a7b
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x470a2d
push 0
push dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x470a49
cmp dword [esi + 4], 0
jne 0x470a34
mov eax, 1
jmp 0x470a49
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x470a7b
test edi, edi
je 0x470a5f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
test eax, eax
je 0x470b31
mov dword [ebp - 0x10], 0
test esi, esi
je 0x470adc
cmp dword [esi], 0
je 0x470acf
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x470f69
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x470ad5
push 0
push dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x470afb
cmp dword [esi + 4], 0
jne 0x470adc
mov eax, 1
jmp 0x470afb
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x470f6e
test edi, edi
je 0x470b15
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
test eax, eax
jne 0x470f6e
mov edi, dword [ebp - 0x18]
mov ecx, edi
push ebx
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470f77
cmp word [ebx], 0x3d
jne 0x470b64
push ebx
push 0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.0046fbe0
mov esi, eax
test esi, esi
js 0x470f77
cmp word [ebx], 0x7b
jne 0x470ed8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470b73
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x470ed8
push 0
push dword [ebp + 0x221c]
mov ecx, edi
push dword [ebp - 0x24]
push ebx
call fcn.004705c0
mov esi, eax
test esi, esi
js 0x470f77
push ebx
mov ecx, edi
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470f77
jmp 0x470ed8
cmp dword [ebp + 0x2220], 0
jne 0x470c72
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x470c2a
cmp dword [esi], 0
je 0x470c1d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x470bf6
lea edi, [eax + 1]
jmp 0x470c77
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x470c23
push 0
push dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x470c3f
cmp dword [esi + 4], 0
jne 0x470c2a
mov edi, 1
jmp 0x470c41
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x470c77
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x470c5c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
jmp 0x470c77
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x2220]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x2000]
push 0x104
push eax
call fcn.0048aad9
push eax
call fcn.00404140
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ebx
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470f77
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.004700e0
mov esi, eax
test esi, esi
js 0x470f77
cmp word [ebx], 0x7b
jne 0x470d1e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470cd6
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x470d1e
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push 0
push dword [ebp - 0x24]
push ebx
call fcn.004705c0
mov esi, eax
test esi, esi
jns 0x470d0b
cmp dword [ebp - 0x10], 0
je 0x470f77
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00470430
mov esi, eax
test esi, esi
js 0x470f77
cmp edi, 2
je 0x470ed8
test edi, edi
je 0x470d3f
cmp dword [ebp + 0x2220], 0
jne 0x470ed8
mov ecx, edi
jmp 0x470f70
cmp dword [ebp + 0x2220], 0
je 0x470dc2
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x470dc2
cmp eax, dword [ebp - 0x10]
sbb eax, eax
neg eax
je 0x470dc2
mov edi, 0x4ca6ec
push dword [edi]
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x470ed8
add edi, 4
cmp edi, str.RegDeleteKeyTransactedW
jl 0x470d82
cmp dword [ebp - 0x28], 0
je 0x470ed8
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x24]
call fcn.00470160
jmp 0x470ed8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x470df2
xor edi, edi
jmp 0x470dfb
xor eax, eax
cmp eax, dword [ebp - 0x10]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x24]
xor eax, eax
test ecx, ecx
je 0x470e10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
test eax, eax
jne 0x470f6e
cmp dword [ebp - 0x28], eax
je 0x470ed8
test edi, edi
jne 0x470ed8
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
cmp byte [0x4e6418], al
jne 0x470e8e
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x470e7d
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x14]
mov dword [0x4e6414], eax
mov byte [0x4e6418], 1
jmp 0x470e93
mov eax, dword [0x4e6414]
mov ecx, dword [ebp - 0x14]
mov byte [0x4e6418], 1
jmp 0x470e93
mov eax, dword [0x4e6414]
test eax, eax
je 0x470ea7
push 0
push 0
lea edx, [ebp + 0x2000]
push edx
push ecx
call eax
jmp 0x470eb5
lea eax, [ebp + 0x2000]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
test eax, eax
jne 0x470fc1
mov byte [ebp - 4], al
mov dword [ebp - 0x54], eax
cmp word [ebx], 0x7d
jne 0x470650
jmp 0x470f77
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov esi, 0x80020009
jmp 0x470f77
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x470f77
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x470f77
mov ecx, eax
call fcn.00470420
mov esi, eax
mov byte [ebp - 4], 0
test edi, edi
je 0x470f60
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x470f77
mov ecx, eax
call fcn.00470420
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x470f60
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x470f77
mov eax, 1
mov ecx, eax
call fcn.00470420
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x470f93
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov eax, esi
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.0047de56
lea esp, [ebp + 0x220c]
pop ebp
ret 0x10
mov ecx, eax
call fcn.00470420
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x54], 0
jmp 0x470f77