Function at 0x10047a10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066020
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 1
call dword [0x10086284]
mov ebx, eax
mov eax, dword [0x1009a864]
mov edx, dword [eax + 0xc]
mov ecx, 0x1009a864
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1009a864]
mov edx, dword [eax + 0xc]
mov ecx, 0x1009a864
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
cmp esi, edi
mov byte [ebp - 4], 3
jne 0x10047a8f
xor eax, eax
jmp 0x10047ab9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x10047aa4
xor eax, eax
jmp 0x10047ab9
lea edi, [eax + eax]
mov eax, edi
call fcn.1004c100
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.10009d6d
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.100475b0
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x10047cdc
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10047bb6
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x20]
push 0x1006ecdc
push esi
mov dword [ebp - 0x34], edi
call fcn.1004ed4d
add esp, 8
test eax, eax
jne 0x10047bd0
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 8
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov esi, eax
test esi, esi
jl 0x10047cd2
mov eax, dword [ebp - 0x28]
test eax, eax
mov edi, eax
je 0x10047c98
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x10047c98
lea esi, [eax + eax]
mov eax, esi
call fcn.1004c100
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10009d6d
test eax, eax
je 0x10047c9a
mov edx, SysReAllocString
mov ecx, eax
xor esi, esi
mov edi, edi
cmp byte [ecx], 0
je 0x10047c74
add ecx, 1
sub edx, 1
jne 0x10047ba0
jmp 0x10047c78
jg 0x10047bbf
mov esi, eax
jmp 0x10047cdc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10047cdc
push str.REG_EXPAND_SZ
push esi
call fcn.1004ed4d
add esp, 8
test eax, eax
jne 0x10047bee
mov dword [ebp - 0x14], 2
jmp 0x10047b30
push str.REG_DWORD
push esi
call fcn.1004ed4d
add esp, 8
test eax, eax
je 0x10047c1c
test esi, esi
je 0x10047b29
cmp word [esi], 0
je 0x10047b29
mov esi, 0x80070057
jmp 0x10047cdc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 3
push 0
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov esi, eax
test esi, esi
jge 0x10047c47
lea eax, [ebp - 0x30]
push eax
jmp 0x10047cd6
mov edx, dword [ebp - 0x18]
push 4
lea ecx, [ebp - 0x28]
push ecx
push 4
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10047ccc
jle 0x10047c6c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebp - 0x30]
push eax
jmp 0x10047cd6
test edx, edx
jne 0x10047c8f
mov esi, 0x80070057
xor ecx, ecx
test esi, esi
jge 0x10047ca1
xor ecx, ecx
test esi, esi
jge 0x10047ca1
lea eax, [ebp - 0x30]
push eax
jmp 0x10047cd6
mov ecx, SysReAllocString
sub ecx, edx
jmp 0x10047c7f
xor eax, eax
mov esi, 0x80070057
jmp 0x10047c83
mov edx, dword [ebp - 0x18]
add ecx, 1
push ecx
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10047cd2
jle 0x10047cca
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp - 0x30]
push ecx
jmp 0x10047cd6
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x18]
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 0x10047cff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
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 0x10047d22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call fcn.1004b68c
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x10047d3a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ada8
mov esp, ebp
pop ebp
ret