Function at 0x4248d0
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x451371
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463070]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [0x4674cc]
mov dword [esp + 0x18], eax
xor esi, esi
mov ecx, str.IDS_SPACE_SIZE
lea edi, [esp + 0x24]
mov dword [esp + 0x240], esi
call fcn.00403080
mov edi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x240], 1
call fcn.00408d10
mov byte [esp + 0x240], 0
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x4674bc
je 0x424973
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424973
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call fcn.004349fb
mov ebp, eax
mov eax, dword [0x46b48c]
add esp, 4
mov dword [esp + 0x24], ebp
cmp dword [eax - 8], esi
jne 0x424a67
push 0x208
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.00437380
add esp, 0xc
push esi
push 0x26
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x424a67
mov ebx, 0x457784
lea esi, [esp + 0x14]
call fcn.00409580
mov byte [esp + 0x240], 2
mov edi, dword [esp + 0x14]
push edi
lea eax, [esp + 0x30]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x2c]
push edx
mov eax, edx
push eax
call ebp
mov ebx, eax
mov esi, 0x46b48c
call fcn.00409c70
lea ecx, [esp + 0x2c]
push ecx
mov edx, ecx
push edx
call ebp
mov ebx, eax
mov esi, 0x46b488
call fcn.00409c70
mov eax, dword [esp + 0x24]
shl eax, 0x14
cdq
push edx
push eax
mov eax, dword [0x46b488]
call fcn.00420780
mov esi, eax
lea eax, [edi - 0xc]
add esp, 8
mov byte [esp + 0x240], 0
cmp eax, 0x4674bc
je 0x424a5b
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424a5b
push edi
call fcn.0043406a
add esp, 4
test esi, esi
jne 0x424b2d
mov ebp, dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov edx, 1
mov ecx, ebx
shl edx, cl
test eax, edx
je 0x424ae3
mov ecx, dword [0x45777c]
mov edx, dword [0x457780]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x24]
lea eax, [ebx + 0x41]
push ecx
mov dword [esp + 0x2c], edx
mov word [esp + 0x28], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x424ae3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea edi, [esp + 0x1c]
lea esi, [esp + 0x24]
call fcn.004206c0
test eax, eax
je 0x424ae1
mov ecx, dword [esp + 0x20]
mov eax, ebp
shl eax, 0x14
cdq
cmp ecx, edx
jg 0x424aeb
jl 0x424ae1
mov edx, dword [esp + 0x1c]
cmp edx, eax
ja 0x424aeb
xor esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x424a73
jmp 0x424b2d
mov eax, dword [0x46b488]
cmp dword [eax - 8], 0
jne 0x424b06
lea edi, [esp + 0x24]
mov eax, 0x46b488
call fcn.00409cf0
jmp 0x424b1e
movzx esi, word [esp + 0x24]
mov edi, 0x46b488
call fcn.00409960
mov ecx, dword [0x46b488]
mov word [ecx], si
mov edi, 0x46b488
mov eax, 0x46b48c
call fcn.00408d10
mov esi, dword [esp + 0x18]
lea edx, [esi - 0xc]
cmp edx, 0x4674bc
je 0x424b53
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424b53
push esi
call fcn.0043406a
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00433af9
add esp, 0x230
ret