Function at 0x428100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472812
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x493120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, edi
jne 0x428151
call fcn.00401580
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x238], esp
mov esi, esp
push eax
call fcn.00401e10
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00426060
add esp, 4
push eax
call fcn.00427170
mov ecx, dword [ebp + 0xc]
add esp, 8
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp + 8]
push 0x20019
push edi
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x238], esp
mov esi, esp
push eax
call fcn.00401e10
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00426060
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42829d
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x234]
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x238], esp
mov esi, esp
push eax
call fcn.00401e10
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00426060
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x42829d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428227
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42824a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42826d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffff6
jmp 0x428524
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], edi
mov word [ebp - 0x22c], cx
mov edx, dword [ebp + 0x14]
mov eax, edx
mov byte [ebp - 4], 5
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4282c3
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x230]
call fcn.00407260
mov eax, dword [ebp - 0x22c]
mov esi, 8
cmp dword [ebp - 0x218], esi
jae 0x4282f8
lea eax, [ebp - 0x22c]
mov edx, dword [ebp - 0x21c]
lea ecx, [edx + edx]
mov edx, dword [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x234]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x234]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00452eb4
add esp, 8
test eax, eax
jl 0x42841d
mov ecx, dword [ebp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x42841d
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov word [ecx + eax*2], dx
cmp dword [ebp - 0x218], esi
jb 0x42836e
mov edx, dword [ebp - 0x22c]
push edx
call fcn.0042c1ba
add esp, 4
xor eax, eax
mov word [ebp - 0x22c], ax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4283aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4283cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4283f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428416
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x428524
push 0x80070057
call fcn.00401090
mov ecx, dword [ebp - 0x250]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push 0
push 0xff
lea eax, [ebp - 0x214]
push eax
call edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x238]
call fcn.004047a0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x234], esp
push str.SetStringKey
mov byte [ebp - 4], 7
call fcn.00404080
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x244], esp
push 0x476a05
mov byte [ebp - 4], 8
call fcn.00404080
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x23c], esp
push str.Registry
mov byte [ebp - 4], 9
call fcn.00404080
mov ecx, dword [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xa
call fcn.004023e0
mov eax, dword [eax]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
mov byte [ebp - 4], 0xb
call fcn.00404080
mov byte [ebp - 4], 0xc
call fcn.0041c8f0
mov eax, dword [ebp - 0x2dc]
lea edx, [ebp - 0x2d8]
add esp, 0x70
cmp eax, edx
je 0x4284f1
push eax
call fcn.0044f479
add esp, 4
lea ecx, [ebp - 0x238]
call fcn.004098d0
mov eax, 0x428502
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044fc9c
mov esp, ebp
pop ebp
ret