Function at 0x42cbd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6838
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5603e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x80004005
call ecx
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], ebx
call edx
mov esi, eax
test esi, esi
je 0x42cde3
inc dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0
jl 0x42cde3
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x42cdc5
mov eax, dword [ebp - 0x20]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x14]
lea edx, [ebp + 8]
push edx
push esi
push eax
push edi
call ecx
test eax, eax
js 0x42cde3
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [edx + 0x2c]
push eax
push edi
call ecx
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x42cdb2
mov ebx, dword [ebp + 0x14]
push 0x2001f
push ebx
push 0x80000001
lea ecx, [ebp - 0x30]
call fcn.00412570
test eax, eax
je 0x42ce15
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x42cd21
cmp dword [esi], 0
je 0x42cd11
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x42ccdd
mov eax, 1
jmp 0x42cd42
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42ccd6
mov edx, dword [esi]
push 0
push edx
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push 0x80000001
call eax
jmp 0x42cd42
cmp dword [esi + 4], 0
je 0x42ccd6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
jmp 0x42cd29
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42cdaf
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x42cd54
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0
test eax, eax
jne 0x42cdb2
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 0x18]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push ecx
push edi
call edx
test ebx, ebx
je 0x42cd9b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x18]
push edx
push edi
call eax
mov dword [ebp + 8], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x20]
push eax
mov eax, dword [ecx + 0x28]
push edx
push edi
call eax
mov esi, eax
test esi, esi
jne 0x42cc39
mov eax, dword [ebp + 8]
test eax, eax
je 0x42cdf3
mov ecx, dword [edi]
mov edx, dword [ecx + 0x18]
push eax
push edi
call edx
test ebx, ebx
je 0x42cdfe
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x30]
jmp 0x42cd68