Function at 0x418da0
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 [0x4bcb20]
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.00465ec0
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x396]
push eax
mov word [ebp + 0x394], dx
call fcn.00465ec0
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 0x418e8e
push 0x100000
mov dword [ebp - 0x7c], 0
call fcn.004432be
mov edi, eax
add esp, 4
test edi, edi
jne 0x418e95
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41901c
push 0x100000
push 0
push edi
call fcn.00465ec0
mov eax, dword [ebp + 0x7a8]
add esp, 0xc
test eax, eax
jbe 0x418ecc
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 0x418eb1
mov ebx, dword [ebp - 0x70]
push edi
call fcn.004432c9
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 0x418f5b
lea eax, [esi + esi]
call fcn.00466b50
mov edi, esp
test edi, edi
je 0x418f5b
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 0x418f5d
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 0x418f7a
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 0x418fd0
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00466b50
mov esi, esp
test esi, esi
je 0x418fcd
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 0x418fd2
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.00418ac0
lea edx, [ebp + 0x394]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x418e8e
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.004662a5
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.00466b40
add ebp, 0x7a0
mov esp, ebp
pop ebp
ret 4