Function at 0x416da0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44de66
push eax
mov eax, 0x2044
mov dword fs:[0], esp
call fcn.0043a440
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x52]
mov word [esp + 0x50], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x50]
push eax
mov eax, dword [0x45e634]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [0x45e630]
push edx
push eax
mov esi, 1
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x1000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x10], esi
jne 0x416fdd
cmp word [esp + 0x50], bx
je 0x416fdd
cmp dword [esp + 0x14], ebx
jbe 0x416fdd
mov edx, dword [0x458050]
lea eax, [esp + 0x50]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
mov dword [esp + 0x10], edx
je 0x416ea2
lea ecx, [esp + 0x54]
shr ecx, 0x10
jne 0x416e66
xor eax, eax
lea edx, [esp + 0x54]
mov ax, dx
lea ecx, [esp + 0x10]
push eax
call fcn.004076b0
jmp 0x416ea2
lea eax, [esp + 0x54]
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x416ea2
push esi
lea ecx, [esp + 0x14]
call fcn.00403db0
test eax, eax
je 0x416ea2
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x416ea2
mov edi, dword [esp + 0x10]
mov eax, ecx
lea esi, [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4584dc
mov dword [esp + 0x205c], ebx
test ecx, ecx
jne 0x416eb6
xor eax, eax
jmp 0x416ebd
push 0x4584dc
call ebp
push 0x4584dc
push eax
lea ecx, [esp + 0x18]
call fcn.00407d00
mov eax, dword [0x45e638]
lea ecx, [esp + 0x10]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00407d00
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop ebp
je 0x416f75
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
call fcn.0042de20
lea ecx, [esp + 0x18]
mov byte [esp + 0x2058], 1
xor esi, esi
call fcn.0042e6a0
test eax, eax
je 0x416f3c
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
push edx
push edi
lea ecx, [esp + 0x24]
call fcn.0042de60
test eax, eax
jne 0x416f4e
lea eax, [esp + 0x24]
push eax
call fcn.00430060
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2058], bl
call fcn.0042de50
jmp 0x416f75
mov eax, dword [esp + 0x20]
cmp eax, 3
je 0x416f5c
cmp eax, 2
jne 0x416f61
mov esi, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2058], bl
call fcn.0042de50
cmp esi, ebx
jne 0x416fac
mov al, byte [0x45f8b0]
test al, 1
jne 0x416fa0
mov dl, al
mov ecx, 0x45f8c0
or dl, 1
mov byte [0x45f8b0], dl
call fcn.00429af0
push 0x403fb0
call fcn.00438cb0
add esp, 4
push 0x26
mov ecx, 0x45f8c0
call fcn.00429dc0
mov eax, dword [esp + 0xc]
mov edx, dword [0x458054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x417014
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417014
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
add esp, 4
jmp 0x417014
mov al, byte [0x45f8b0]
test al, 1
jne 0x417008
mov dl, al
mov ecx, 0x45f8c0
or dl, 1
mov byte [0x45f8b0], dl
call fcn.00429af0
push 0x403fb0
call fcn.00438cb0
add esp, 4
push 0x25
mov ecx, 0x45f8c0
call fcn.00429dc0
mov ecx, dword [esp + 0x2050]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2050
ret