Function at 0x4ab4b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d97e2
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4fefc0]
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 0x4ab6e7
test ebx, ebx
jne 0x4ab610
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00499350
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00499a60
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 0x4ab5b9
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ab5af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab5f9
push ecx
push edx
call fcn.004bf0b8
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 0x4ab609
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ab5ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4ab5ff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
mov eax, esi
jmp 0x4ab6f0
lea ecx, [edi + 0xc]
push ebx
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
test esi, esi
jne 0x4ab632
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 0x4ab6f0
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 0x4ab6eb
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x60]
push 0x4e5cc4
push eax
call fcn.00466ab0
push 0x4e5c68
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 3
push eax
call fcn.00466a10
push ebx
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
call fcn.00466a10
push 0x4e5c64
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 5
push eax
call fcn.00466a10
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 0x4ab6f0
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.004bf553
mov esp, ebp
pop ebp
ret 0x10