Function at 0x45c210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470990
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
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
lea edx, [esp + 0x38]
mov dword [esp + 0x54], esi
call fcn.00460bd0
mov edi, dword [esp + 0x3c]
add esp, 4
xor ebx, ebx
mov dword [esp + 0x18], esi
nop
test edi, edi
je 0x45c2af
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 0x45c2af
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edi + 0x14]
lea edx, [esi + ecx*2 + 2]
add ebx, 1
add eax, 0x1c
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov esi, edx
jmp 0x45c270
add esi, 2
mov dword [esp + 0x14], esi
jne 0x45c333
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
push esi
push 0x474c4c
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x45c4e9
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x50], 0xffffffff
mov esi, dword [esp + 0x38]
test esi, esi
je 0x45c31c
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x45c313
jmp 0x45c300
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 0x45c300
mov esi, dword [esp + 0x38]
push esi
call sub.MFC80U.DLL_Ordinal_764
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 dword [esp + 0x28], vtable.MemoryControl.0
mov dword [esp + 0x2c], 0
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 1
call fcn.0045d5d0
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 0x45c44f
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 0x45c44b
test ecx, ecx
mov esi, dword [esp + 0x10]
mov eax, dword [esi + ecx + 0x14]
mov dword [esp + 0x24], eax
je 0x45c3b8
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 0x45c3c2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
cmp dword [esi + ecx + 0x18], 8
jb 0x45c3cf
mov ecx, dword [esi + ecx + 4]
jmp 0x45c3d3
lea ecx, [esi + ecx + 4]
mov edx, dword [esp + 0x24]
lea eax, [edx + edx]
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x24]
add edx, ecx
push edx
call sub.ntdll.dll_memcpy
mov ecx, dword [esp + 0x44]
add esp, 0xc
test ecx, ecx
je 0x45c41a
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 0x45c428
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + ecx + 0x14]
mov edx, dword [esp + 0x18]
add ebx, 1
add esi, 0x1c
lea eax, [edx + eax*2 + 2]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x45c368
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
push esi
push ecx
mov ecx, dword [eax + 4]
push 7
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x45c4d7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x45c488
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 0x45c31c
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x45c4b7
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 0x45c4a4
mov esi, dword [esp + 0x38]
push esi
call sub.MFC80U.DLL_Ordinal_764
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 0x45c4e9
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 0x45c51d
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x45c514
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 0x45c501
mov esi, dword [esp + 0x38]
push esi
call sub.MFC80U.DLL_Ordinal_764
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