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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x457b86
push eax
mov eax, 0x2044
mov dword fs:[0], esp
call fcn.00443b20
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 [0x469c54]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [0x469c50]
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 0x41e8cd
cmp word [esp + 0x50], bx
je 0x41e8cd
cmp dword [esp + 0x14], ebx
jbe 0x41e8cd
mov edx, dword [0x463058]
lea eax, [esp + 0x50]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
mov dword [esp + 0x10], edx
je 0x41e792
lea ecx, [esp + 0x54]
shr ecx, 0x10
jne 0x41e756
xor eax, eax
lea edx, [esp + 0x54]
mov ax, dx
lea ecx, [esp + 0x10]
push eax
call fcn.00406f90
jmp 0x41e792
lea eax, [esp + 0x54]
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x41e792
push esi
lea ecx, [esp + 0x14]
call fcn.00403db0
test eax, eax
je 0x41e792
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x41e792
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, 0x46354c
mov dword [esp + 0x205c], ebx
test ecx, ecx
jne 0x41e7a6
xor eax, eax
jmp 0x41e7ad
push 0x46354c
call ebp
push 0x46354c
push eax
lea ecx, [esp + 0x18]
call fcn.00407290
mov eax, dword [0x469c58]
lea ecx, [esp + 0x10]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00407290
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop ebp
je 0x41e865
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
call fcn.004375d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2058], 1
xor esi, esi
call fcn.00437e50
test eax, eax
je 0x41e82c
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
push edx
push edi
lea ecx, [esp + 0x24]
call fcn.00437610
test eax, eax
jne 0x41e83e
lea eax, [esp + 0x24]
push eax
call fcn.00439810
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2058], bl
call fcn.00437600
jmp 0x41e865
mov eax, dword [esp + 0x20]
cmp eax, 3
je 0x41e84c
cmp eax, 2
jne 0x41e851
mov esi, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2058], bl
call fcn.00437600
cmp esi, ebx
jne 0x41e89c
mov al, byte [0x46aed0]
test al, 1
jne 0x41e890
mov dl, al
mov ecx, 0x46aee0
or dl, 1
mov byte [0x46aed0], dl
call fcn.00433620
push 0x403fb0
call fcn.00442500
add esp, 4
push 0x26
mov ecx, 0x46aee0
call fcn.004338f0
mov eax, dword [esp + 0xc]
mov edx, dword [0x46305c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41e904
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41e904
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
jmp 0x41e904
mov al, byte [0x46aed0]
test al, 1
jne 0x41e8f8
mov dl, al
mov ecx, 0x46aee0
or dl, 1
mov byte [0x46aed0], dl
call fcn.00433620
push 0x403fb0
call fcn.00442500
add esp, 4
push 0x25
mov ecx, 0x46aee0
call fcn.004338f0
mov ecx, dword [esp + 0x2050]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2050
ret