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

Disassembly:
push ebp
lea ebp, [esp - 0x3b0]
sub esp, 0x430
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp + 0x3ac], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x206
push eax
lea ecx, [ebp - 0x6a]
push ecx
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x6c], ax
call fcn.004661f0
xor edx, edx
push 0x206
push edx
lea eax, [ebp + 0x19e]
push eax
mov word [ebp + 0x19c], dx
call fcn.004661f0
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dx, word [ebp - 0x6c]
mov word [ebp + 0x19c], dx
push str.ESTOUT.SYS
lea edx, [ebp + 0x19c]
mov eax, 0x3a
mov ecx, 0x5c
push edx
mov word [ebp + 0x19e], ax
mov word [ebp + 0x1a0], cx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x86
push 1
push 0
push 0
push 0xc0000000
lea ecx, [ebp + 0x19c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41878e
push 0x100000
mov dword [ebp - 0x7c], 0
call fcn.004435be
mov edi, eax
add esp, 4
test edi, edi
jne 0x418795
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41891c
push 0x100000
push 0
push edi
call fcn.004661f0
mov eax, dword [ebp + 0x3b8]
add esp, 0xc
test eax, eax
jbe 0x4187cc
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 0x4187b1
mov ebx, dword [ebp - 0x70]
push edi
call fcn.004435c9
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp + 0x3a8], ax
mov byte [ebp + 0x3aa], al
mov al, byte [ebp + 0x19c]
lea ecx, [ebp + 0x3a4]
xor edi, edi
push ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
mov byte [ebp + 0x3a5], 0x3a
mov byte [ebp + 0x3a6], 0x5c
mov byte [ebp + 0x3a7], 0
mov byte [ebp + 0x3a4], al
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jg 0x41885b
lea eax, [esi + esi]
call fcn.00466e80
mov edi, esp
test edi, edi
je 0x41885b
push esi
push edi
push 0xffffffffffffffff
lea eax, [ebp + 0x3a4]
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 0x41885d
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 0x41887a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x78]
imul edi, dword [ebp - 0x74]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4188d0
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00466e80
mov esi, esp
test esi, esi
je 0x4188cd
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
lea ecx, [ebp + 0x19c]
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 0x4188d2
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.004183c0
lea edx, [ebp + 0x19c]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x41878e
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.004665d5
add esp, 4
mov eax, 1
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3ac]
xor ecx, ebp
call fcn.00466e70
add ebp, 0x3b0
mov esp, ebp
pop ebp
ret 4