Function at 0x421cb1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x414]
push esi
push 0x404670
push 0x103
xor edi, edi
push eax
mov dword [ebp - 0x418], edi
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x418]
push edi
push eax
push edi
push 2
pop ebx
push ebx
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421dde
push 0x405e20
mov edx, 0x103
lea ecx, [ebp - 0x20c]
call fcn.00418392
test eax, eax
js 0x421d66
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x421d39
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x405e68
mov edx, 0x103
lea ecx, [ebp - 0x20c]
call fcn.00418392
test eax, eax
js 0x421db8
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x421d88
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
push 0x4031d0
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push 0x401064
push 1
push edi
push 0x405ebc
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x4045cc
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x418]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421e7a
push 0x404620
mov edx, 0x103
lea ecx, [ebp - 0x20c]
call fcn.00418392
test eax, eax
js 0x421e6e
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x421e3d
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x404600
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x404710
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x418]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421f82
push 0x405ed8
mov edx, 0x103
lea ecx, [ebp - 0x20c]
call fcn.00418392
test eax, eax
js 0x421f0a
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x421edd
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x405f18
mov edx, 0x103
lea ecx, [ebp - 0x20c]
call fcn.00418392
test eax, eax
js 0x421f5c
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x421f2c
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
push 0x4031d0
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push 0x401064
push 1
push edi
push 0x405ebc
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x404694
mov esi, 0x103
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x418]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42201c
push 0x4046c0
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.00418392
test eax, eax
js 0x422010
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x421fdf
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x404600
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret