Function at 0x1049c7e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 1]
mov ebx, ecx
push eax
mov dword [ebp - 0x14], ebx
call fcn.010045da
xor esi, esi
cmp eax, esi
jl 0x1049eb1
cmp byte [ebp - 1], 0
jne 0x1049cae
mov eax, 0x80070002
jmp 0x1049eb1
mov ax, word [ebp + 8]
cmp ax, si
push edi
jne 0x1049ccf
push dword [ebp + 0x18]
mov ecx, ebx
call fcn.01049c38
cmp eax, esi
jl 0x1049eb0
jmp 0x1049ea7
cmp ax, 3
jne 0x1049d07
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push dword [ebp + 0x18]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x1049ea7
jle 0x1049eb0
and eax, 0xffff
or eax, 0x80070000
jmp 0x1049eb0
cmp ax, 0xb
jne 0x1049d1f
cmp word [ebp + 0x10], si
mov edi, 0x106e344
jne 0x1049d31
mov edi, 0x106e338
jmp 0x1049d31
cmp ax, 8
jne 0x1049d4b
mov edi, dword [ebp + 0x10]
cmp edi, esi
jne 0x1049d31
mov edi, 0x102b8d8
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
pop ecx
push eax
xor eax, eax
cmp byte [ebp + 0x1c], al
push edi
setne al
inc eax
push eax
jmp 0x1049cdd
cmp ax, 0x2008
jne 0x1049e46
lea eax, [ebp - 0x10]
push eax
xor edi, edi
inc edi
push edi
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
cmp eax, esi
jl 0x1049eb0
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ebp + 0x1c], eax
jmp 0x1049dad
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
add esi, 4
test eax, eax
je 0x1049da7
lea edi, [edi + eax + 1]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 8]
jle 0x1049d94
add edi, edi
push edi
mov dword [ebp - 0x18], edi
call fcn.01001860
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x1c], esi
jne 0x1049dd1
mov eax, 0x8007000e
jmp 0x1049eb0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp + 0x1c], eax
jg 0x1049e17
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
test ebx, ebx
je 0x1049e06
mov eax, dword [edi]
test eax, eax
jne 0x1049df8
mov eax, 0x102b8d8
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea esi, [esi + ebx*2 + 2]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
add edi, 4
cmp eax, dword [ebp - 8]
jle 0x1049ddf
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x18]
and word [esi], 0
push dword [ebp - 0x1c]
push 7
push 0
push dword [ebp + 0x18]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1049cf2
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor esi, esi
jmp 0x1049ea7
cmp ax, 0x2011
jne 0x1049eab
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
inc edi
push edi
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [ebp + 0x1c]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
cmp eax, esi
jl 0x1049eb0
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x18]
push 3
push esi
push dword [ebp + 0x18]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
jne 0x1049cf2
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
jmp 0x1049eb0
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x18