Function at 0x4148c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535f60
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x59dbf0]
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.004122b0
cmp dword [ebx + 4], 0xffffffff
mov dword [ebp - 4], 0
jne 0x41490d
mov ebx, 0x80004005
jmp 0x414a6b
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [esi + 0x14], 9
jne 0x4149c9
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.004110d0
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.0040151c
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 0x414a6b
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 8]
jmp 0x414a64
push 1
push 0
lea eax, [ebp + 0xc]
push 0
push eax
call fcn.00412da0
add esp, 0x10
push 0
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004163c0
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
js 0x414a50
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 0x414a6b
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 0x414a8a
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x414a8a
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