Function at 0x41a33a
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x214], ebx
cmp dword [0x443f40], ebx
je 0x41a3c4
call fcn.00419943
call fcn.00419daf
cmp dword [0x443f44], ebx
je 0x41a3ed
cmp dword [0x443f3c], ebx
je 0x41a3ed
call fcn.0041c79c
test eax, eax
je 0x41a3ed
push ebx
call fcn.0041c79c
mov ecx, eax
call fcn.00430927
test eax, eax
je 0x41a3a7
push ebx
call fcn.0041c79c
mov ecx, eax
call fcn.00430927
jmp 0x41a3b3
call fcn.0041c79c
mov ecx, eax
call fcn.00430888
mov esi, eax
call fcn.0041c79c
push esi
mov ecx, eax
call fcn.0042e684
jmp 0x41a3e1
test edi, edi
je 0x41a3ed
cmp dword [0x443f44], ebx
je 0x41a3ed
cmp dword [0x443f3c], ebx
je 0x41a3ed
call fcn.0041c79c
test eax, eax
je 0x41a3ed
call fcn.0041c79c
mov ecx, eax
call fcn.00430bb9
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
push 2
pop eax
push eax
push ebx
push ebx
push ebx
push 0x401690
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, 0x401bac
push 4
pop esi
test eax, eax
jne 0x41a461
mov dword [ebp - 0x218], 1
cmp dword [0x442a4c], ebx
jne 0x41a448
test edi, edi
je 0x41a455
push esi
lea eax, [ebp - 0x218]
push eax
push esi
push ebx
push ecx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x41a455
push ecx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x224]
call fcn.0043f3bf
or word [ebp - 0x21c], si
lea ecx, [ebp - 0x224]
call fcn.0041999e
test eax, eax
js 0x41a518
lea eax, [ebp - 0x214]
push eax
push 3
push ebx
push dword [ebp - 0x224]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a518
mov dword [ebp - 0x218], 1
cmp dword [0x442a4c], ebx
jne 0x41a4d8
test edi, edi
je 0x41a506
push esi
lea eax, [ebp - 0x218]
push eax
push esi
push ebx
push 0x401bac
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x41a4e9
push 0x401bac
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
je 0x41a506
push esi
push 0x443f5c
push esi
push ebx
push 0x4035e4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], ebx
test edi, edi
je 0x41a621
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x401690
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41a61c
push esi
push 0x443f78
push esi
push ebx
push 0x40359c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0x443f88
push 3
push ebx
push 0x4036b8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0x443f80
push esi
push ebx
push 0x4035c0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0x443f5c
push esi
push ebx
push 0x4035e4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0x443f4c
push esi
push ebx
push 0x403628
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0x443f84
push esi
push ebx
push 0x403648
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0x443f60
push esi
push ebx
push 0x403670
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0x443f64
push esi
push ebx
push 0x403690
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00420610
mov ecx, dword [0x443f6c]
xor eax, eax
mov word [ebp - 0x210], ax
test ecx, ecx
je 0x41a686
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x41a641
cmp word [edx], bx
setne al
test al, al
je 0x41a65f
push 0x104
lea eax, [ebp - 0x210]
push eax
lea ecx, [ecx + 0x30]
call fcn.0043f907
mov ecx, dword [0x443f6c]
call fcn.0041d6f2
mov eax, dword [0x443f6c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x445628]
call esi
mov ax, word [ebp - 0x210]
mov dword [0x443f6c], ebx
test edi, edi
je 0x41a74c
test ax, ax
je 0x41a730
lea eax, [ebp - 0x210]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x41a730
push 0x22
pop eax
cmp ax, word [ebp - 0x210]
je 0x41a730
lea ecx, [ebp - 0x210]
push 2
lea edx, [ecx + 2]
pop esi
mov ax, word [ecx]
add ecx, esi
cmp ax, bx
jne 0x41a6c8
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 5]
xor ecx, ecx
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov esi, eax
pop ecx
test esi, esi
je 0x41a71c
lea eax, [ebp - 0x210]
push eax
push 0x4042c8
push edi
push esi
call fcn.0040c0e1
add esp, 0x10
lea ecx, [ebp - 0x210]
mov edx, 0x104
push esi
call fcn.0040c040
jmp 0x41a725
xor eax, eax
mov word [ebp - 0x210], ax
test esi, esi
je 0x41a730
push esi
call fcn.00440db7
pop ecx
cmp dword [0x442518], ebx
je 0x41a747
lea ecx, [ebp - 0x210]
call fcn.00419eb1
test eax, eax
jne 0x41a74c
call fcn.00422b58
test byte [0x442a40], 1
je 0x41a761
push 1
mov edx, 0x403508
call fcn.0040c512
lea ecx, [ebp - 0x224]
call fcn.0043f743
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave