Function at 0x422720
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x118], 0
push 0x104
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.0048e260
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x422760
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
jne 0x422798
push 0x105
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str..log
push 0x105
lea ecx, [ebp - 0x118]
push ecx
call fcn.00422d00
add esp, 0xc
lea edx, [ebp - 0x118]
mov dword [ebp + 0xc], edx
jmp 0x422809
push 0x5c
mov eax, dword [ebp + 0xc]
push eax
call fcn.00408120
add esp, 8
test eax, eax
jne 0x422809
push 0x105
lea ecx, [ebp - 0x118]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [ebp - 0x118]
push edx
call fcn.0041f9e0
add esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x4227e8
mov eax, dword [ebp - 0x120]
mov byte [eax + 1], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x105
lea edx, [ebp - 0x118]
push edx
call fcn.00422d00
add esp, 0xc
lea eax, [ebp - 0x118]
mov dword [ebp + 0xc], eax
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x422836
jmp 0x42297d
push 0
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
shl eax, 0xa
cmp dword [ebp - 8], eax
jbe 0x422932
cmp dword [ebp - 8], 0xffffffff
je 0x422932
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x230], 0
push 0x104
push 0
lea edx, [ebp - 0x22f]
push edx
call fcn.0048e260
add esp, 0xc
push 0x105
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x2e
lea edx, [ebp - 0x230]
push edx
call fcn.0041f9e0
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x4228ca
mov eax, dword [ebp - 0x124]
mov byte [eax], 0
push str.2.log
push 0x105
lea ecx, [ebp - 0x230]
push ecx
call fcn.00422d00
add esp, 0xc
push 0x80
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x11c], eax
push 2
push 0
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048e1d0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret