Function at 0x4ab4d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbd12
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x501fc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x48]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
push 1
push 2
push ecx
push dword [ebp - 0x44]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0x50]
lea ecx, [ebp - 0x48]
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [edi + 0x10], 0
je 0x4ab707
test ebx, ebx
jne 0x4ab630
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00499370
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00499a80
add esp, 0x10
cmp dword [ebp - 0x14], 7
lea esi, [ebp - 0x28]
mov eax, dword [edi]
lea edx, [ebp - 0x40]
cmova esi, dword [ebp - 0x28]
mov ecx, edi
cmp dword [ebp - 0x2c], 7
push esi
cmova edx, dword [ebp - 0x40]
push edx
push dword [ebp - 0x44]
mov byte [ebp - 4], 2
call dword [eax + 0x40]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 7
jbe 0x4ab5d9
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ab5cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab619
push ecx
push edx
call fcn.004bf0c8
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x4ab629
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ab61f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4ab61f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0c8
add esp, 8
mov eax, esi
jmp 0x4ab710
lea ecx, [edi + 0xc]
push ebx
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
test esi, esi
jne 0x4ab652
mov esi, dword [ebp - 0x4c]
mov ecx, edi
mov eax, dword [edi]
push ebx
push esi
push dword [ebp - 0x44]
call dword [eax + 0x3c]
jmp 0x4ab710
push dword [ebp - 0x50]
mov esi, dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x50]
push 1
push 0
push esi
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0x58]
test esi, esi
je 0x4ab70b
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x60]
push 0x4e8cbc
push eax
call fcn.00466ad0
push 0x4e8c60
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 3
push eax
call fcn.00466a30
push ebx
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
call fcn.00466a30
push 0x4e8c5c
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 5
push eax
call fcn.00466a30
add esp, 0x30
push eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x54]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x58]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x5c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x60]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor eax, eax
jmp 0x4ab710
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bf563
mov esp, ebp
pop ebp
ret 0x10