Function at 0x40fe80
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4b7b70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x40a]
push ecx
mov word [ebp - 0x40c], ax
call fcn.00460290
add esp, 0xc
push 0x200
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov al, byte [ebp - 0x40c]
lea ecx, [ebp - 0xc]
push ecx
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x40ff23
lea eax, [edi + edi]
call fcn.00460f20
mov ebx, esp
test ebx, ebx
je 0x40ff23
push edi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
xor edx, edx
push eax
push edx
push 3
mov word [ebx], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x40ff25
xor eax, eax
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x418]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ecx, dword [ebp - 0x418]
imul ecx, dword [ebp - 0x414]
mov eax, dword [esi + 0x10]
cmp eax, ecx
jne 0x40ffec
mov ebx, dword [esi + 0x20]
mov dl, byte [ebp - 0x40c]
imul ebx, eax
mov al, 0x5c
push ebx
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], al
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0
call fcn.0043d7b9
mov edi, eax
add esp, 4
test edi, edi
je 0x40ffec
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x3fffffff
mov dword [ebp - 0x410], eax
jle 0x40ffa7
xor eax, eax
jmp 0x40ffc3
add eax, eax
call fcn.00460f20
mov ecx, dword [ebp - 0x410]
mov eax, esp
push 3
push ecx
lea edx, [ebp - 0xc]
push edx
push eax
call fcn.0040f3d0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x10]
push ecx
push edx
push ebx
push edi
push eax
push 3
mov ecx, esi
call fcn.0040ee00
test eax, eax
jne 0x40fff3
push edi
call fcn.0043d7ae
add esp, 4
xor eax, eax
jmp 0x41008c
push ebx
push edi
mov ecx, esi
call fcn.0040ed20
test eax, eax
je 0x40ffe3
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x41001b
push eax
call fcn.0043d7ae
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043d7b9
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x410051
push edi
call fcn.0043d7ae
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
xor eax, eax
jmp 0x41008c
mov ecx, dword [esi + 8]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.00460290
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
push edx
lea eax, [edi + 0xc]
push eax
push ecx
call fcn.00460310
push edi
call fcn.0043d7ae
mov eax, 1
add esp, 0x1c
mov dword [esi + 0xc], eax
lea esp, [ebp - 0x424]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460f10
mov esp, ebp
pop ebp
ret