Function at 0x417ca0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac880
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4f3168]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
call fcn.00416f70
test eax, eax
jne 0x417da2
call fcn.00417010
test eax, eax
jne 0x417da2
push 0x2001f
push esi
push 0x80000001
lea ecx, [ebp - 0x4c]
call fcn.00415010
test eax, eax
je 0x417d47
push 0
push 0
push 0x2001f
push 0
push 0
push esi
push 0x80000001
lea ecx, [ebp - 0x4c]
call fcn.00416180
test eax, eax
jne 0x417ea6
test edi, edi
jne 0x417d55
push 0x80004005
call fcn.00402400
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417d60
mov esi, dword [ebp - 0x4c]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [0x4b4024]
mov edi, eax
test esi, esi
je 0x417d96
push esi
call dword [0x4b4040]
xor esi, esi
xor ebx, ebx
test edi, edi
sete bl
jmp 0x417f10
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.00417f90
mov ebx, eax
lea eax, [ebp - 0x28]
add esp, 4
cmp eax, ebx
je 0x417dfd
cmp dword [ebp - 0x14], 8
jb 0x417de0
push dword [ebp - 0x28]
call fcn.0048bbcf
add esp, 4
xor eax, eax
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00415110
cmp dword [ebp - 0x2c], 8
jb 0x417e0e
push dword [ebp - 0x40]
call fcn.0048bbcf
add esp, 4
push 1
push 0x4b48c0
lea ecx, [ebp - 0x28]
call fcn.00415500
cmp word [esi], 0
jne 0x417e27
xor ecx, ecx
jmp 0x417e3f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417e30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00415500
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0x2001f
push eax
push 0x80000003
lea ecx, [ebp - 0x4c]
call fcn.00415010
test eax, eax
je 0x417ead
cmp dword [ebp - 0x14], 8
push 0
push 0
push 0x2001f
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000003
lea ecx, [ebp - 0x4c]
call fcn.00416180
test eax, eax
je 0x417ead
cmp dword [ebp - 0x14], 8
jb 0x417ea6
push dword [ebp - 0x28]
call fcn.0048bbcf
add esp, 4
mov esi, dword [ebp - 0x4c]
xor ebx, ebx
jmp 0x417f10
test edi, edi
jne 0x417ebb
push 0x80004005
call fcn.00402400
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417ec0
mov esi, dword [ebp - 0x4c]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0x50]
push esi
call dword [0x4b4024]
mov edi, eax
test esi, esi
je 0x417ef8
push esi
call dword [0x4b4040]
xor esi, esi
xor ebx, ebx
test edi, edi
sete bl
cmp dword [ebp - 0x14], 8
jb 0x417f10
push dword [ebp - 0x28]
call fcn.0048bbcf
add esp, 4
test esi, esi
je 0x417f1b
push esi
call dword [0x4b4040]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048caf4
mov esp, ebp
pop ebp
ret