Function at 0x41cc00
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc0aa
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xe98
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xea0], esi
xor eax, eax
mov dword [ebp - 0xea8], esi
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x51c79c
mov word [esi], ax
call fcn.0041a5b0
lea eax, [esi + 0x1c]
mov dword [ebp - 4], 0
push 2
push eax
mov dword [esi + 0x18], 0
call fcn.00490ac7
lea eax, [esi + 0x4c]
push 2
push eax
call fcn.00490ac7
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 2
push eax
call fcn.004cbffd
add esp, 0x14
lea eax, [ebp - 0x330]
push 0x104
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x330]
push 0
push 0x104
push eax
call fcn.0049ab10
lea ecx, [ebp - 0x330]
mov dword [ebp - 0xe68], 0
add esp, 0xc
mov dword [ebp - 0xe64], 0xf
mov byte [ebp - 0xe78], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ccf4
sub ecx, edx
lea eax, [ebp - 0x330]
push ecx
push eax
lea ecx, [ebp - 0xe78]
call fcn.00420560
push 0x104
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0xe5c]
lea eax, [ebp - 0x438]
push dword [ebp - 0xe60]
push str._Id_:_I64d__md_:__s_
push eax
call fcn.00420c10
add esp, 0x14
lea eax, [ebp - 0x228]
push 0x20a
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x51cac8
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x228]
mov byte [ebp - 0xe99], 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x41cdb9
lea eax, [ebp - 0x228]
push eax
call edi
test al, 0x10
jne 0x41cdca
push 0
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cde8
lea eax, [ebp - 0x228]
push eax
call edi
test al, 0x10
jne 0x41ce54
push 0x20a
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x51cac8
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ce43
lea eax, [ebp - 0x228]
push eax
call edi
test al, 0x10
jne 0x41ce54
push 0
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x51cad0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ce70
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0041a5b0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cebb
lea eax, [ebp - 0x228]
push eax
call edi
test al, 0x10
jne 0x41cebb
mov ecx, esi
call fcn.0041dac0
mov al, byte [ebp - 0xe99]
jmp 0x41cebd
xor al, al
cmp dword [esi + 0x18], 0
jne 0x41cf53
push 0x20a
lea eax, [ebp - 0x648]
push 0
push eax
call fcn.004bcaf0
mov eax, dword [esi + 0x10]
add esp, 0xc
add eax, eax
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.004bcd60
mov eax, 0x614
mov dword [ebp - 0xe7e], 0
mov word [ebp - 0xe88], ax
add esp, 0xc
lea eax, [ebp - 0x648]
mov dword [ebp - 0xe8c], 0
mov dword [ebp - 0xe90], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xe98]
movlpd qword [ebp - 0xe86], xmm0
push eax
mov dword [ebp - 0xe94], 3
mov dword [ebp - 0xe98], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x41cf5b
test al, al
jne 0x41d1ac
push 0x10
call fcn.0048e9bb
add esp, 4
mov dword [ebp - 0xea0], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 4
mov ecx, eax
movups xmmword [eax], xmm0
call fcn.00495ca0
mov byte [ebp - 4], 3
mov dword [esi + 0x18], eax
call fcn.0041e290
push 0x800
lea eax, [ebp - 0xe48]
mov dword [ebp - 0xe54], 1
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
mov dword [ebp - 0xe50], 0x800
lea eax, [ebp - 0xe50]
mov dword [ebp - 0xe4c], 0
push eax
lea eax, [ebp - 0xe48]
push eax
lea eax, [ebp - 0xe54]
push eax
push 0x51cad4
push str.SoftwareMicrosoftWindowsCurrentVersionFLYSVR
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41d02b
lea eax, [ebp - 0xe48]
mov ecx, eax
mov dword [ebp - 0xea4], eax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d000
lea eax, [ebp - 0xe4c]
sub ecx, edx
push eax
lea eax, [ebp - 0xea4]
sar ecx, 1
push eax
mov dword [ebp - 0xea0], ecx
call fcn.0049d2c0
add esp, 8
push 2
push 0x51cb5c
lea ecx, [ebp - 0xe94]
mov dword [ebp - 0xe84], 0
mov dword [ebp - 0xe80], 0xf
mov byte [ebp - 0xe94], 0
call fcn.00420560
mov byte [ebp - 4], 5
lea edi, [esi + 0x1c]
mov eax, dword [ebp - 0xe4c]
push edi
mov dword [ebp - 0xea0], eax
call fcn.00490ae8
add esp, 4
test eax, eax
je 0x41d081
push eax
call fcn.004906a9
add esp, 4
push dword [ebp - 0xea0]
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0xe94]
push eax
call fcn.00497d30
mov ecx, esi
call fcn.0041d290
push edi
call fcn.00490b0d
add esp, 4
test eax, eax
je 0x41d0b3
push eax
call fcn.004906a9
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xe80]
cmp edx, 0x10
jb 0x41d0f1
mov ecx, dword [ebp - 0xe94]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d0e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d202
push edx
push ecx
call fcn.0048e9ad
add esp, 8
push 2
push 0x51cb60
lea ecx, [ebp - 0xe94]
mov dword [ebp - 0xe84], 0
mov dword [ebp - 0xe80], 0xf
mov byte [ebp - 0xe94], 0
call fcn.00420560
push edi
mov byte [ebp - 4], 6
call fcn.00490ae8
add esp, 4
test eax, eax
je 0x41d138
push eax
call fcn.004906a9
add esp, 4
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0xe78]
push eax
lea eax, [ebp - 0xe94]
push eax
call fcn.00497d80
mov ecx, esi
call fcn.0041d290
push edi
call fcn.00490b0d
add esp, 4
test eax, eax
je 0x41d16b
push eax
call fcn.004906a9
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xe80]
cmp edx, 0x10
jb 0x41d1a5
mov ecx, dword [ebp - 0xe94]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d19b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d207
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov ecx, esi
call fcn.0041d290
mov edx, dword [ebp - 0xe64]
cmp edx, 0x10
jb 0x41d1e2
mov ecx, dword [ebp - 0xe78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d1d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d20c
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
int3