Function at 0x412152
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2264
call fcn.00469020
mov eax, dword [0x46a010]
xor eax, esp
mov dword [esp + 0x2260], eax
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x14], ecx
xor ecx, ecx
push esi
mov ebx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ebx
call fcn.00411fd8
mov esi, eax
test esi, esi
js 0x4126ea
jmp 0x4126a7
push 0x401230
push edi
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x401204
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4121ec
test esi, esi
je 0x41226e
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411fd8
mov esi, eax
test esi, esi
js 0x4126df
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x412270
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.00411712
test eax, eax
jne 0x4126da
push edi
call fcn.00411d66
test eax, eax
je 0x412245
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push edi
mov dword [esp + 0x3c], eax
call fcn.00411d9c
mov dword [esp + 0x38], esi
cmp dword [esp + 0x18], esi
je 0x412270
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411fd8
mov esi, eax
test esi, esi
js 0x4126df
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411cf8
jmp 0x412499
xor esi, esi
push 0x40121c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x412298
mov ecx, dword [esp + 0x14]
push edi
mov dword [esp + 0x14], esi
call fcn.00411fd8
mov esi, eax
test esi, esi
js 0x4126df
push 0x4011fc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41239c
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x268]
push eax
call fcn.00411fd8
mov esi, eax
test esi, esi
js 0x4126df
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411fd8
mov esi, eax
test esi, esi
js 0x4126df
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4126da
cmp dword [ebp + 0x10], 0
je 0x412323
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x268]
push edi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004118c2
mov esi, eax
xor eax, eax
mov dword [esp + 0x44], eax
jmp 0x41249b
cmp dword [ebp + 0x14], 0
jne 0x412383
cmp dword [esp + 0x10], 0
je 0x412383
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
push 0x20006
push ecx
push ecx
push dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4126cf
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x268]
push eax
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x412378
cmp eax, 2
jne 0x4126b5
test esi, esi
je 0x412383
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411cf8
mov esi, eax
test esi, esi
js 0x4126df
jmp 0x4126a7
push 0x5c
pop edx
mov ecx, edi
call fcn.00411712
test eax, eax
jne 0x4126da
cmp dword [ebp + 0x10], eax
je 0x4124f8
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x2001f
xor ecx, ecx
push ecx
push edi
push esi
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4123ef
test ebx, ebx
je 0x4123e3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
test eax, eax
je 0x412467
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
push 0x20019
push ecx
push edi
push esi
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412423
test ebx, ebx
je 0x412417
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
test eax, eax
je 0x412467
lea eax, [esp + 0x5c]
xor ecx, ecx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4126cf
test ebx, ebx
je 0x412457
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
test eax, eax
jne 0x4126cf
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411fd8
mov esi, eax
test esi, esi
js 0x4126df
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4124a3
mov ecx, dword [esp + 0x14]
xor eax, eax
push edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004118c2
mov ebx, dword [esp + 0x24]
mov esi, eax
test esi, esi
js 0x4126df
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4126a7
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x30]
jne 0x4124b4
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4126a7
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00412152
mov esi, eax
test esi, esi
js 0x4126df
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411fd8
jmp 0x41238d
cmp dword [ebp + 0x14], 0
jne 0x412541
lea eax, [esp + 0x18]
xor esi, esi
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x41254c
mov dword [esp + 0x20], esi
mov eax, esi
test ebx, ebx
je 0x412537
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
jmp 0x412548
push 2
pop eax
mov dword [esp + 0x20], eax
test eax, eax
je 0x412553
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x68]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
push eax
call fcn.00411cb4
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411fd8
mov esi, eax
test esi, esi
js 0x4126df
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411cf8
mov esi, eax
test esi, esi
js 0x4126df
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4125ef
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x30]
jne 0x4125a4
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4125ef
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push ebx
push edi
call fcn.00412152
mov esi, eax
test esi, esi
jns 0x4125db
cmp dword [ebp + 0x14], 0
je 0x4126df
mov ecx, dword [esp + 0x14]
push edi
call fcn.00411fd8
mov esi, eax
test esi, esi
js 0x4126df
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x14], eax
cmp ecx, 2
je 0x4126a7
test ecx, ecx
je 0x412614
test eax, eax
je 0x4126d1
jmp 0x4126a7
test eax, eax
je 0x41264b
push ebx
call fcn.00411efd
test eax, eax
je 0x41264b
lea eax, [esp + 0x60]
push eax
call fcn.00411d66
test eax, eax
je 0x4126a7
cmp dword [esp + 0x10], 0
je 0x4126a7
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x28]
call fcn.00411d9c
mov ebx, dword [esp + 0x24]
jmp 0x4126a7
push ebx
call fcn.00411efd
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x412672
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x24], ebx
test eax, eax
jne 0x4126cf
mov eax, dword [esp + 0x18]
jmp 0x412674
xor ecx, ecx
cmp dword [esp + 0x10], 0
je 0x4126a7
test eax, eax
jne 0x4126a7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x50]
push eax
call fcn.00411f3b
xor ecx, ecx
mov dword [esp + 0x50], ecx
test eax, eax
jne 0x4126cf
push 0x7d
pop eax
cmp word [edi], ax
jne 0x4121b7
jmp 0x4126df
mov ecx, eax
call fcn.00411fc3
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4126df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4126df
mov ecx, eax
call fcn.00411fc3
mov esi, eax
jmp 0x4126df
mov esi, 0x80020009
test ebx, ebx
je 0x4126ea
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x226c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00468719
mov esp, ebp
pop ebp
ret 0x10