Function at 0x42db40
Capabilities:
Delete file
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b2338
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
or esi, 0xffffffff
cmp eax, esi
push edi
je 0x42ddf9
mov edi, dword [esp + 0x34]
test edi, edi
je 0x42ddf9
cmp word [edi], 0
je 0x42ddf9
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
test ebx, ebx
jl 0x42ddf9
jg 0x42db9b
test ebp, ebp
jb 0x42ddf9
push edi
lea ecx, [esp + 0x20]
call fcn.004a2cae
mov eax, dword [eax]
mov dword [esp + 0x28], 0
push eax
call fcn.0042d9f0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], esi
call fcn.004a2c3a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x42dbee
test al, 0x10
je 0x42dbe0
push 0x272
push 4
jmp 0x42de00
test al, 1
je 0x42dbee
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x42dc1e
push 0x285
push 4
jmp 0x42de00
push ebx
push ebp
push esi
mov dword [esp + 0x28], 0
call fcn.0042de20
add esp, 0xc
test eax, eax
je 0x42ddaa
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x10000
push esi
call fcn.004a2973
mov ebx, eax
xor eax, eax
add esp, 4
cmp ebx, eax
je 0x42ddbb
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
cmp ecx, eax
mov dword [esp + 0x14], eax
jl 0x42dd1c
jg 0x42dc82
cmp ebp, eax
jbe 0x42dd1c
jmp 0x42dc82
xor eax, eax
cmp dword [esp + 0x3c], eax
jg 0x42dc94
jl 0x42dc92
cmp ebp, 0x10000
jae 0x42dc94
mov esi, ebp
mov edi, dword [esp + 0x3c]
sub ebp, esi
mov ecx, esi
sbb edi, eax
mov edx, ecx
mov dword [esp + 0x3c], edi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42dd32
mov eax, dword [esp + 0x10]
cmp eax, esi
jb 0x42dd50
lea edx, [esp + 0x14]
push edi
push edx
push eax
mov eax, dword [esp + 0x24]
push ebx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42dd6e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jb 0x42dd8c
cmp dword [esp + 0x3c], edi
jg 0x42dc80
jl 0x42dd18
test ebp, ebp
ja 0x42dc80
mov edi, dword [esp + 0x34]
push ebx
mov dword [esp + 0x20], 1
call fcn.004a299c
add esp, 4
jmp 0x42ddca
push 0x2b0
push 4
call fcn.0042d9d0
mov edi, dword [esp + 0x3c]
add esp, 8
push ebx
call fcn.004a299c
add esp, 4
jmp 0x42ddca
push 0x2b6
push 4
call fcn.0042d9d0
mov edi, dword [esp + 0x3c]
add esp, 8
push ebx
call fcn.004a299c
add esp, 4
jmp 0x42ddca
push 0x2be
push 4
call fcn.0042d9d0
mov edi, dword [esp + 0x3c]
add esp, 8
push ebx
call fcn.004a299c
add esp, 4
jmp 0x42ddca
push 0x2c4
push 4
call fcn.0042d9d0
mov edi, dword [esp + 0x3c]
add esp, 8
push ebx
call fcn.004a299c
add esp, 4
jmp 0x42ddca
push 0x290
push 4
call fcn.0042d9d0
add esp, 8
jmp 0x42ddce
push 0x29a
push 4
call fcn.0042d9d0
add esp, 8
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x42dde4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push 0x268
push 1
call fcn.0042d9d0
mov ecx, dword [esp + 0x28]
add esp, 8
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret