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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1e2b
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.00499070
mov eax, dword [0x4f80c0]
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.00492e40
mov esi, eax
test esi, esi
js 0x494695
cmp word [ebx], 0x7d
je 0x494682
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 0x4de5fc
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x493d90
test edi, edi
jne 0x493e9f
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00492e40
mov esi, eax
test esi, esi
js 0x494682
cmp dword [ebp + 0x10], 0
je 0x493e9f
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test ax, ax
je 0x493df3
nop
cmp ax, 0x5c
je 0x493deb
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x493dd0
jmp 0x493df3
test edx, edx
jne 0x494670
mov esi, 0x4d421c
nop dword [eax + eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x493e58
add esi, 4
cmp esi, 0x4d424c
jl 0x493e00
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.004935d0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test edi, edi
jne 0x493e95
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00492e40
mov esi, eax
test esi, esi
js 0x494682
push ebx
mov ecx, edi
call fcn.00495740
mov esi, eax
test esi, esi
js 0x494682
mov dword [ebp - 0x223c], 0
jmp 0x4942c8
mov dword [ebp - 0x223c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x493ecf
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.00492e40
mov esi, eax
test esi, esi
js 0x494682
jmp 0x493ed5
mov edi, dword [ebp - 0x2234]
push 0x4de5f4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x494025
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.00492e40
mov esi, eax
test esi, esi
js 0x494682
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00492e40
mov esi, eax
test esi, esi
js 0x494682
cmp word [ebx], 0x3d
jne 0x494670
cmp dword [ebp + 0x10], 0
je 0x493fa6
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.00491c20
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x494682
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x4942c8
cmp dword [ebp + 0x14], 0
jne 0x49400a
test edi, edi
je 0x49400a
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 0x494677
mov edi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x493fff
cmp eax, 2
jne 0x494658
test edi, edi
je 0x49400a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00495740
mov esi, eax
test esi, esi
js 0x494682
jmp 0x49464c
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x494052
mov edx, ecx
cmp dx, 0x5c
je 0x49404a
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x494031
jmp 0x494052
test eax, eax
jne 0x494670
cmp dword [ebp + 0x10], 0
je 0x494323
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4940c5
cmp dword [esi], 0
je 0x4940b8
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x49408b
mov eax, 1
jmp 0x4940e0
push 0x4e4938
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4940be
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4940e0
cmp dword [esi + 4], 0
jne 0x4940c5
mov eax, 1
jmp 0x4940e0
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 0x494115
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x4940f5
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 0x49428f
jmp 0x49411b
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x49417e
cmp dword [esi], 0
je 0x494171
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x494144
mov eax, 1
jmp 0x494199
push 0x4e4938
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x494177
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x494199
cmp dword [esi + 4], 0
jne 0x49417e
mov eax, 1
jmp 0x494199
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 0x4941c6
test edi, edi
je 0x4941a8
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 0x49428f
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x494236
cmp dword [esi], 0
je 0x494229
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4941ef
mov eax, 1
jmp 0x49425e
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49422f
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 0x49425e
cmp dword [esi + 4], 0
jne 0x494236
mov eax, 1
jmp 0x49425e
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 0x494677
test edi, edi
je 0x494271
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 0x494677
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00492e40
mov esi, eax
test esi, esi
js 0x494682
cmp word [ebx], 0x3d
jne 0x4942c8
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.00491c20
mov esi, eax
test esi, esi
js 0x494682
cmp word [ebx], 0x7b
jne 0x49464c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4942d7
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x49464c
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.00493cd0
mov esi, eax
test esi, esi
js 0x494682
push ebx
mov ecx, edi
call fcn.00492e40
mov esi, eax
test esi, esi
js 0x494682
jmp 0x49464c
cmp dword [ebp + 0x14], 0
jne 0x4943e0
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x494394
cmp dword [esi], 0
je 0x494387
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x49435a
lea edi, [eax + 1]
jmp 0x4943b1
push 0x4e4938
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49438d
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4943af
cmp dword [esi + 4], 0
jne 0x494394
mov edi, 1
jmp 0x4943b1
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 0x4943e5
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4943c8
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 0x4943e5
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.004a51c9
push eax
call fcn.004048c0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.00492e40
mov esi, eax
test esi, esi
js 0x494682
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00495740
mov esi, eax
test esi, esi
js 0x494682
cmp word [ebx], 0x7b
jne 0x4944a7
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494450
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4944a7
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.00493cd0
mov esi, eax
test esi, esi
jns 0x494491
cmp dword [ebp - 0x221c], 0
je 0x494682
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00492e40
mov esi, eax
test esi, esi
js 0x494682
cmp edi, 2
je 0x49464c
test edi, edi
je 0x4944c4
cmp dword [ebp + 0x14], 0
jne 0x49464c
push edi
jmp 0x494678
cmp dword [ebp + 0x14], 0
je 0x49455a
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 0x49455a
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x49455a
mov edi, 0x4d421c
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49464c
add edi, 4
cmp edi, 0x4d424c
jl 0x494514
cmp dword [ebp - 0x2234], 0
je 0x49464c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.004935d0
jmp 0x49464c
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 0x494593
xor edi, edi
jmp 0x49459f
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 0x4945ba
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 0x494677
cmp dword [ebp - 0x2234], eax
je 0x49464c
test edi, edi
jne 0x49464c
cmp byte [0x4fbc9c], al
jne 0x494617
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x494609
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4fbc98], eax
mov byte [0x4fbc9c], 1
jmp 0x49461c
mov eax, dword [0x4fbc98]
mov byte [0x4fbc9c], 1
jmp 0x49461c
mov eax, dword [0x4fbc98]
test eax, eax
je 0x494635
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x494648
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x494677
cmp word [ebx], 0x7d
jne 0x493d60
jmp 0x494682
push eax
call fcn.00487490
add esp, 4
mov esi, eax
test edi, edi
je 0x494682
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x494682
mov esi, 0x80020009
jmp 0x494682
push eax
call fcn.00487490
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x494693
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.00498d60
mov esp, ebp
pop ebp
ret 0x10