Function at 0x100048c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042fc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2120
call fcn.10036cd0
mov eax, dword [0x1005454c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
xor eax, ebp
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], esp
push ecx
mov ecx, ebx
mov dword [ebp - 0x2130], ebx
mov dword [ebp - 0x2120], esi
mov dword [ebp - 0x2128], edi
mov dword [ebp - 0x212c], eax
mov dword [ebp - 0x211c], 0
call fcn.10002930
test eax, eax
jl 0x10004c26
lea edx, [ebp - 0x211c]
push edx
lea eax, [ebp - 0x2014]
push eax
call fcn.10002770
add esp, 8
test eax, eax
jne 0x1000495a
mov eax, 0x80020009
jmp 0x10004c26
mov ecx, ebx
call fcn.100028d0
lea ecx, [ebp - 0x2014]
push ecx
mov ecx, ebx
call fcn.10002930
test eax, eax
jl 0x10004c26
movzx eax, word [ebp - 0x211c]
cmp eax, 0x13
jg 0x10004b2d
je 0x10004ae4
cmp eax, 8
je 0x10004acc
cmp eax, 0x11
jne 0x10004c0e
lea edx, [ebp - 0x2014]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
mov dword [ebp - 0x2124], ebx
jne 0x10004a1a
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x211c], esi
mov dword [ebp - 0x2118], 0
mov dword [ebp - 4], 3
push esi
lea ecx, [ebp - 0x2118]
mov byte [ebp - 4], 4
call fcn.10003d20
jmp 0x100049fb
mov edi, dword [ebp - 0x2118]
test edi, edi
jne 0x10004a24
lea eax, [ebp - 0x2114]
test eax, eax
je 0x10004a1a
lea ecx, [ebp - 0x2118]
call fcn.10002c20
mov eax, 0x80004005
jmp 0x10004c26
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor esi, esi
test ebx, ebx
rep stosb byte es:[edi], al
jle 0x10004a7e
lea esp, [esp]
mov ecx, dword [ebp - 0x2118]
xor edx, edx
mov dx, word [ebp + esi*2 - 0x2014]
mov eax, esi
shr eax, 1
lea edi, [eax + ecx]
push edx
call fcn.10002820
mov ecx, esi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [edi]
shl al, cl
add esp, 4
or dl, al
inc esi
cmp esi, ebx
mov byte [edi], dl
jl 0x10004a40
mov ecx, dword [ebp - 0x211c]
mov edx, dword [ebp - 0x2118]
mov eax, dword [ebp - 0x2120]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x2128]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x2118]
lea edx, [ebp - 0x2114]
cmp eax, edx
je 0x10004bf9
lea ecx, [ebp - 0x2118]
call fcn.10002c20
jmp 0x10004bf9
push 1
lea eax, [ebp - 0x2014]
push eax
push edi
mov ecx, esi
call fcn.10002660
mov esi, eax
jmp 0x10004bf9
call dword [0x10053070]
lea ecx, [ebp - 0x2124]
push ecx
push 0
push 0
lea edx, [ebp - 0x2014]
push edx
mov dword [ebp - 0x2120], 0
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x2124]
push eax
push edi
mov ecx, esi
call fcn.10002640
lea ecx, [ebp - 0x2120]
mov esi, eax
call fcn.10002bb0
jmp 0x10004bf9
cmp eax, 0x4008
jne 0x10004c0e
lea ecx, [ebp - 0x2014]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov dword [ebp - 0x2118], ecx
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp - 0x2118]
mov byte [ebp - 4], 1
call fcn.10003cf0
mov edi, dword [ebp - 0x2118]
test edi, edi
je 0x10004bdf
cmp word [ebp - 0x2014], 0
lea esi, [ebp - 0x2014]
je 0x10004bb7
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
mov cx, word [esi]
cmp cx, 0x5c
jne 0x10004ba8
cmp word [eax], 0x30
jne 0x10004ba8
mov word [edi], 0
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x10004bb1
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x10004b81
mov eax, dword [ebp - 0x2128]
mov ecx, dword [ebp - 0x2120]
mov word [edi], 0
mov edx, dword [ebp - 0x2118]
push edx
push eax
call fcn.10002690
mov edi, dword [ebp - 0x2118]
mov esi, eax
jmp 0x10004be4
mov esi, 0xe
lea ecx, [ebp - 0x2114]
cmp edi, ecx
je 0x10004bf9
lea ecx, [ebp - 0x2118]
call fcn.10002c20
test esi, esi
je 0x10004c08
push esi
call fcn.100024c0
add esp, 4
jmp 0x10004c26
mov ebx, dword [ebp - 0x2130]
mov edx, dword [ebp - 0x212c]
push edx
mov ecx, ebx
call fcn.10002930
xor ecx, ecx
test eax, eax
setge cl
dec ecx
and eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003609d
mov esp, ebp
pop ebp
ret 0xc