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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69780b
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.00663af0
mov eax, dword [0x74e694]
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.006077f0
mov esi, eax
test esi, esi
js 0x608d26
cmp word [ebx], 0x7d
je 0x608d13
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 0x6a82c0
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x608433
test edi, edi
je 0x608535
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.006077f0
mov esi, eax
test esi, esi
js 0x608d13
cmp dword [ebp + 0x10], 0
je 0x608535
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x608494
cmp ax, 0x5c
je 0x60848c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x608471
jmp 0x608494
test edx, edx
jne 0x608cfc
mov esi, 0x6a82fc
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x6084ee
add esi, 4
cmp esi, 0x6a832c
jl 0x6084a0
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2244]
push ebx
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
call fcn.00607e40
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test edi, edi
je 0x60852b
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.006077f0
mov esi, eax
test esi, esi
js 0x608d13
push ebx
mov ecx, edi
call fcn.00608ea0
mov esi, eax
test esi, esi
js 0x608d13
mov dword [ebp - 0x2240], 0
jmp 0x608955
mov dword [ebp - 0x2240], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x608565
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.006077f0
mov esi, eax
test esi, esi
js 0x608d13
jmp 0x60856b
mov edi, dword [ebp - 0x2234]
push 0x6a82b8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x6086bb
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.006077f0
mov esi, eax
test esi, esi
js 0x608d13
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.006077f0
mov esi, eax
test esi, esi
js 0x608d13
cmp word [ebx], 0x3d
jne 0x608cfc
cmp dword [ebp + 0x10], 0
je 0x60863c
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.00606c30
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x608d13
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x608955
cmp dword [ebp + 0x14], 0
jne 0x6086a0
test edi, edi
je 0x6086a0
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 0x608d08
mov edi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x608695
cmp eax, 2
jne 0x608ce4
test edi, edi
je 0x6086a0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00608ea0
mov esi, eax
test esi, esi
js 0x608d13
jmp 0x608cd8
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x6086e8
mov edx, ecx
cmp dx, 0x5c
je 0x6086e0
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x6086c7
jmp 0x6086e8
test eax, eax
jne 0x608cfc
cmp dword [ebp + 0x10], 0
je 0x6089b0
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x608758
cmp dword [esi], 0
je 0x60874b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x6087a8
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x608751
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x608773
cmp dword [esi + 4], 0
jne 0x608758
mov eax, 1
jmp 0x608773
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 0x6087a8
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x608788
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 0x60891c
jmp 0x6087ae
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x60880e
cmp dword [esi], 0
je 0x608801
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x608856
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x608807
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x608829
cmp dword [esi + 4], 0
jne 0x60880e
mov eax, 1
jmp 0x608829
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 0x608856
test edi, edi
je 0x608838
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 0x60891c
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x6088c3
cmp dword [esi], 0
je 0x6088b6
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x608d03
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x6088bc
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 0x6088eb
cmp dword [esi + 4], 0
jne 0x6088c3
mov eax, 1
jmp 0x6088eb
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 0x608d08
test edi, edi
je 0x6088fe
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 0x608d08
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.006077f0
mov esi, eax
test esi, esi
js 0x608d13
cmp word [ebx], 0x3d
jne 0x608955
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.00606c30
mov esi, eax
test esi, esi
js 0x608d13
cmp word [ebx], 0x7b
jne 0x608cd8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x608964
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x608cd8
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.00608370
mov esi, eax
test esi, esi
js 0x608d13
push ebx
mov ecx, edi
call fcn.006077f0
mov esi, eax
test esi, esi
js 0x608d13
jmp 0x608cd8
cmp dword [ebp + 0x14], 0
jne 0x608a70
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x608a24
cmp dword [esi], 0
je 0x608a17
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x6089ea
lea edi, [eax + 1]
jmp 0x608a75
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x608a1d
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x608a3f
cmp dword [esi + 4], 0
jne 0x608a24
mov edi, 1
jmp 0x608a41
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 0x608a75
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x608a58
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 0x608a75
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.0066fc57
push eax
call fcn.005fc7c0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.006077f0
mov esi, eax
test esi, esi
js 0x608d13
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00608ea0
mov esi, eax
test esi, esi
js 0x608d13
cmp word [ebx], 0x7b
jne 0x608b37
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x608ae0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x608b37
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.00608370
mov esi, eax
test esi, esi
jns 0x608b21
cmp dword [ebp - 0x221c], 0
je 0x608d13
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.006077f0
mov esi, eax
test esi, esi
js 0x608d13
cmp edi, 2
je 0x608cd8
test edi, edi
je 0x608b54
cmp dword [ebp + 0x14], 0
jne 0x608cd8
push edi
jmp 0x608d09
cmp dword [ebp + 0x14], 0
je 0x608be6
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 0x608be6
cmp dword [ebp - 0x221c], eax
jbe 0x608be6
mov edi, 0x6a82fc
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x608cd8
add edi, 4
cmp edi, 0x6a832c
jl 0x608ba0
cmp dword [ebp - 0x2234], 0
je 0x608cd8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00607e40
jmp 0x608cd8
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 0x608c1f
xor edi, edi
jmp 0x608c2b
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 0x608c46
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 0x608d08
cmp dword [ebp - 0x2234], eax
je 0x608cd8
test edi, edi
jne 0x608cd8
cmp byte [0x75490c], al
jne 0x608ca3
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x608c95
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x754908], eax
mov byte [0x75490c], 1
jmp 0x608ca8
mov eax, dword [0x754908]
mov byte [0x75490c], 1
jmp 0x608ca8
mov eax, dword [0x754908]
test eax, eax
je 0x608cc1
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x608cd4
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x608d08
cmp word [ebx], 0x7d
jne 0x608400
jmp 0x608d13
push eax
call fcn.00607220
add esp, 4
mov esi, eax
test edi, edi
je 0x608d13
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x608d13
mov esi, 0x80020009
jmp 0x608d13
mov eax, 1
push eax
call fcn.00607220
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x608d24
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.00663ada
mov esp, ebp
pop ebp
ret 0x10