Function at 0x1012e6f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x438]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0xf013f
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x448], ecx
push eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x444], ebx
push eax
push ebx
push dword [0x1024e350]
xor edi, edi
mov dword [ebp - 0x438], 0x400
push SysReAllocString
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], 3
call fcn.10003510
test eax, eax
jne 0x1012e9d4
push eax
push 0x10219d7c
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x408], 7
mov word [ebp - 0x41c], ax
call fcn.10008240
cmp dword [ebp - 0x43c], 3
jne 0x1012e9e9
cmp dword [ebp - 0x438], edi
je 0x1012e9e9
cmp byte [ebp - 0x404], 0
je 0x1012e9e9
mov al, byte [ebp - 0x3fc]
test al, 0xc
je 0x1012e998
and al, 3
mov byte [ebp - 0x3fc], al
cmp dword [ebp + 8], edi
jne 0x1012e81b
test esi, esi
je 0x1012e7ec
mov eax, dword [esi]
push edi
push ebx
push 0x200
push dword [0x1024e350]
push SysReAllocString
push esi
call dword [eax + 0x14]
push dword [ebp - 0x438]
lea eax, [ebp - 0x404]
push eax
push 3
push ebx
push dword [0x1024e350]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x1012e81b
mov dword [ebp - 0x440], 1
push dword [ebp - 0x438]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.10006f20
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x41c]
cmp eax, esi
je 0x1012e8d1
mov edx, dword [ebp - 0x408]
cmp edx, 8
jb 0x1012e887
mov ecx, dword [ebp - 0x41c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1012e87d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012ea20
push edx
push ecx
call fcn.102134ff
add esp, 8
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0x418], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x410], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x40c], eax
xor eax, eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x408], ebx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x1012e8dd
mov ebx, dword [ebp - 0x408]
mov edi, dword [ebp - 0x41c]
lea ecx, [ebp - 0x434]
call fcn.1001d6d0
lea esi, [ebp - 0x41c]
cmp ebx, 8
jb 0x1012e8f5
mov esi, edi
push dword [0x1024e350]
lea ecx, [ebp - 0x458]
call fcn.10004700
push eax
push 0x10219e0c
lea eax, [ebp - 0x454]
push SysReAllocString
push eax
call fcn.100e6bc0
add esp, 8
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.100233d0
add esp, 0xc
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.10023360
add esp, 0xc
push 0x102280ec
push esi
push dword [ebp - 0x444]
push dword [eax]
mov eax, dword [ebp - 0x448]
push dword [eax + 0x80]
call fcn.100286f0
mov ecx, eax
call fcn.100dd2f0
lea ecx, [ebp - 0x44c]
call int.10008f10
lea ecx, [ebp - 0x450]
call int.10008f10
lea ecx, [ebp - 0x454]
call int.10008f10
lea ecx, [ebp - 0x458]
call int.10008f10
mov edi, dword [ebp - 0x440]
mov edx, dword [ebp - 0x408]
cmp edx, 8
jb 0x1012e9d4
mov ecx, dword [ebp - 0x41c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1012e9ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012ea1b
push edx
push ecx
call fcn.102134ff
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x408]
cmp edx, 8
jb 0x1012e9d4
mov ecx, dword [ebp - 0x41c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1012e9ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1012e9ca
call fcn.10200ab0
call fcn.10200ab0
int3