Function at 0x417050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ccc0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x80], ebx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
mov eax, esi
jb 0x4170ad
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edi, dword [edx]
mov esi, dword [edi]
cmp esi, edi
je 0x4171e4
mov edi, edi
mov ecx, dword [esi + 0x10]
lea ebx, [ebp - 0x16]
mov eax, 0xcccccccd
add ebx, 0xfffffffe
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [ebx], cx
mov ecx, edx
test ecx, ecx
jne 0x4170c6
xor eax, eax
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x16]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], 7
cmp ebx, eax
je 0x417139
sub eax, ebx
sar eax, 1
cmp eax, 7
ja 0x417128
lea ebx, [eax + eax]
mov dword [ebp - 0x60], eax
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
call fcn.00437af0
add esp, 0xc
xor eax, eax
mov word [ebp + ebx - 0x70], ax
jmp 0x417139
push ebx
mov byte [ebp - 0x78], 0
lea ecx, [ebp - 0x70]
push dword [ebp - 0x78]
push eax
call fcn.00401990
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
jb 0x417149
mov eax, dword [ebp - 0x70]
push dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040a810
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.00401520
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
cmp ecx, edx
jae 0x417185
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
cmp edx, 8
jb 0x41717c
mov eax, dword [ebp - 0x58]
mov dword [eax + ecx*2], 0x3b
jmp 0x417197
push 0x3b
mov byte [ebp - 0x7c], 0
push dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0040ac30
cmp byte [esi + 0xd], 0
jne 0x4171d9
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4171be
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4171d9
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4171b0
jmp 0x4171d9
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4171d7
cmp esi, dword [eax + 8]
jne 0x4171d7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4171c7
mov esi, eax
cmp esi, edi
jne 0x4170c0
mov ebx, dword [ebp - 0x80]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
jb 0x4171f0
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.GamesInstalled
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test eax, eax
je 0x41727d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push str.RegSetValueEx_failed_with__i
push eax
call fcn.00411e60
mov edi, dword [ebp - 0x84]
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x417275
mov ecx, edi
call fcn.00401520
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x70]
call fcn.00401520
lea ecx, [ebp - 0x58]
call fcn.00401520
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042207c
mov esp, ebp
pop ebp
ret