Function at 0x415a50
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a52b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00406cf0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
or eax, 1
or eax, 0x20006
push eax
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0040b120
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x415c2e
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406bd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407080
mov byte [ebp - 4], 2
push 0x53df14
lea ecx, [ebp - 0x94]
call fcn.00406cf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00418da0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x94]
call fcn.00407a00
lea ecx, [ebp - 0x34]
call fcn.0040cda0
sub eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.004156a0
push eax
lea ecx, [ebp - 0x64]
call fcn.00406bd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.0040b120
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00418f00
push 0x53df18
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00418f00
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x34]
or edx, 1
or edx, 0x20006
push edx
push 0
lea ecx, [ebp - 0x4c]
call fcn.0040b120
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x415bc6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.00407a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407aa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00407a00
jmp 0x415d13
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x64]
call fcn.0040b120
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x415c0a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.00407a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407aa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00407a00
jmp 0x415d13
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.00407a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407aa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00407a00
mov dword [ebp + 0xc], 4
cmp dword [ebp + 0xc], 0
je 0x415cce
push 1
push 3
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x144]
call fcn.0040e080
mov byte [ebp - 4], 5
push 0x53df1c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x7c]
call fcn.0040b120
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x24], 0xffffffff
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x144]
call fcn.00415670
push 4
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.0040b120
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x415cbd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.0040e4f0
jmp 0x415d13
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.0040e4f0
jmp 0x415d04
lea ecx, [ebp - 0x7c]
call fcn.00404da0
shl eax, 1
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040b120
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.0040b120
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x415d04
jmp 0x415d13
mov dword [ebp - 0x28], 1
xor edx, edx
jne 0x415a99
cmp dword [ebp - 0x20], 0
je 0x415d23
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x415d33
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], 0
je 0x415d3f
mov byte [ebp - 0xd], 1
jmp 0x415d43
mov byte [ebp - 0xd], 0
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0x15], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00407a00
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8