Function at 0x1004b650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 1], 0
cmp dword [ebp + 0x18], 0
je 0x1004b820
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.10002b10
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002b10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.10004ed0
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
jmp 0x1004b6ae
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jge 0x1004b6fe
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.10004f00
mov dword [ebp - 0x24], eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002b10
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.100353e8
add esp, 4
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002b40
jmp 0x1004b6a5
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
lea eax, [eax + edx + 3]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100163ab
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov word [edx], cx
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
jmp 0x1004b74b
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x10]
jge 0x1004b7b5
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.10004f00
mov dword [ebp - 0x30], eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002b10
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax*2]
push edx
call fcn.10035fa3
add esp, 8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100353e8
add esp, 4
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002b40
jmp 0x1004b742
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
push 2
mov eax, dword [ebp - 8]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 7
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
test eax, eax
sete cl
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.100163a0
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.10002b40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002b40
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0x14