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

Disassembly:
push 0xffffffffffffffff
push 0x46eeb1
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4871a0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [0x48b9d0]
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.00404d20
mov edi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x240], 1
call fcn.0040dec0
mov byte [esp + 0x240], 0
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x48b9c0
je 0x42c683
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42c683
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.004501ef
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call fcn.00450893
mov ebp, eax
mov eax, dword [0x490174]
add esp, 4
mov dword [esp + 0x24], ebp
cmp dword [eax - 8], esi
jne 0x42c777
push 0x208
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.00453e20
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 0x42c777
mov ebx, 0x478038
lea esi, [esp + 0x14]
call fcn.0040d470
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, 0x490174
call fcn.0040e190
lea ecx, [esp + 0x2c]
push ecx
mov edx, ecx
push edx
call ebp
mov ebx, eax
mov esi, 0x490170
call fcn.0040e190
mov eax, dword [esp + 0x24]
shl eax, 0x14
cdq
push edx
push eax
mov eax, dword [0x490170]
call fcn.004272d0
mov esi, eax
lea eax, [edi - 0xc]
add esp, 8
mov byte [esp + 0x240], 0
cmp eax, 0x48b9c0
je 0x42c76b
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42c76b
push edi
call fcn.004501ef
add esp, 4
test esi, esi
jne 0x42c83d
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 0x42c7f3
mov ecx, dword [0x478030]
mov edx, dword [0x478034]
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 0x42c7f3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea edi, [esp + 0x1c]
lea esi, [esp + 0x24]
call fcn.00427210
test eax, eax
je 0x42c7f1
mov ecx, dword [esp + 0x20]
mov eax, ebp
shl eax, 0x14
cdq
cmp ecx, edx
jg 0x42c7fb
jl 0x42c7f1
mov edx, dword [esp + 0x1c]
cmp edx, eax
ja 0x42c7fb
xor esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x42c783
jmp 0x42c83d
mov eax, dword [0x490170]
cmp dword [eax - 8], 0
jne 0x42c816
lea edi, [esp + 0x24]
mov eax, 0x490170
call fcn.0040e210
jmp 0x42c82e
movzx esi, word [esp + 0x24]
mov edi, 0x490170
call fcn.0040df40
mov ecx, dword [0x490170]
mov word [ecx], si
mov edi, 0x490170
mov eax, 0x490174
call fcn.0040dec0
mov esi, dword [esp + 0x18]
lea edx, [esi - 0xc]
cmp edx, 0x48b9c0
je 0x42c863
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42c863
push esi
call fcn.004501ef
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.0044fcda
add esp, 0x230
ret