Function at 0x1002be10
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1007bee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [0x10096d68]
push edi
call fcn.10051890
mov edi, eax
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x2c0]
lea esi, [ebp + 0x2bc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
je 0x1002be7b
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], 0xffffffff
mov byte [esi + 0x1d], bl
mov byte [esi + 0x1c], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp edi, ebx
je 0x1002bea7
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x1002bea7
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x20], 0xffffffff
mov byte [edi + 0x1d], bl
mov byte [edi + 0x1c], bl
jmp 0x1002bec0
mov eax, dword [0x10098990]
push 0x2000
push ebx
push ebx
push ebx
push 0xa7
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, esi
push ebx
mov dword [esi + 4], eax
call fcn.10001dc0
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [0x10096d68]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x30], 1
call fcn.100512b0
mov ecx, dword [eax]
push 0x10083aec
push ecx
lea edx, [esp + 0x1c]
push 0x10083a50
push edx
mov byte [esp + 0x3c], 2
call fcn.10004e20
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002bf37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [ebp + 0x174]
call fcn.10028db0
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push 0x9c54
push ebx
push 0x9c54
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x10096d68]
mov byte [esp + 0x30], 3
call fcn.100512b0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 4
call fcn.10004aa0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002bfbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
push 0x20006
push ebx
push str.CLSID08B13A8E_EB71_4421_B417_4EC0995D5BFC
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x1002c001
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0x10]
inc eax
push eax
push esi
push 1
push ebx
push ebx
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push ebx
push str.CLSIDDBBB7978_AF21_4EF4_9AD1_B2F4BC75696C
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002c03c
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0x10]
inc eax
push eax
push esi
push 1
push ebx
push ebx
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x10096d68]
lea eax, [esp + 0x1c]
push eax
call fcn.10051310
mov eax, dword [eax]
push eax
mov byte [esp + 0x30], 5
call fcn.10050fb0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002c07f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002c09e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002c0c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, ebx
mov dword [esp + 0x2c], 0xffffffff
je 0x1002c0d4
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret