Function at 0x625ce080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
cmp dword [eax + 0x14], 1
mov dword [ebp - 0x1c], 0
je 0x625ce33a
mov edi, dword [eax + 0x18]
mov esi, eax
mov dword [esp], edx
mov ebx, edx
test edi, edi
jne 0x625ce1f8
mov ecx, dword [sym.imp.oleaut32.dll_SysStringLen]
mov dword [ebp - 0x38], ecx
call ecx
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x34], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x30], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x625ce344
mov dword [esp], ebx
mov ecx, dword [ebp - 0x38]
call ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
sub esp, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
sub esp, 0x20
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x625ce192
cmp dword [ebp - 0x1c], ebx
je 0x625ce1bb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp eax, 5
je 0x625ce2e0
jbe 0x625ce1d8
mov edi, 0x800a003a
cmp eax, 0x50
je 0x625ce1bb
cmp eax, 0xb7
jne 0x625ce2ea
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 0x800a0035
cmp eax, 2
je 0x625ce1bb
cmp eax, 3
jne 0x625ce2ea
mov edi, 0x800a004c
jmp 0x625ce1bb
mov edi, dword [sym.imp.oleaut32.dll_SysStringByteLen]
call edi
lea edx, [ebp - 0x1c]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x625ce2c8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp eax, 5
je 0x625ce330
jbe 0x625ce2a0
mov edi, 0x800a003a
cmp eax, 0x50
je 0x625ce1c7
cmp eax, 0xb7
je 0x625ce1c7
mov edi, 0x80004005
test byte [0x625d3028], 1
je 0x625ce1c7
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_error_code:__ld_n
mov dword [esp + 8], str.create_error
mov dword [esp + 4], 0x625d3028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x625ce1c7
mov edi, 0x800a0035
cmp eax, 2
je 0x625ce1c7
cmp eax, 3
jne 0x625ce25e
lea esp, [ebp - 0xc]
mov edi, 0x800a004c
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call edi
xor edi, edi
sub esp, 4
cmp eax, dword [ebp - 0x1c]
jne 0x625ce231
jmp 0x625ce1c7
mov edi, 0x800a0046
jmp 0x625ce1bb
mov edi, 0x80004005
test byte [0x625d3028], 1
je 0x625ce1bb
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_error_code:__ld_n
mov dword [esp + 8], str.create_error
mov dword [esp + 4], 0x625d3028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x625ce1bb
mov edi, 0x800a0046
jmp 0x625ce1c7
mov edi, 0x800a0036
jmp 0x625ce1c7
mov edi, 0x8007000e
jmp 0x625ce1c7