Function at 0x4070e0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x214]
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x434
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0x28c
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetTempPathW_returned_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.00401dd0
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0x28d
xor eax, eax
cmp ebx, 0x103
setbe al
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x41c]
mov dword [esp], eax
mov edi, ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 4], str.GetTempPathW_return_value__lu_should_be_less_than__Iu_n
call fcn.00401dd0
xor eax, eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5821c8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0x292
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetTempFileNameW_returned_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.00401dd0
mov edi, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000080
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x80010000
call edi
sub esp, 0x1c
mov dword [ebp - 0x424], eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0x29c
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateFile_returned_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x424], 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 5
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call edi
sub esp, 0x1c
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0x2a6
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateFile_returned_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401dd0
lea eax, [ebp - 0x420]
mov dword [esp], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xaa
mov dword [esp + 4], str._assembly_xmlns_urn:schemas_microsoft_com:asm.v1__manifestVersion_1.0___assemblyIdentity_version_1.0.0.0___name_Wine.Test__type_win32____assemblyIdentity___assembly_
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
call edi
xor edx, edx
xor eax, eax
sub esp, 4
mov dword [ebp + eax - 0x210], edx
add eax, 4
cmp eax, 0x1c
jb 0x407305
lea eax, [ebp - 0x214]
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x214], 0x20
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateActCtxW]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xc04
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateActCtxW_returned_error__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401dd0
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], 0xc05
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.CreateActCtxW_returned__p_n
call fcn.00401dd0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReleaseActCtx]
mov eax, dword [ebp - 0x424]
sub esp, 4
mov dword [esp], eax
call edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret