Function at 0x10097ea0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101437f0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], esi
call fcn.10099bb0
mov edi, dword [esp + 0x40]
add esp, 8
xor ebx, ebx
mov dword [esp + 0x18], esi
test edi, edi
je 0x10097f3f
mov ecx, dword [esp + 0x3c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x10097f3f
mov eax, dword [esp + 0x18]
mov edx, dword [eax + edi + 0x14]
lea ecx, [esi + edx*2 + 2]
add ebx, 1
add eax, 0x1c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov esi, ecx
jmp 0x10097f00
add esi, 2
mov dword [esp + 0x14], esi
jne 0x10097f9b
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push esi
push 0x10152144
push 7
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1009814d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ebx, [esp + 0x34]
mov dword [esp + 0x50], 0xffffffff
call fcn.100036e0
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esp + 0x28], vtable.MemoryControl.0
mov dword [esp + 0x2c], 0
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 1
call fcn.100998f0
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x100980b7
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x100980b3
test ecx, ecx
mov esi, dword [esp + 0x10]
mov edx, dword [esi + ecx + 0x14]
mov dword [esp + 0x24], edx
je 0x10098020
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1009802a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
cmp dword [esi + ecx + 0x18], 8
jb 0x10098037
mov ecx, dword [esi + ecx + 4]
jmp 0x1009803b
lea ecx, [esi + ecx + 4]
mov eax, dword [esp + 0x24]
lea edx, [eax + eax]
mov eax, dword [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x20]
add ecx, eax
push ecx
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x44]
add esp, 0xc
test ecx, ecx
je 0x10098082
mov edi, dword [esp + 0x3c]
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
mov esi, dword [esp + 0x10]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10098090
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + ecx + 0x14]
mov eax, dword [esp + 0x18]
add ebx, 1
add esi, 0x1c
lea edx, [eax + edx*2 + 2]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], edx
jmp 0x10097fd0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x20]
push esi
push eax
mov eax, dword [edx + 4]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1009813b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100980f0
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov dword [esp + 0x50], 0xffffffff
mov esi, dword [esp + 0x38]
test esi, esi
je 0x10098124
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x1009811b
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x10098108
mov esi, dword [esp + 0x38]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1009814d
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov dword [esp + 0x50], 0xffffffff
mov esi, dword [esp + 0x38]
test esi, esi
je 0x10098181
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x10098178
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x10098165
mov esi, dword [esp + 0x38]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc