Function at 0x401300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov dword [ebp - 0x1c], 0
mov edi, dword [sym.imp.kernelbase.dll_GetModuleHandleW]
mov dword [esp], 0
call edi
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov esi, dword [sym.imp.kernelbase.dll_LoadStringW]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
jne 0x401360
test byte [section..data], 1
jne 0x4014b3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x24], eax
call eax
test eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
je 0x401357
mov dword [esp], 0
call edi
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call esi
lea eax, [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0x500
call dword [sym.imp.kernelbase.dll_FormatMessageW]
sub esp, 0x1c
mov ebx, eax
test eax, eax
jne 0x401450
mov edx, dword fs:[0x18]
cmp dword [edx + 0x34], 0xeb
je 0x401450
mov esi, dword [sym.imp.ucrtbase.dll_free]
test byte [section..data], 1
je 0x4014a3
mov eax, edi
mov dword [ebp - 0x20], edx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0xc], str.Could_not_format_string:_le_lu__fmt_s_n
mov dword [esp + 8], 0x405090
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
jmp 0x4014a3
mov eax, dword [sym.imp.kernelbase.dll_GetStdHandle]
mov edi, dword [ebp - 0x14]
mov dword [esp], 0xfffffff5
mov dword [ebp - 0x20], eax
call eax
lea ecx, [ebp - 0x10]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_WriteConsoleW]
mov esi, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0x14
test eax, eax
je 0x4014f0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_LocalFree]
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.LoadString_failed_with__ld_n
mov dword [esp + 8], str.output_message
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernelbase.dll_GetOEMCP]
mov dword [ebp - 0x2c], edx
call edx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernelbase.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [ebp - 0x30], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x28], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x24]
call eax
mov edx, dword [ebp - 0x2c]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x401494
call edx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
call eax
mov eax, dword [ebp - 0x20]
sub esp, 0x20
mov dword [esp], 0xfffffff5
call eax
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
lea edx, [ebp - 0x10]
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp + 0x10], 0
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call esi
jmp 0x401494