Function at 0x4088f0
Capabilities:
Clear file content
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push edi
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
mov dword [0x63c618], eax
cmp ebx, 0xffffffff
jne 0x408970
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x408cc7
push 0
and eax, 6
or eax, 0x80
push eax
push 4
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call esi
mov dword [0x63c618], eax
cmp ebx, 0xffffffff
je 0x408cc7
cmp dword [0x63c794], 0
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x4089a2
push 0
push 0
push 0
push 0x7ee
push esi
call edi
push eax
push 0x7ed
push esi
call edi
push esi
call fcn.0040e870
add esp, 4
cmp dword [0x63c790], 0
je 0x4089b6
push 1
push esi
call fcn.0040d240
add esp, 8
push 0
push 0
push 0x7d6
push esi
call edi
mov dword [ebp - 0xc], eax
lea ecx, [eax + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0x886
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x408a09
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0x63c618], eax
jmp 0x408c98
mov eax, dword [ebp + 0x10]
lea esi, [eax + eax*4]
shl esi, 4
mov eax, dword [esi + 0x5dc518]
test al, 8
je 0x408ae1
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx*2 + 0x10]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40
call eax
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
push eax
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esi + 0x5dc518]
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], ecx
test dl, 0x20
je 0x408a90
lea ecx, [ebp - 8]
push 0
push ecx
push 2
test dl, 0x10
je 0x408a85
push 0x5debbc
jmp 0x408a8a
push 0x5debc0
push ebx
call eax
mov ecx, dword [ebp - 0x14]
test byte [esi + 0x5dc518], 0x10
mov esi, dword [ebp + 0x14]
je 0x408aaa
lea eax, [ecx + ecx]
push eax
push esi
push esi
call fcn.00552cfe
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x63c618], eax
call esi
push edi
call esi
mov esi, dword [ebp + 0x14]
jmp 0x408c98
test al, 2
je 0x408b1d
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test byte [esi + 0x5dc518], 4
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x408b0b
push 0
lea eax, [ebp - 8]
push eax
push 3
push 0x5debc4
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call esi
jmp 0x408c83
test al, 0x40
je 0x408c6b
mov eax, dword [esi + 0x5dc51c]
mov dword [ebp - 0x10], eax
lea eax, [ecx*2 + 0x10]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40
mov dword [ebp - 0x14], 0
call eax
mov esi, dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
mov dword [ebp - 4], eax
call esi
shr eax, 1
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xfde8
je 0x408b8e
cmp eax, 0xd698
je 0x408b8e
push edi
call esi
push eax
push 0
push edi
call fcn.00546400
add esp, 0xc
jmp 0x408bb8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
call esi
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xfde8
je 0x408c05
cmp eax, 0xd698
je 0x408c05
lea eax, [ebp - 0x14]
push eax
push 0
push edi
call esi
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0x400
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
jne 0x408c23
push 0
push 0
push edi
call esi
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov dword [ebp - 0x14], 0
jmp 0x408c26
push 0
push 0
push edi
call esi
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
jmp 0x408c26
mov esi, dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x14], 0
je 0x408c5b
push 0xc360
push str.MsgConv3
push 8
call fcn.00403430
add esp, 0xc
cmp eax, 1
je 0x408c5b
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [eax], 1
jmp 0x408c91
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [ebp - 8]
push eax
push esi
jmp 0x408c7b
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0x63c618], eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x408cc7
cmp dword [ebp + 0x18], 0
jne 0x408cbb
push 0
push 0
push 0x7de
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret