Function at 0x4262c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f362
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x491120]
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 0x426311
call fcn.00409200
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.00424590
add esp, 4
push eax
call fcn.004256a0
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.00424590
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42645d
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.00424590
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x42645d
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 0x4263e7
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 0x42640a
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 0x42642d
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 0x426453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffff6
jmp 0x4266e4
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 0x426483
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x230]
call fcn.004072d0
mov eax, dword [ebp - 0x22c]
mov esi, 8
cmp dword [ebp - 0x218], esi
jae 0x4264b8
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.0045059c
add esp, 8
test eax, eax
jl 0x4265dd
mov ecx, dword [ebp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x4265dd
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 0x42652e
mov edx, dword [ebp - 0x22c]
push edx
call fcn.0042a4ff
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 0x42656a
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 0x42658d
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 0x4265b0
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 0x4265d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x4266e4
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.00404810
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x234], esp
push str.SetStringKey
mov byte [ebp - 4], 7
call fcn.004040f0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x244], esp
push 0x4739f5
mov byte [ebp - 4], 8
call fcn.004040f0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x23c], esp
push str.Registry
mov byte [ebp - 4], 9
call fcn.004040f0
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.004040f0
mov byte [ebp - 4], 0xc
call fcn.0041bd70
mov eax, dword [ebp - 0x2dc]
lea edx, [ebp - 0x2d8]
add esp, 0x70
cmp eax, edx
je 0x4266b1
push eax
call fcn.0044d7cf
add esp, 4
lea ecx, [ebp - 0x238]
call fcn.00409710
mov eax, 0x4266c2
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.0044dfec
mov esp, ebp
pop ebp
ret