Function at 0x42c2f0
Capabilities:
Accept command line arguments
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x18
push str._chkini
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x42c30d
add esp, 0x18
ret
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0040e820
mov ecx, dword [esp + 0x14]
add esp, 4
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x42c355
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42c399
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 8], eax
cmp dword [esp + 0x1c], edi
jbe 0x42c3b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c500
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
push ebx
inc eax
push 0x621b4c
push eax
call fcn.004e8c16
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x42c4ef
mov edx, dword [esp + 0xc]
push edi
lea ecx, [esp + 0x10]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
mov byte [ebx + ecx], 0
cmp eax, edi
je 0x42c4e6
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x42c4e6
inc eax
push 0x621b4c
push eax
call fcn.004e8c16
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x42c4e6
mov dword [esp + 0x10], edi
cmp dword [esp + 0xc], edi
jbe 0x42c4d1
push ebp
lea ebp, [edi + ebx]
push 0x5c0100
push ebp
call fcn.004e8b90
mov esi, eax
add esp, 8
test esi, esi
je 0x42c477
cmp esi, ebp
jne 0x42c447
add edi, 2
jmp 0x42c46f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add esi, 2
mov edi, esi
sub edi, ebp
push edi
push ebp
sub edx, eax
push edx
add eax, ecx
push eax
call fcn.0041c730
add dword [esp + 0x14], edi
sub esi, ebx
mov edi, esi
cmp edi, dword [esp + 0x10]
jb 0x42c427
jmp 0x42c499
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ebp
sub edx, eax
push edx
add eax, ecx
push eax
call fcn.0041c630
mov edx, dword [esp + 0x10]
sub edx, edi
add dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x20]
pop ebp
jbe 0x42c4d1
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.004a3d2b
mov eax, dword [esp + 0x1c]
push eax
call fcn.004a3d2b
add esp, 8
jmp 0x42c4ef
push ebx
call fcn.004a3d2b
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.0040c150
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret