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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d6a6
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.00546790
mov eax, dword [0x62819c]
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.004995d0
mov esi, eax
test esi, esi
js 0x49acc4
cmp word [ebx], 0x7d
je 0x49acb1
jmp 0x49a3a0
push str.Delete
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49a3d3
test edi, edi
je 0x49a4d5
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004995d0
mov esi, eax
test esi, esi
js 0x49acb1
cmp dword [ebp + 0x10], 0
je 0x49a4d5
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x49a434
cmp ax, 0x5c
je 0x49a42c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x49a411
jmp 0x49a434
test edx, edx
jne 0x49ac9f
mov esi, 0x5be48c
lea esp, [esp]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49a48e
add esi, 4
cmp esi, 0x5be4bc
jl 0x49a440
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2244]
push ebx
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
call fcn.004395c0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test edi, edi
je 0x49a4cb
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.004995d0
mov esi, eax
test esi, esi
js 0x49acb1
push ebx
mov ecx, edi
call fcn.0049afb0
mov esi, eax
test esi, esi
js 0x49acb1
mov dword [ebp - 0x2240], 0
jmp 0x49a8fe
mov dword [ebp - 0x2240], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49a505
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.004995d0
mov esi, eax
test esi, esi
js 0x49acb1
jmp 0x49a50b
mov edi, dword [ebp - 0x2234]
push 0x5ac5b4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49a65b
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.004995d0
mov esi, eax
test esi, esi
js 0x49acb1
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004995d0
mov esi, eax
test esi, esi
js 0x49acb1
cmp word [ebx], 0x3d
jne 0x49ac9f
cmp dword [ebp + 0x10], 0
je 0x49a5dc
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.00497c90
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x49acb1
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x49a8fe
cmp dword [ebp + 0x14], 0
jne 0x49a640
test edi, edi
je 0x49a640
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 0x49aca6
mov edi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x49a635
cmp eax, 2
jne 0x49ac87
test edi, edi
je 0x49a640
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0049afb0
mov esi, eax
test esi, esi
js 0x49acb1
jmp 0x49ac7b
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x49a688
mov edx, ecx
cmp dx, 0x5c
je 0x49a680
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x49a667
jmp 0x49a688
test eax, eax
jne 0x49ac9f
cmp dword [ebp + 0x10], 0
je 0x49a95c
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x49a6fb
cmp dword [esi], 0
je 0x49a6ee
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x49a6c1
mov eax, 1
jmp 0x49a716
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49a6f4
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x49a716
cmp dword [esi + 4], 0
jne 0x49a6fb
mov eax, 1
jmp 0x49a716
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 0x49a74b
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x49a72b
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 0x49a8c5
jmp 0x49a751
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x49a7b4
cmp dword [esi], 0
je 0x49a7a7
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x49a77a
mov eax, 1
jmp 0x49a7cf
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49a7ad
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x49a7cf
cmp dword [esi + 4], 0
jne 0x49a7b4
mov eax, 1
jmp 0x49a7cf
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 0x49a7fc
test edi, edi
je 0x49a7de
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 0x49a8c5
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x49a86c
cmp dword [esi], 0
je 0x49a85f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x49a825
mov eax, 1
jmp 0x49a894
push 0x5b7ed4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49a865
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 0x49a894
cmp dword [esi + 4], 0
jne 0x49a86c
mov eax, 1
jmp 0x49a894
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 0x49aca6
test edi, edi
je 0x49a8a7
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 0x49aca6
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.004995d0
mov esi, eax
test esi, esi
js 0x49acb1
cmp word [ebx], 0x3d
jne 0x49a8fe
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.00497c90
mov esi, eax
test esi, esi
js 0x49acb1
cmp word [ebx], 0x7b
jne 0x49ac7b
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49a910
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x49ac7b
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.0049a310
mov esi, eax
test esi, esi
js 0x49acb1
push ebx
mov ecx, edi
call fcn.004995d0
mov esi, eax
test esi, esi
js 0x49acb1
jmp 0x49ac7b
cmp dword [ebp + 0x14], 0
jne 0x49aa19
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x49a9cd
cmp dword [esi], 0
je 0x49a9c0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x49a993
lea edi, [eax + 1]
jmp 0x49a9ea
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49a9c6
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x49a9e8
cmp dword [esi + 4], 0
jne 0x49a9cd
mov edi, 1
jmp 0x49a9ea
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 0x49aa1e
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x49aa01
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 0x49aa1e
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.00563184
push eax
call fcn.00429330
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.004995d0
mov esi, eax
test esi, esi
js 0x49acb1
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0049afb0
mov esi, eax
test esi, esi
js 0x49acb1
cmp word [ebx], 0x7b
jne 0x49aada
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49aa83
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x49aada
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.0049a310
mov esi, eax
test esi, esi
jns 0x49aac4
cmp dword [ebp - 0x221c], 0
je 0x49acb1
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004995d0
mov esi, eax
test esi, esi
js 0x49acb1
cmp edi, 2
je 0x49ac7b
test edi, edi
je 0x49aaf7
cmp dword [ebp + 0x14], 0
jne 0x49ac7b
push edi
jmp 0x49aca7
cmp dword [ebp + 0x14], 0
je 0x49ab89
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 0x49ab89
cmp dword [ebp - 0x221c], eax
jbe 0x49ab89
mov edi, 0x5be48c
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49ac7b
add edi, 4
cmp edi, 0x5be4bc
jl 0x49ab43
cmp dword [ebp - 0x2234], 0
je 0x49ac7b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.004395c0
jmp 0x49ac7b
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 0x49abc2
xor edi, edi
jmp 0x49abce
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 0x49abe9
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 0x49aca6
cmp dword [ebp - 0x2234], eax
je 0x49ac7b
test edi, edi
jne 0x49ac7b
cmp byte [0x631724], al
jne 0x49ac46
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49ac38
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x631720], eax
mov byte [0x631724], 1
jmp 0x49ac4b
mov eax, dword [0x631720]
mov byte [0x631724], 1
jmp 0x49ac4b
mov eax, dword [0x631720]
test eax, eax
je 0x49ac64
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x49ac77
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x49aca6
cmp word [ebx], 0x7d
jne 0x49a3a0
jmp 0x49acb1
push eax
call fcn.004982d0
add esp, 4
mov esi, eax
test edi, edi
je 0x49acb1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49acb1
mov esi, 0x80020009
jmp 0x49acb1
push eax
call fcn.004982d0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x49acc2
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.00545ec7
mov esp, ebp
pop ebp
ret 0x10