Function at 0x42d980
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44e1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
lea ecx, [ebp + 0x14]
call fcn.00430930
test eax, eax
jne 0x42d9c1
mov eax, 1
jmp 0x42dcb6
call fcn.00435880
mov edi, eax
call fcn.00432590
mov eax, dword [0x45fdc0]
mov edx, dword [eax + 0xc]
mov ecx, 0x45fdc0
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], 0
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
mov esi, 0x104
sub eax, esi
or eax, ecx
jge 0x42da10
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.004043a0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 8], esi
jge 0x42da1f
push 0x80070057
call fcn.00404c40
mov dword [ebx - 0xc], esi
mov byte [ebx + 0x104], 0
mov ebp, dword [ebp]
call fcn.004358d0
lea esi, [edi + 0xc]
push ebx
mov ecx, ebp
mov edx, esi
mov dword [esp + 0x2c], esi
call fcn.004333f0
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004389ba
add esp, 8
test eax, eax
jl 0x42da15
cmp eax, dword [ebx - 8]
jg 0x42da15
mov dword [ebx - 0xc], eax
mov byte [eax + ebx], 0
mov eax, dword [0x45fdc0]
mov edx, dword [eax + 0xc]
mov ecx, 0x45fdc0
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x34], 1
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x42daa0
mov ecx, 0x104
lea eax, [esp + 0x1c]
call fcn.004043a0
mov ebp, dword [esp + 0x1c]
mov eax, 0x104
cmp dword [ebp - 8], eax
jge 0x42dab4
push 0x80070057
call fcn.00404c40
mov dword [ebp - 0xc], eax
mov eax, dword [esp + 0x3c]
mov byte [ebp + 0x104], 0
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
call fcn.004358d0
mov ecx, dword [esp + 0x24]
push ebp
mov edx, esi
call fcn.004333f0
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.004389ba
add esp, 8
test eax, eax
jl 0x42da15
cmp eax, dword [ebp - 8]
jg 0x42da15
mov dword [ebp - 0xc], eax
mov byte [eax + ebp], 0
mov edx, dword [0x45fdc0]
mov eax, dword [edx + 0xc]
mov ecx, 0x45fdc0
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov byte [esp + 0x34], 2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x42db41
mov ecx, 0x104
lea eax, [esp + 0x20]
call fcn.004043a0
mov esi, dword [esp + 0x20]
mov eax, 0x104
cmp dword [esi - 8], eax
jge 0x42db55
push 0x80070057
call fcn.00404c40
mov ecx, dword [esp + 0x3c]
mov dword [esi - 0xc], eax
mov byte [esi + 0x104], 0
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x24], edx
call fcn.004358d0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push esi
call fcn.004333f0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004389ba
add esp, 8
test eax, eax
jl 0x42da15
cmp eax, dword [esi - 8]
jg 0x42da15
mov edi, dword [esp + 0x3c]
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
cmp dword [edi + 0x10], 0
je 0x42dbc7
push ebp
mov ecx, ebx
call fcn.00436280
push eax
push str.Backup_Key_Value_Return:__d
push 0x80
call fcn.004025a0
add esp, 0xc
mov eax, dword [edi + 8]
push str.STRING
push eax
call fcn.0043840c
mov eax, dword [esi - 0xc]
inc eax
add esp, 8
mov ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
call fcn.00435d80
mov edi, eax
test edi, edi
je 0x42dc1a
mov eax, dword [esp + 0x28]
push eax
push esi
push 1
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x42dc13
mov dword [esp + 0x24], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x24]
push edi
push 1
push esi
push ebp
push ebx
push str.Install_Key_KeyName:__s__ValueName:__s__Value:__s__DataType:__d_Return:__d
push 0x80
call fcn.004025a0
add esp, 0x1c
test edi, edi
je 0x42dc4d
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0042dcd0
mov ebx, dword [esp + 0x18]
add esi, 0xfffffff0
mov byte [esp + 0x34], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42dc6e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x34], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dc90
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add ebx, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42dcb4
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4