Function at 0x4d1040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526d52
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x584f80]
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__27]
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 + 0x58]
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 0x4d1277
test ebx, ebx
jne 0x4d11a0
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004c2030
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.004c2740
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 + 0x48]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 7
jbe 0x4d1149
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4d113f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d1189
push ecx
push edx
call fcn.0050686b
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 0x4d1199
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4d118f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4d118f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
mov eax, esi
jmp 0x4d1280
lea ecx, [edi + 0xc]
push ebx
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
test esi, esi
jne 0x4d11c2
mov esi, dword [ebp - 0x4c]
mov ecx, edi
mov eax, dword [edi]
push ebx
push esi
push dword [ebp - 0x44]
call dword [eax + 0x44]
jmp 0x4d1280
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 + 0x60]
test esi, esi
je 0x4d127b
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x60]
push 0x5394a4
push eax
call fcn.0045eef0
push 0x539448
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 3
push eax
call fcn.0045ee50
push ebx
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
call fcn.0045ee50
push 0x539444
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 5
push eax
call fcn.0045ee50
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__26]
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 0x4d1280
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.00506d06
mov esp, ebp
pop ebp
ret 0x10