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

Disassembly:
mov eax, 0x432d84
call fcn.0042f740
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x422ede
lea esi, [ebx + 4]
push edi
push esi
mov dword [ebp - 0x20], esi
call fcn.0042ae97
pop ecx
test eax, eax
pop ecx
je 0x422ee5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x422ee5
xor eax, eax
jmp 0x4230d6
mov eax, dword [0x4427c8]
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 0x423014
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x442804
mov eax, esi
test eax, eax
je 0x422f1a
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042478a
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x422f32
xor eax, eax
jmp 0x422f35
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042478a
mov esi, 0x4427fc
mov eax, esi
test eax, eax
je 0x422f4d
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042478a
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 0x422fe3
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x422f78
xor eax, eax
jmp 0x422f7b
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042478a
mov ebx, 0x43b5a8
mov eax, ebx
test eax, eax
je 0x422f93
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042478a
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x422fab
xor eax, eax
jmp 0x422fae
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042478a
mov ebx, 0x4427e0
mov eax, ebx
test eax, eax
je 0x422fc6
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042478a
lea ecx, [ebp - 0x14]
call fcn.0042443a
mov eax, dword [esi + 4]
cmp dword [ebp - 0x14], eax
jne 0x422f6a
mov ebx, dword [ebp + 8]
mov esi, 0x4427e0
mov eax, esi
test eax, eax
je 0x422ff1
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042478a
lea ecx, [ebp - 0x18]
call fcn.00424154
mov eax, dword [ebx + 0x210]
cmp dword [ebp - 0x18], eax
jne 0x422f0c
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 0x4230c7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
add eax, eax
cmp eax, edi
jne 0x42304a
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4230c0
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 0x4230c0
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 0x4230b9
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp + 8], esi
jne 0x4230b9
mov dword [ebp - 0x1c], 1
push edi
call fcn.0042f5e8
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004246e6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret