Function at 0x1004bf80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c690
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1008d414]
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 [0x1008d3d4]
mov ebx, eax
mov eax, dword [0x100a21f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a21f4
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100a21f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a21f4
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 0x1004bfff
xor eax, eax
jmp 0x1004c029
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x1004c014
xor eax, eax
jmp 0x1004c029
lea edi, [eax + eax]
mov eax, edi
call fcn.10050610
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.100099b6
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1004bb20
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x1004c24c
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 0x1004c126
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x20]
push 0x10075208
push esi
mov dword [ebp - 0x34], edi
call fcn.10052fdc
add esp, 8
test eax, eax
jne 0x1004c140
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 0x1004c242
mov eax, dword [ebp - 0x28]
test eax, eax
mov edi, eax
je 0x1004c208
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x1004c208
lea esi, [eax + eax]
mov eax, esi
call fcn.10050610
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.100099b6
test eax, eax
je 0x1004c20a
mov edx, SysReAllocString
mov ecx, eax
xor esi, esi
mov edi, edi
cmp byte [ecx], 0
je 0x1004c1e4
add ecx, 1
sub edx, 1
jne 0x1004c110
jmp 0x1004c1e8
jg 0x1004c12f
mov esi, eax
jmp 0x1004c24c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1004c24c
push str.REG_EXPAND_SZ
push esi
call fcn.10052fdc
add esp, 8
test eax, eax
jne 0x1004c15e
mov dword [ebp - 0x14], 2
jmp 0x1004c0a0
push str.REG_DWORD
push esi
call fcn.10052fdc
add esp, 8
test eax, eax
je 0x1004c18c
test esi, esi
je 0x1004c099
cmp word [esi], 0
je 0x1004c099
mov esi, 0x80070057
jmp 0x1004c24c
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 0x1004c1b7
lea eax, [ebp - 0x30]
push eax
jmp 0x1004c246
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 0x1004c23c
jle 0x1004c1dc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebp - 0x30]
push eax
jmp 0x1004c246
test edx, edx
jne 0x1004c1ff
mov esi, 0x80070057
xor ecx, ecx
test esi, esi
jge 0x1004c211
xor ecx, ecx
test esi, esi
jge 0x1004c211
lea eax, [ebp - 0x30]
push eax
jmp 0x1004c246
mov ecx, SysReAllocString
sub ecx, edx
jmp 0x1004c1ef
xor eax, eax
mov esi, 0x80070057
jmp 0x1004c1f3
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 0x1004c242
jle 0x1004c23a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp - 0x30]
push ecx
jmp 0x1004c246
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 0x1004c26f
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 0x1004c292
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call fcn.1004f9a8
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x1004c2aa
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.1004f347
mov esp, ebp
pop ebp
ret