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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d88eb
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.0049fe60
mov eax, dword [0x5010c0]
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.0049a020
mov esi, eax
test esi, esi
js 0x49c0e6
cmp word [ebx], 0x7d
je 0x49c0d3
nop dword [eax]
nop word [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4e65d4
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49b7e0
test edi, edi
jne 0x49b8ef
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0049a020
mov esi, eax
test esi, esi
js 0x49c0d3
cmp dword [ebp + 0x10], 0
je 0x49b8ef
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test ax, ax
je 0x49b843
nop
cmp ax, 0x5c
je 0x49b83b
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x49b820
jmp 0x49b843
test edx, edx
jne 0x49c0bc
mov esi, 0x4db1bc
nop dword [eax + eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49b8a8
add esi, 4
cmp esi, 0x4db1ec
jl 0x49b850
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.0049b020
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test edi, edi
jne 0x49b8e5
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0049a020
mov esi, eax
test esi, esi
js 0x49c0d3
push ebx
mov ecx, edi
call fcn.0049d170
mov esi, eax
test esi, esi
js 0x49c0d3
mov dword [ebp - 0x223c], 0
jmp 0x49bd0f
mov dword [ebp - 0x223c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49b91f
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.0049a020
mov esi, eax
test esi, esi
js 0x49c0d3
jmp 0x49b925
mov edi, dword [ebp - 0x2234]
push 0x4e65cc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49ba75
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.0049a020
mov esi, eax
test esi, esi
js 0x49c0d3
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0049a020
mov esi, eax
test esi, esi
js 0x49c0d3
cmp word [ebx], 0x3d
jne 0x49c0bc
cmp dword [ebp + 0x10], 0
je 0x49b9f6
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.00499090
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x49c0d3
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x49bd0f
cmp dword [ebp + 0x14], 0
jne 0x49ba5a
test edi, edi
je 0x49ba5a
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 0x49c0c8
mov edi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x49ba4f
cmp eax, 2
jne 0x49c0a4
test edi, edi
je 0x49ba5a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0049d170
mov esi, eax
test esi, esi
js 0x49c0d3
jmp 0x49c098
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x49baa2
mov edx, ecx
cmp dx, 0x5c
je 0x49ba9a
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x49ba81
jmp 0x49baa2
test eax, eax
jne 0x49c0bc
cmp dword [ebp + 0x10], 0
je 0x49bd6c
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x49bb12
cmp dword [esi], 0
je 0x49bb05
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49bb62
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49bb0b
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x49bb2d
cmp dword [esi + 4], 0
jne 0x49bb12
mov eax, 1
jmp 0x49bb2d
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 0x49bb62
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x49bb42
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 0x49bcd6
jmp 0x49bb68
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x49bbc8
cmp dword [esi], 0
je 0x49bbbb
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49bc10
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49bbc1
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x49bbe3
cmp dword [esi + 4], 0
jne 0x49bbc8
mov eax, 1
jmp 0x49bbe3
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 0x49bc10
test edi, edi
je 0x49bbf2
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 0x49bcd6
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x49bc7d
cmp dword [esi], 0
je 0x49bc70
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49c0c3
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49bc76
push 0
push dword [esi]
lea ecx, [ebp - 0x2244]
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 0x49bca5
cmp dword [esi + 4], 0
jne 0x49bc7d
mov eax, 1
jmp 0x49bca5
lea eax, [ebp - 0x2244]
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 0x49c0c8
test edi, edi
je 0x49bcb8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x49c0c8
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0049a020
mov esi, eax
test esi, esi
js 0x49c0d3
cmp word [ebx], 0x3d
jne 0x49bd0f
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.00499090
mov esi, eax
test esi, esi
js 0x49c0d3
cmp word [ebx], 0x7b
jne 0x49c098
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bd20
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x49c098
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.0049b720
mov esi, eax
test esi, esi
js 0x49c0d3
push ebx
mov ecx, edi
call fcn.0049a020
mov esi, eax
test esi, esi
js 0x49c0d3
jmp 0x49c098
cmp dword [ebp + 0x14], 0
jne 0x49be2c
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x49bde0
cmp dword [esi], 0
je 0x49bdd3
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x49bda6
lea edi, [eax + 1]
jmp 0x49be31
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49bdd9
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x49bdfb
cmp dword [esi + 4], 0
jne 0x49bde0
mov edi, 1
jmp 0x49bdfd
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 0x49be31
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x49be14
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 0x49be31
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.004abe29
push eax
call fcn.00404830
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.0049a020
mov esi, eax
test esi, esi
js 0x49c0d3
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0049d170
mov esi, eax
test esi, esi
js 0x49c0d3
cmp word [ebx], 0x7b
jne 0x49beed
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49be96
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x49beed
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.0049b720
mov esi, eax
test esi, esi
jns 0x49bed7
cmp dword [ebp - 0x221c], 0
je 0x49c0d3
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0049a020
mov esi, eax
test esi, esi
js 0x49c0d3
cmp edi, 2
je 0x49c098
test edi, edi
je 0x49bf0a
cmp dword [ebp + 0x14], 0
jne 0x49c098
push edi
jmp 0x49c0c9
cmp dword [ebp + 0x14], 0
je 0x49bfa6
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 0x49bfa6
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x49bfa6
mov edi, 0x4db1bc
nop word [eax + eax]
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49c098
add edi, 4
cmp edi, 0x4db1ec
jl 0x49bf60
cmp dword [ebp - 0x2234], 0
je 0x49c098
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0049b020
jmp 0x49c098
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 0x49bfdf
xor edi, edi
jmp 0x49bfeb
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 0x49c006
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 0x49c0c8
cmp dword [ebp - 0x2234], eax
je 0x49c098
test edi, edi
jne 0x49c098
cmp byte [0x516528], al
jne 0x49c063
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49c055
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51652c], eax
mov byte [0x516528], 1
jmp 0x49c068
mov eax, dword [0x51652c]
mov byte [0x516528], 1
jmp 0x49c068
mov eax, dword [0x51652c]
test eax, eax
je 0x49c081
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x49c094
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x49c0c8
cmp word [ebx], 0x7d
jne 0x49b7b0
jmp 0x49c0d3
push eax
call fcn.0048eff0
add esp, 4
mov esi, eax
test edi, edi
je 0x49c0d3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49c0d3
mov esi, 0x80020009
jmp 0x49c0d3
mov eax, 1
push eax
call fcn.0048eff0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x49c0e4
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.0049fb4b
mov esp, ebp
pop ebp
ret 0x10