Function at 0x40fc30
Capabilities:
Delete file
Get common file path
Get disk size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x4bdbb0]
xor eax, ebp
mov dword [ebp + 0x79c], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x3fe
push eax
lea ecx, [ebp - 0x6a]
push ecx
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x6c], ax
call fcn.00463850
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x396]
push eax
mov word [ebp + 0x394], dx
call fcn.00463850
add esp, 0x18
push 0x200
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dx, word [ebp - 0x6c]
mov word [ebp + 0x394], dx
push str.ESTOUT.SYS
lea edx, [ebp + 0x394]
mov eax, 0x3a
mov ecx, 0x5c
push edx
mov word [ebp + 0x396], ax
mov word [ebp + 0x398], cx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x86
push 1
push 0
push 0
push 0xc0000000
lea ecx, [ebp + 0x394]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fd1e
push 0x100000
mov dword [ebp - 0x7c], 0
call fcn.00440d39
mov edi, eax
add esp, 4
test edi, edi
jne 0x40fd25
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40feac
push 0x100000
push 0
push edi
call fcn.00463850
mov eax, dword [ebp + 0x7a8]
add esp, 0xc
test eax, eax
jbe 0x40fd5c
mov ebx, eax
push 0
lea edx, [ebp - 0x7c]
push edx
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, 1
jne 0x40fd41
mov ebx, dword [ebp - 0x70]
push edi
call fcn.00440d2e
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp + 0x798], ax
mov byte [ebp + 0x79a], al
mov al, byte [ebp + 0x394]
lea ecx, [ebp + 0x794]
xor edi, edi
push ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
mov byte [ebp + 0x795], 0x3a
mov byte [ebp + 0x796], 0x5c
mov byte [ebp + 0x797], 0
mov byte [ebp + 0x794], al
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jg 0x40fdeb
lea eax, [esi + esi]
call fcn.004644e0
mov edi, esp
test edi, edi
je 0x40fdeb
push esi
push edi
push 0xffffffffffffffff
lea eax, [ebp + 0x794]
xor edx, edx
push eax
push edx
push 3
mov word [edi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x40fded
xor eax, eax
push 0
push 0
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x40fe0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x78]
imul edi, dword [ebp - 0x74]
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40fe60
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004644e0
mov esi, esp
test esi, esi
je 0x40fe5d
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
lea ecx, [ebp + 0x394]
push ecx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x70]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40fe62
mov ebx, dword [ebp - 0x70]
xor eax, eax
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0040f950
lea edx, [ebp + 0x394]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x40fd1e
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x70]
push esi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], edx
call fcn.00463c35
add esp, 4
mov eax, 1
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x79c]
xor ecx, ebp
call fcn.004644d0
add ebp, 0x7a0
mov esp, ebp
pop ebp
ret 4