Function at 0x4aa960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0002
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4f4f98]
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 0x4aab97
test ebx, ebx
jne 0x4aaac0
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00498dc0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00499590
add esp, 0x10
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov eax, dword [edi]
lea edx, [ebp - 0x40]
cmovae esi, dword [ebp - 0x28]
mov ecx, edi
cmp dword [ebp - 0x2c], 8
push esi
cmovae edx, dword [ebp - 0x40]
push edx
push dword [ebp - 0x44]
mov byte [ebp - 4], 2
call dword [eax + 0x40]
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x4aaa69
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aaa5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4aaaa9
push edx
push ecx
call fcn.004be864
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4aaab9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aaaaf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4aaaaf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004be864
add esp, 8
mov eax, esi
jmp 0x4aaba0
lea ecx, [edi + 0xc]
push ebx
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
test esi, esi
jne 0x4aaae2
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 0x4aaba0
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 0x4aab9b
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x60]
push 0x4dcc74
push eax
call fcn.00466380
push 0x4dcc18
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 3
push eax
call fcn.004662e0
push ebx
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
call fcn.004662e0
push 0x4dcc14
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 5
push eax
call fcn.004662e0
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 0x4aaba0
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.004bee1d
mov esp, ebp
pop ebp
ret 0x10