Function at 0x4010d0
Capabilities:
Delete file
Get common file path
Get disk information
Get process heap flags
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x568
mov dword [ebp - 0x540], edx
mov dword [ebp - 0x544], eax
mov dword [esp], str.WINECONFIGDIR
call dword [sym.imp.ucrtbase.dll__wgetenv]
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov dword [ebp - 0x53c], eax
test ebx, ebx
je 0x40115e
mov dword [esp], ebx
call sym._wine_get_unix_file_name
mov ebx, eax
test eax, eax
je 0x40115e
lea esi, [ebp - 0x41c]
mov dword [esp], 0x104
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
push ecx
push ecx
test eax, eax
je 0x40115e
lea eax, [ebp - 0x214]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x40601c
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
jne 0x401166
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
push edx
push edx
test eax, eax
je 0x40115e
lea eax, [ebp - 0x520]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetShortPathNameA]
sub esp, 0xc
test eax, eax
je 0x40115e
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetShortPathNameW]
lea eax, [ebp - 0x214]
sub esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edx, eax
cmp eax, 0xffffffff
je 0x40115e
xor eax, eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub ecx, 1
imul eax, ecx, 0x1a
mov dword [ebp - 0x548], eax
mov eax, esi
jmp 0x401222
add eax, 2
cmp word [eax], 0
jne 0x40121f
mov dword [ebp - 0x54c], eax
lea edi, [ebp - 0x520]
xor eax, eax
or ecx, 0xffffffff
mov dword [ebp - 0x554], edx
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 0x540]
mov dword [ebp - 0x550], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x54c]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
sub eax, esi
sar eax, 1
mov edx, ecx
mov ecx, dword [ebp - 0x548]
sub ecx, dword [ebp - 0x550]
not edx
lea ecx, [ecx + edx + 0x296]
lea eax, [ecx + eax*4]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
mov dword [ebp - 0x548], eax
mov dword [esp + 4], str._autoexec__n
mov dword [esp], eax
call sym._sprintf
mov edx, dword [ebp - 0x554]
mov ecx, 0x19
add edi, eax
mov eax, 1
mov dword [ebp - 0x54c], edx
jmp 0x4012d9
sub ecx, 1
cmp ecx, 0xffffffff
je 0x4014e3
mov edx, eax
shl edx, cl
test dword [ebp - 0x53c], edx
jne 0x4012cd
add ecx, 0x61
mov dword [esp], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], str.mount__z__c_n
call sym._sprintf
mov edx, dword [ebp - 0x54c]
add edi, eax
xor ecx, ecx
mov eax, 1
shl eax, cl
test dword [ebp - 0x53c], eax
je 0x40134e
lea eax, [ecx + 0x61]
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.mount__c__s_dosdevices__c:_n
mov dword [ebp - 0x550], edx
mov dword [ebp - 0x54c], ecx
call sym._sprintf
mov edx, dword [ebp - 0x550]
mov ecx, dword [ebp - 0x54c]
add edi, eax
add ecx, 1
cmp ecx, 0x1a
jne 0x401306
movzx eax, word [ebp - 0x41c]
mov dword [esp], edi
mov dword [esp + 4], str._c:_ncd
mov dword [esp + 8], eax
mov dword [ebp - 0x53c], edx
call sym._sprintf
mov edx, dword [ebp - 0x53c]
add edi, eax
mov eax, esi
jmp 0x401386
add eax, 2
cmp word [eax], 0
jne 0x401383
sub eax, esi
mov dword [ebp - 0x53c], edx
xor esi, esi
sar eax, 1
mov dword [esp + 0x10], edi
shl eax, 2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x418]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfdf2
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
lea ebx, [edi + eax - 1]
mov dword [esp], ebx
mov dword [esp + 4], str._nconfig__securemode_n
call sym._sprintf
mov dword [esp + 4], str._s__s_n
add ebx, eax
mov eax, dword [ebp - 0x540]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x520]
mov dword [esp + 8], eax
call sym._sprintf
mov dword [esp + 4], str.exit_n
add ebx, eax
mov dword [esp], ebx
or ebx, 0xffffffff
call sym._sprintf
mov edi, dword [ebp - 0x548]
mov eax, esi
mov ecx, ebx
mov edx, dword [ebp - 0x53c]
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 0x548]
mov dword [esp + 0x10], 0
mov dword [esp], edx
mov dword [esp + 4], edi
mov eax, ecx
lea ecx, [ebp - 0x538]
not eax
mov dword [esp + 0xc], ecx
sub eax, 1
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x53c]
sub esp, 0x14
test eax, eax
jne 0x4014ee
mov dword [esp], edx
mov ebx, 0xc0000034
call dword [sym.imp.kernel32.dll_CloseHandle]
push eax
lea eax, [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x548]
push edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp - 0x544]
mov dword [esp], str.winevdm:__s_is_a_DOS_application__you_need_to_install_DOSBox._n
mov dword [esp + 4], eax
call dbg.wine_dbg_printf
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, dword [ebp - 0x54c]
jmp 0x401304
mov eax, esi
mov ecx, ebx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
sub eax, 1
cmp eax, dword [ebp - 0x538]
jne 0x40147b
lea eax, [ebp - 0x214]
mov dword [esp], eax
call sym._wine_get_unix_file_name
mov dword [esp + 4], 1
mov dword [ebp - 0x528], eax
lea eax, [ebp - 0x534]
mov dword [ebp - 0x534], str.dosbox
mov dword [ebp - 0x530], str._userconf
mov dword [ebp - 0x52c], str._conf
mov dword [ebp - 0x524], 0
mov dword [esp], eax
call dword [sym.imp.ntdll.dll___wine_unix_spawnvp]
mov edx, dword [ebp - 0x53c]
push ecx
mov ebx, eax
push ecx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x214]
push esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x548]
push edi
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test ebx, ebx
jns 0x4014da
jmp 0x4014c4