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

Disassembly:
mov eax, 0x432ba4
call fcn.0042f560
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x422cfa
lea esi, [ebx + 4]
push edi
push esi
mov dword [ebp - 0x20], esi
call fcn.0042acb3
pop ecx
test eax, eax
pop ecx
je 0x422d01
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x422d01
xor eax, eax
jmp 0x422ef2
mov eax, dword [0x4416fc]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x210]
mov dword [ebp - 4], edi
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x18], ecx
je 0x422e30
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x441738
mov eax, esi
test eax, eax
je 0x422d36
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x422d4e
xor eax, eax
jmp 0x422d51
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
mov esi, 0x441730
mov eax, esi
test eax, eax
je 0x422d69
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x10]
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 4]
je 0x422dff
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x422d94
xor eax, eax
jmp 0x422d97
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
mov ebx, 0x43a5a8
mov eax, ebx
test eax, eax
je 0x422daf
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x422dc7
xor eax, eax
jmp 0x422dca
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
mov ebx, 0x441714
mov eax, ebx
test eax, eax
je 0x422de2
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
lea ecx, [ebp - 0x14]
call fcn.00424256
mov eax, dword [esi + 4]
cmp dword [ebp - 0x14], eax
jne 0x422d86
mov ebx, dword [ebp + 8]
mov esi, 0x441714
mov eax, esi
test eax, eax
je 0x422e0d
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
lea ecx, [ebp - 0x18]
call fcn.00423f70
mov eax, dword [ebx + 0x210]
cmp dword [ebp - 0x18], eax
jne 0x422d28
xor edi, edi
push edi
push 0x20
push 4
push edi
push 1
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422ee3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
add eax, eax
cmp eax, edi
jne 0x422e66
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x422edc
lea esi, [eax + 2]
lea eax, [esi + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
push 2
push 0
lea eax, [edi + esi]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
test edi, edi
je 0x422edc
lea eax, [ebp - 0x14]
push 2
push eax
push edi
mov dword [ebp - 0x14], 0xfeff
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x10]
lea eax, [edi + 2]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 0x14
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422ed5
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp + 8], esi
jne 0x422ed5
mov dword [ebp - 0x1c], 1
push edi
call fcn.0042f3fe
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00424502
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret