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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2244
call fcn.0041ba60
mov eax, dword [0x44f214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
mov dword [ebp - 0x2218], ecx
mov dword [ebp - 0x2214], eax
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x221c], 0
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413ec7
cmp word [ebx], 0x7d
push edi
je 0x413eb3
nop dword [eax]
nop dword [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x2228], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x43c46c
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4135e3
test edi, edi
je 0x4136e5
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413eb3
cmp dword [ebp + 0x10], 0
je 0x4136e5
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test ax, ax
je 0x413644
cmp ax, 0x5c
je 0x41363c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x413621
jmp 0x413644
test edx, edx
jne 0x413e9c
mov esi, 0x43c9e4
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41369e
add esi, 4
cmp esi, 0x43ca14
jl 0x413650
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2238]
push ebx
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], 0
call fcn.004130c0
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test edi, edi
je 0x4136db
mov edi, dword [ebp - 0x2218]
mov ecx, edi
push ebx
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413eb3
push ebx
mov ecx, edi
call fcn.00414030
mov esi, eax
test esi, esi
js 0x413eb3
mov dword [ebp - 0x2234], 0
jmp 0x413af3
mov dword [ebp - 0x2234], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x413715
mov ecx, dword [ebp - 0x2218]
xor edi, edi
push ebx
mov dword [ebp - 0x2228], edi
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413eb3
jmp 0x41371b
mov edi, dword [ebp - 0x2228]
push 0x43c464
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x413859
mov ecx, dword [ebp - 0x2218]
lea eax, [ebp - 0x220c]
push eax
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413eb3
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413eb3
cmp word [ebx], 0x3d
jne 0x413e9c
cmp dword [ebp + 0x10], 0
je 0x4137da
mov eax, dword [ebp - 0x2214]
mov edi, dword [ebp - 0x2218]
mov ecx, edi
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x220c]
push ebx
push eax
lea eax, [ebp - 0x2244]
mov dword [ebp - 0x2240], 0
push eax
mov dword [ebp - 0x223c], 0
call fcn.00411e80
mov esi, eax
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test esi, esi
js 0x413eb3
mov dword [ebp - 0x2240], 0
jmp 0x413af3
cmp dword [ebp + 0x14], 0
jne 0x41383e
test edi, edi
je 0x41383e
lea eax, [ebp - 0x2228]
mov dword [ebp - 0x2228], 0
push eax
push 0x20006
push 0
push 0
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413ea8
mov edi, dword [ebp - 0x2228]
lea eax, [ebp - 0x220c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x413833
cmp eax, 2
jne 0x413e84
test edi, edi
je 0x41383e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.00414030
mov esi, eax
test esi, esi
js 0x413eb3
jmp 0x413e78
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x413886
mov edx, ecx
cmp dx, 0x5c
je 0x41387e
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x413865
jmp 0x413886
test eax, eax
jne 0x413e9c
cmp dword [ebp + 0x10], 0
je 0x413b4e
mov esi, dword [ebp - 0x221c]
mov dword [ebp - 0x2210], 0
test esi, esi
je 0x4138f6
cmp dword [esi], 0
je 0x4138e9
push 0x43c7e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x413946
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4138ef
push 0
push dword [esi]
lea ecx, [ebp - 0x2210]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2214]
call eax
jmp 0x413911
cmp dword [esi + 4], 0
jne 0x4138f6
mov eax, 1
jmp 0x413911
lea eax, [ebp - 0x2210]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413946
mov ecx, dword [ebp - 0x2224]
test ecx, ecx
je 0x413926
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2210]
mov dword [ebp - 0x2224], edi
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x413aba
jmp 0x41394c
mov edi, dword [ebp - 0x2224]
mov dword [ebp - 0x2210], 0
test esi, esi
je 0x4139ac
cmp dword [esi], 0
je 0x41399f
push 0x43c7e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4139f4
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4139a5
push 0
push dword [esi]
lea ecx, [ebp - 0x2210]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2214]
call eax
jmp 0x4139c7
cmp dword [esi + 4], 0
jne 0x4139ac
mov eax, 1
jmp 0x4139c7
lea eax, [ebp - 0x2210]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4139f4
test edi, edi
je 0x4139d6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2210]
mov dword [ebp - 0x2224], edi
mov dword [ebp - 0x2220], 0
test eax, eax
je 0x413aba
mov dword [ebp - 0x2210], 0
test esi, esi
je 0x413a61
cmp dword [esi], 0
je 0x413a54
push 0x43c7e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x413ea3
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413a5a
push 0
push dword [esi]
lea ecx, [ebp - 0x222c]
push ecx
lea ecx, [ebp - 0x2210]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2214]
call eax
jmp 0x413a89
cmp dword [esi + 4], 0
jne 0x413a61
mov eax, 1
jmp 0x413a89
lea eax, [ebp - 0x222c]
push eax
lea eax, [ebp - 0x2210]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x413ea8
test edi, edi
je 0x413a9c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2210]
mov dword [ebp - 0x2224], edi
mov dword [ebp - 0x2220], 0
test eax, eax
jne 0x413ea8
mov edi, dword [ebp - 0x2218]
mov ecx, edi
push ebx
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413eb3
cmp word [ebx], 0x3d
jne 0x413af3
push ebx
push 0
lea eax, [ebp - 0x2224]
mov ecx, edi
push eax
call fcn.00411e80
mov esi, eax
test esi, esi
js 0x413eb3
cmp word [ebx], 0x7b
jne 0x413e78
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413b02
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x413e78
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2224]
push ebx
call fcn.00413540
mov esi, eax
test esi, esi
js 0x413eb3
push ebx
mov ecx, edi
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413eb3
jmp 0x413e78
cmp dword [ebp + 0x14], 0
jne 0x413c0e
mov esi, dword [ebp - 0x221c]
mov dword [ebp - 0x2210], 0
test esi, esi
je 0x413bc2
cmp dword [esi], 0
je 0x413bb5
push 0x43c7e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x413b88
lea edi, [eax + 1]
jmp 0x413c13
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413bbb
push 0
push dword [esi]
lea ecx, [ebp - 0x2210]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2214]
call eax
jmp 0x413bdd
cmp dword [esi + 4], 0
jne 0x413bc2
mov edi, 1
jmp 0x413bdf
lea eax, [ebp - 0x2210]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x413c13
mov eax, dword [ebp - 0x2224]
test eax, eax
je 0x413bf6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x2210]
mov dword [ebp - 0x2224], eax
mov dword [ebp - 0x2220], 0
jmp 0x413c13
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x2210], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042042d
push eax
call fcn.00412460
mov ecx, dword [ebp - 0x2218]
add esp, 0x14
push ebx
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413eb3
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.00414030
mov esi, eax
test esi, esi
js 0x413eb3
cmp word [ebx], 0x7b
jne 0x413cd7
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413c80
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x413cd7
push dword [ebp - 0x2210]
mov ecx, dword [ebp - 0x2218]
push 0
push dword [ebp - 0x2224]
push ebx
call fcn.00413540
mov esi, eax
test esi, esi
jns 0x413cc1
cmp dword [ebp - 0x2210], 0
je 0x413eb3
mov ecx, dword [ebp - 0x2218]
push ebx
call fcn.00412a50
mov esi, eax
test esi, esi
js 0x413eb3
cmp edi, 2
je 0x413e78
test edi, edi
je 0x413cf4
cmp dword [ebp + 0x14], 0
jne 0x413e78
push edi
jmp 0x413ea9
cmp dword [ebp + 0x14], 0
je 0x413d86
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2210]
mov dword [ebp - 0x2210], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x413d86
cmp dword [ebp - 0x2210], eax
jbe 0x413d86
mov edi, 0x43c9e4
push dword [edi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x413e78
add edi, 4
cmp edi, 0x43ca14
jl 0x413d40
cmp dword [ebp - 0x2228], 0
je 0x413e78
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2224]
call fcn.004130c0
jmp 0x413e78
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2210]
mov dword [ebp - 0x2210], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x413dbf
xor edi, edi
jmp 0x413dcb
xor eax, eax
cmp eax, dword [ebp - 0x2210]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2224]
xor eax, eax
test ecx, ecx
je 0x413de6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2220], 0
test eax, eax
jne 0x413ea8
cmp dword [ebp - 0x2228], eax
je 0x413e78
test edi, edi
jne 0x413e78
cmp byte [0x450664], al
jne 0x413e43
push 0x43c7e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x413e35
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x450660], eax
mov byte [0x450664], 1
jmp 0x413e48
mov eax, dword [0x450660]
mov byte [0x450664], 1
jmp 0x413e48
mov eax, dword [0x450660]
test eax, eax
je 0x413e61
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp - 0x2214]
call eax
jmp 0x413e74
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x413ea8
cmp word [ebx], 0x7d
jne 0x4135b0
jmp 0x413eb3
push eax
call fcn.00412520
add esp, 4
mov esi, eax
test edi, edi
je 0x413eb3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413eb3
mov esi, 0x80020009
jmp 0x413eb3
mov eax, 1
push eax
call fcn.00412520
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2224]
pop edi
test eax, eax
je 0x413ec5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ba48
mov esp, ebp
pop ebp
ret 0x10