Function at 0x425fc0
Capabilities:
Check if file exists
Get common file path
Get disk information
Get disk size
Get program files directory
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2ba1
mov eax, dword fs:[0]
push eax
sub esp, 0xa70
mov eax, dword [0x4d61d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa7c], eax
mov dword [ebp - 0xa70], 0
test eax, eax
je 0x426331
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004693b0
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004693b0
add esp, 0x18
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0xa74]
mov dword [ebp - 0xa74], 0x208
lea ecx, [ebp - 0xa69]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x14]
push eax
push str.Setup_Path
call fcn.00425de0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4260a9
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4260a9
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0046fa9c
add esp, 0xc
jmp 0x426227
cmp dword [esi + 0x10], 0
jne 0x4260d4
lea ecx, [ebp - 0xa69]
call fcn.00425e80
push eax
lea ecx, [ebp - 0xa68]
call fcn.0040c890
mov dword [ebp - 4], 0
mov ebx, 1
jmp 0x4260ec
push esi
lea ecx, [ebp - 0xa38]
call fcn.00403590
mov dword [ebp - 4], 1
mov ebx, 2
push eax
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa70], ebx
call fcn.00403590
mov dword [ebp - 4], 3
test bl, 2
je 0x42611e
and ebx, 0xfffffffd
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa70], ebx
call fcn.00404220
mov byte [ebp - 4], 4
test bl, 1
je 0x42613b
and ebx, 0xfffffffe
lea ecx, [ebp - 0xa68]
mov dword [ebp - 0xa70], ebx
call fcn.00404220
push 1
push 0x26
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov byte [ebp - 4], 5
or ebx, 4
mov dword [ebp - 0xa70], ebx
lea ecx, [ebp - 0xa38]
mov esi, dword [ebp - 0xa40]
xor eax, eax
mov word [ebp - 0xa38], ax
mov dword [ebp - 0xa28], 0
mov dword [ebp - 0xa24], 0
lea eax, [esi + 1]
mov dword [ebp - 0xa28], 0
push eax
mov dword [ebp - 0xa24], 7
call fcn.00420590
push 1
push 0x4a9994
lea ecx, [ebp - 0xa38]
call fcn.00407570
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
push esi
cmovae eax, dword [ebp - 0xa50]
lea ecx, [ebp - 0xa38]
push eax
call fcn.00407570
cmp dword [ebp - 0xa24], 8
lea eax, [ebp - 0xa38]
cmovae eax, dword [ebp - 0xa38]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00470710
and ebx, 0xfffffffb
add esp, 0xc
mov dword [ebp - 0xa70], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa38]
call fcn.00404220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa50]
call fcn.00404220
lea eax, [ebp - 0x220]
push eax
call fcn.00419d10
add esp, 4
test eax, eax
je 0x426319
push 0x800
lea eax, [ebp - 0xa20]
push 0
push eax
call fcn.004693b0
add esp, 0xc
lea eax, [ebp - 0xa20]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ax, word [ebp - 0xa20]
lea esi, [ebp - 0xa20]
test ax, ax
je 0x426310
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
movzx ecx, ax
nop dword [eax + eax]
mov eax, dword [0x4ac5d8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4ac5dc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call ebx
cmp eax, 3
jne 0x4262e6
lea eax, [ebp - 0xa78]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0xa78], xmm0
push eax
call edi
test eax, eax
je 0x4262e6
cmp dword [ebp - 0xa74], 0
ja 0x42634d
jb 0x4262e6
cmp dword [ebp - 0xa78], 0x12c00000
ja 0x42634d
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4262f0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x426290
xor eax, eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xa7c]
call fcn.0046fa9c
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a373
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
jmp 0x426312