Function at 0x41f970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f1b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x448178]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push ebx
lea ecx, [ebp - 0x20]
call fcn.0041eaa0
cmp dword [ebx + 4], 0xffffffff
mov dword [ebp - 4], 0
jne 0x41f9bd
mov ebx, 0x80004005
jmp 0x41fb1b
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [esi + 0x14], 9
jne 0x41fa79
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov dword [ebp - 0x18], vtable.MA::StringT_wchar_t__char_.0
mov dword [ebp - 0x14], ebx
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0041dae0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov eax, dword [ecx]
mov byte [ebp - 4], 2
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add ecx, 4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00409c50
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ebp - 0x10]
push edi
push 1
push ebx
push esi
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 0x80004005
test eax, eax
cmovne ebx, ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], vtable.MA::StringT_wchar_t__char_.0
test ecx, ecx
je 0x41fb1b
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 8]
jmp 0x41fb14
push 1
push 0
lea eax, [ebp + 0xc]
push 0
push eax
call fcn.0041ee90
add esp, 0x10
push 0
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004204f0
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
js 0x41fb00
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add ecx, 4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push edi
push 3
push 0
push esi
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [ebp - 0x14]
mov ecx, 0x80004005
test eax, eax
cmovne ebx, ecx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0
test eax, eax
je 0x41fb1b
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 8]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp byte [ebp - 0x20], 0
mov esi, dword [ebp - 0x1c]
jne 0x41fb3a
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41fb3a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 4], 0xffffffff
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8