Function at 0x447780
Capabilities:
Check if file exists
Check os version
Get file attributes
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x619803
push eax
mov eax, dword [0x6d2354]
mov dword fs:[0], esp
sub esp, 0x2e8
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x4477b7
call fcn.00445570
test al, al
je 0x447e88
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xf0]
mov edx, dword [0x6d2354]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xf0]
push eax
push ecx
push esi
push esi
push str.LocalPathW
push edx
mov dword [esp + 0x2c], 0x208
call ebx
test eax, eax
jne 0x447811
mov ecx, dword [esp + 0x308]
lea eax, [esp + 0xf0]
push eax
call fcn.00402410
mov al, 1
jmp 0x447e8a
mov ecx, dword [0x6cd768]
mov dword [esp + 0x1c], ecx
mov eax, dword [0x6d2354]
lea edx, [esp + 0x14]
push edx
push esi
push esi
push esi
push 0x6a5d88
push eax
mov dword [esp + 0x318], esi
call ebx
test eax, eax
jne 0x44788d
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00603e09
lea edx, [esp + 0x14]
mov edi, eax
mov eax, dword [0x6d2354]
push edx
push edi
push esi
push esi
push 0x6a5d88
push eax
call ebx
test eax, eax
jne 0x44788d
mov ecx, dword [esp + 0x308]
push esi
push edi
call fcn.00402e00
lea ecx, [esp + 0x1c]
mov dword [esp + 0x300], 0xffffffff
call fcn.00603a3c
mov al, 1
jmp 0x447e8a
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x447b25
cmp dword [esp + 0x6c], 2
jne 0x447b25
cmp dword [esp + 0x60], 6
jb 0x447b25
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x58], ebp
je 0x447b25
push str.SHGetKnownFolderPath
push ebp
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x447af4
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], 0x374de290
mov word [esp + 0x38], 0x123f
mov word [esp + 0x3a], 0x4565
mov byte [esp + 0x3c], 0x91
mov byte [esp + 0x3d], 0x64
mov byte [esp + 0x3e], 0x39
mov byte [esp + 0x3f], 0xc4
mov byte [esp + 0x40], 0x92
mov byte [esp + 0x41], 0x5e
mov byte [esp + 0x42], 0x46
mov byte [esp + 0x43], 0x7b
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
push edx
push esi
push esi
push eax
call edi
cmp eax, esi
jne 0x447ae5
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x447ae5
push eax
call fcn.005e71bf
mov ecx, eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov edi, 0x6d1c9c
cmp word [eax + ecx*2 - 2], 0x5c
je 0x44797e
mov edi, 0x6a115c
mov edx, 0x6a112c
mov ebx, eax
test edx, edx
je 0x447aca
cmp eax, esi
je 0x447aca
cmp edi, esi
je 0x447aca
push esi
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov word [esp + 0x2c], si
call fcn.00402e00
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x304], 1
call fcn.0040e580
push edi
lea ecx, [esp + 0x50]
mov byte [esp + 0x304], 2
call fcn.0040e580
mov ebx, dword [esp + 0x308]
mov byte [esp + 0x300], 3
mov ecx, ebx
call fcn.00401070
mov eax, dword [esp + 0x40]
cmp eax, esi
mov edi, eax
jne 0x4479fd
lea edi, [esp + 0x44]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
call fcn.00402400
push eax
call fcn.005e71bf
push edi
mov ebp, eax
call fcn.005e71bf
add esi, ebp
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005ffe3f
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [ebx], edi
je 0x447a79
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x4c]
call fcn.00402400
push eax
lea ecx, [esp + 0x44]
call fcn.00402400
push eax
lea ecx, [esp + 0x28]
call fcn.00402400
push eax
mov eax, dword [ebx]
push esi
push eax
call fcn.005e714f
mov ecx, dword [ebx]
push ecx
call fcn.005e71bf
add esp, 0x18
mov dword [ebx + 8], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x300], 2
call fcn.00401070
lea ecx, [esp + 0x40]
mov byte [esp + 0x300], 1
call fcn.00401070
lea ecx, [esp + 0x20]
mov byte [esp + 0x300], 0
call fcn.00401070
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x58]
push eax
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [esp + 0x13], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x447afb
mov ebx, dword [esp + 0x308]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [esp + 0x13], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x447afb
mov ebx, dword [esp + 0x308]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x447afb
mov ebx, dword [esp + 0x308]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
test al, al
je 0x447b2c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x300], 0xffffffff
call fcn.00603a3c
mov al, 1
jmp 0x447e8a
mov ebx, dword [esp + 0x308]
lea edx, [esp + 0x2c]
push edx
push 0xf003f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x447e74
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
push str.Personal
push ecx
call edi
test eax, eax
jne 0x447e69
mov edx, dword [esp + 0x14]
lea eax, [edx*4 + 4]
push eax
call fcn.005ffe3f
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x447e69
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
push esi
push str.Personal
push edx
call edi
test eax, eax
jne 0x447e60
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov word [esp + 0x24], si
push ebp
mov byte [esp + 0x304], 4
call fcn.005e71bf
add esp, 4
cmp word [ebp + eax*2 - 2], 0x5c
mov edi, 0x6d1c9c
je 0x447bdb
mov edi, 0x6a115c
mov eax, str._s_sDownloads_
test eax, eax
je 0x447d08
cmp edi, esi
je 0x447d08
push esi
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], esi
mov word [esp + 0x4c], si
call fcn.00402e00
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x304], 5
call fcn.0040e580
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x304], 6
call fcn.0040e580
lea ecx, [esp + 0x20]
mov byte [esp + 0x300], 7
call fcn.00401070
mov edi, dword [esp + 0x4c]
cmp edi, esi
jne 0x447c49
lea edi, [esp + 0x50]
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x30]
call fcn.00402400
push eax
call fcn.005e71bf
push edi
mov ebx, eax
call fcn.005e71bf
add esi, ebx
lea esi, [eax + esi + 3]
lea ebx, [esi + esi]
push ebx
call fcn.005ffe3f
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x20], edi
je 0x447ccc
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x30]
call fcn.00402400
push eax
lea ecx, [esp + 0x50]
call fcn.00402400
push eax
lea ecx, [esp + 0x48]
call fcn.00402400
push eax
mov eax, dword [esp + 0x2c]
push esi
push eax
call fcn.005e714f
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005e71bf
add esp, 0x18
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x300], 6
call fcn.00401070
lea ecx, [esp + 0x4c]
mov byte [esp + 0x300], 5
call fcn.00401070
lea ecx, [esp + 0x40]
mov byte [esp + 0x300], 4
call fcn.00401070
mov ebx, dword [esp + 0x308]
xor esi, esi
mov edx, dword [esp + 0x20]
mov ecx, ebx
push edx
call fcn.00402410
mov eax, dword [ebx]
cmp eax, esi
jne 0x447d1d
lea eax, [ebx + 4]
push esi
push eax
call fcn.00496750
mov eax, dword [0x6a55ac]
add esp, 8
xor edi, edi
cmp eax, esi
mov eax, dword [ebx]
je 0x447d4d
cmp eax, esi
jne 0x447d3b
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x447e2c
jmp 0x447d88
cmp eax, esi
jne 0x447d54
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00402500
mov ecx, dword [esp + 0x20]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x447d77
mov edi, 1
lea ecx, [esp + 0x18]
call fcn.00603a3c
cmp edi, esi
je 0x447e2c
cmp dword [ebx], esi
je 0x447dea
push ebp
call fcn.005e71bf
add esp, 4
test eax, eax
je 0x447dea
mov eax, dword [ebx]
cmp eax, ebp
ja 0x447dea
push eax
call fcn.005e71bf
mov edx, dword [ebx]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, ebp
jb 0x447dea
push ebp
lea ecx, [esp + 0x34]
call fcn.0040e580
mov eax, dword [esp + 0x30]
mov byte [esp + 0x300], 8
cmp eax, esi
jne 0x447dcf
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.00402410
lea ecx, [esp + 0x30]
mov byte [esp + 0x300], 4
call fcn.00401070
jmp 0x447e2c
mov ecx, ebx
call fcn.00401070
push ebp
call fcn.005e71bf
add esp, 4
test eax, eax
je 0x447e2c
push ebp
call fcn.005e71bf
lea ecx, [eax + eax + 2]
push ecx
call fcn.005ffe3f
add esp, 8
cmp eax, esi
mov dword [ebx], eax
je 0x447e2c
push ebp
call fcn.005e71bf
mov edx, dword [ebx]
push ebp
push edx
mov dword [ebx + 8], eax
call fcn.005e7389
add esp, 0xc
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov byte [esp + 0x300], 0
call fcn.00401070
lea ecx, [esp + 0x1c]
mov dword [esp + 0x300], 0xffffffff
call fcn.00603a3c
mov al, 1
jmp 0x447e8a
push ebp
call fcn.005ffe68
add esp, 4
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x300], 0xffffffff
call fcn.00603a3c
xor al, al
mov ecx, dword [esp + 0x2f8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f4
ret