Function at 0x4171d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x43d064]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x448], ecx
mov eax, dword [ebp - 0x448]
add eax, 0x2e38
push eax
push 0x437680
push 0x208
lea ecx, [ebp - 0x418]
push ecx
call fcn.00402385
add esp, 0x10
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x41c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
lea ecx, [ebp - 0x418]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jl 0x41745a
mov edx, dword [ebp - 0x448]
movzx eax, word [edx + 0x2e18]
test eax, eax
jne 0x417271
mov ecx, dword [ebp - 0x448]
movzx eax, word [ecx + 0x2e1a]
cdq
mov ecx, 0x64
idiv ecx
mov dword [ebp - 0x44c], eax
jmp 0x417284
mov edx, dword [ebp - 0x448]
movzx eax, word [edx + 0x2e18]
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x434], ecx
push 4
lea edx, [ebp - 0x434]
push edx
push 4
push 0
push 0x4376d0
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x448]
movzx edx, word [ecx + 0x2e1a]
cmp edx, 0x64
jle 0x4172de
mov eax, dword [ebp - 0x448]
movzx eax, word [eax + 0x2e1a]
cdq
mov ecx, 0x64
idiv ecx
mov dword [ebp - 0x450], edx
jmp 0x4172f1
mov edx, dword [ebp - 0x448]
movzx eax, word [edx + 0x2e1a]
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x434], ecx
push 4
lea edx, [ebp - 0x434]
push edx
push 4
push 0
push 0x4376e0
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x448]
movzx edx, word [ecx + 0x2e24]
mov dword [ebp - 0x434], edx
push 4
lea eax, [ebp - 0x434]
push eax
push 4
push 0
push 0x4376ec
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 0x2e1c]
mov dword [ebp - 0x434], eax
push 4
lea ecx, [ebp - 0x434]
push ecx
push 4
push 0
push 0x4376f8
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x448]
add eax, 0x2bcc
push eax
call fcn.00402006
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp - 0x448]
add edx, 0x2bcc
push edx
push 1
push 0
push 0x437708
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 0x6e4]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x428]
sub eax, dword [ebp - 0x430]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x430]
mov dword [ebp - 0x434], eax
push 4
lea ecx, [ebp - 0x434]
push ecx
push 4
push 0
push 0x43771c
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x424]
sub eax, dword [ebp - 0x42c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x42c]
mov dword [ebp - 0x434], eax
push 4
lea eax, [ebp - 0x434]
push eax
push 4
push 0
push 0x437728
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x448]
cmp dword [eax + 0x324c], 0
je 0x417576
mov ecx, dword [ebp - 0x448]
mov edx, dword [ecx + 0x324c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x448]
cmp dword [eax + 0xb08], 0
je 0x4174fd
mov ecx, dword [ebp - 0x448]
mov ecx, dword [ecx + 0xb08]
call fcn.004144d0
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 0xb08]
mov dword [ebp - 0x444], eax
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x440], ecx
cmp dword [ebp - 0x440], 0
je 0x4174e3
push 1
mov edx, dword [ebp - 0x440]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x440]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x454], eax
jmp 0x4174ed
mov dword [ebp - 0x454], 0
mov eax, dword [ebp - 0x448]
mov dword [eax + 0xb08], 0
mov ecx, dword [ebp - 0x448]
mov edx, dword [ecx + 0x3250]
mov dword [ebp - 0x43c], edx
push 0x1388
push 1
lea eax, [ebp - 0x43c]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0x102
je 0x417539
jmp 0x417553
mov ecx, dword [ebp - 0x448]
mov edx, dword [ecx + 0x324c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
jmp 0x417578
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax + 0x324c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x448]
mov dword [edx + 0x324c], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f44
mov esp, ebp
pop ebp
ret