Function at 0x1004dd50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ea60
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1009140c]
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 [0x100913cc]
mov ebx, eax
mov eax, dword [0x100a61f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a61f4
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100a61f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a61f4
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 0x1004ddcf
xor eax, eax
jmp 0x1004ddf9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1004dde4
xor eax, eax
jmp 0x1004ddf9
lea edi, [eax + eax]
mov eax, edi
call fcn.100524c0
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.10009ac2
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1004d5a0
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x1004e01c
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 0x1004def6
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x20]
push 0x10078318
push esi
mov dword [ebp - 0x34], edi
call fcn.10054f5c
add esp, 8
test eax, eax
jne 0x1004df10
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 0x1004e012
mov eax, dword [ebp - 0x28]
test eax, eax
mov edi, eax
je 0x1004dfd8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x1004dfd8
lea esi, [eax + eax]
mov eax, esi
call fcn.100524c0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10009ac2
test eax, eax
je 0x1004dfda
mov edx, SysReAllocString
mov ecx, eax
xor esi, esi
mov edi, edi
cmp byte [ecx], 0
je 0x1004dfb4
add ecx, 1
sub edx, 1
jne 0x1004dee0
jmp 0x1004dfb8
jg 0x1004deff
mov esi, eax
jmp 0x1004e01c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1004e01c
push str.REG_EXPAND_SZ
push esi
call fcn.10054f5c
add esp, 8
test eax, eax
jne 0x1004df2e
mov dword [ebp - 0x14], 2
jmp 0x1004de70
push str.REG_DWORD
push esi
call fcn.10054f5c
add esp, 8
test eax, eax
je 0x1004df5c
test esi, esi
je 0x1004de69
cmp word [esi], 0
je 0x1004de69
mov esi, 0x80070057
jmp 0x1004e01c
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 0x1004df87
lea eax, [ebp - 0x30]
push eax
jmp 0x1004e016
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 0x1004e00c
jle 0x1004dfac
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebp - 0x30]
push eax
jmp 0x1004e016
test edx, edx
jne 0x1004dfcf
mov esi, 0x80070057
xor ecx, ecx
test esi, esi
jge 0x1004dfe1
xor ecx, ecx
test esi, esi
jge 0x1004dfe1
lea eax, [ebp - 0x30]
push eax
jmp 0x1004e016
mov ecx, SysReAllocString
sub ecx, edx
jmp 0x1004dfbf
xor eax, eax
mov esi, 0x80070057
jmp 0x1004dfc3
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 0x1004e012
jle 0x1004e00a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp - 0x30]
push ecx
jmp 0x1004e016
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 0x1004e03f
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 0x1004e062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call fcn.10051858
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x1004e07a
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.100511f7
mov esp, ebp
pop ebp
ret