Function at 0x1004d480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ddb0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1008f414]
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 [0x1008f3d4]
mov ebx, eax
mov eax, dword [0x100a41f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a41f4
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100a41f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a41f4
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 0x1004d4ff
xor eax, eax
jmp 0x1004d529
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1004d514
xor eax, eax
jmp 0x1004d529
lea edi, [eax + eax]
mov eax, edi
call fcn.10051ab0
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.1000974d
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1004cfe0
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x1004d74c
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 0x1004d626
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x20]
push 0x100772e0
push esi
mov dword [ebp - 0x34], edi
call fcn.1005454c
add esp, 8
test eax, eax
jne 0x1004d640
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 0x1004d742
mov eax, dword [ebp - 0x28]
test eax, eax
mov edi, eax
je 0x1004d708
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x1004d708
lea esi, [eax + eax]
mov eax, esi
call fcn.10051ab0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.1000974d
test eax, eax
je 0x1004d70a
mov edx, SysReAllocString
mov ecx, eax
xor esi, esi
mov edi, edi
cmp byte [ecx], 0
je 0x1004d6e4
add ecx, 1
sub edx, 1
jne 0x1004d610
jmp 0x1004d6e8
jg 0x1004d62f
mov esi, eax
jmp 0x1004d74c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1004d74c
push str.REG_EXPAND_SZ
push esi
call fcn.1005454c
add esp, 8
test eax, eax
jne 0x1004d65e
mov dword [ebp - 0x14], 2
jmp 0x1004d5a0
push str.REG_DWORD
push esi
call fcn.1005454c
add esp, 8
test eax, eax
je 0x1004d68c
test esi, esi
je 0x1004d599
cmp word [esi], 0
je 0x1004d599
mov esi, 0x80070057
jmp 0x1004d74c
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 0x1004d6b7
lea eax, [ebp - 0x30]
push eax
jmp 0x1004d746
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 0x1004d73c
jle 0x1004d6dc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebp - 0x30]
push eax
jmp 0x1004d746
test edx, edx
jne 0x1004d6ff
mov esi, 0x80070057
xor ecx, ecx
test esi, esi
jge 0x1004d711
xor ecx, ecx
test esi, esi
jge 0x1004d711
lea eax, [ebp - 0x30]
push eax
jmp 0x1004d746
mov ecx, SysReAllocString
sub ecx, edx
jmp 0x1004d6ef
xor eax, eax
mov esi, 0x80070057
jmp 0x1004d6f3
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 0x1004d742
jle 0x1004d73a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp - 0x30]
push ecx
jmp 0x1004d746
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 0x1004d76f
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 0x1004d792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call fcn.10050e98
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x1004d7aa
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.10050837
mov esp, ebp
pop ebp
ret