Function at 0x10093df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10110eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1013b024]
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.10094a80
mov edi, dword [esp + 0x40]
add esp, 8
xor ebx, ebx
mov dword [esp + 0x18], esi
test edi, edi
je 0x10093e8f
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 0x10093e8f
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 0x10093e50
add esi, 2
mov dword [esp + 0x14], esi
jne 0x10093eeb
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push esi
push 0x1011daac
push 7
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1009409d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ebx, [esp + 0x34]
mov dword [esp + 0x50], 0xffffffff
call fcn.100035d0
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.100947f0
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 0x10094007
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 0x10094003
test ecx, ecx
mov esi, dword [esp + 0x10]
mov edx, dword [esi + ecx + 0x14]
mov dword [esp + 0x24], edx
je 0x10093f70
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 0x10093f7a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
cmp dword [esi + ecx + 0x18], 8
jb 0x10093f87
mov ecx, dword [esi + ecx + 4]
jmp 0x10093f8b
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 0x10093fd2
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 0x10093fe0
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 0x10093f20
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 0x1009408b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10094040
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 0x10094074
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x1009406b
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 0x10094058
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 0x1009409d
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 0x100940d1
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x100940c8
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 0x100940b5
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