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

Disassembly:
push 0xffffffffffffffff
push 0x864e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x8ab26c]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x5c], ebp
je 0x4cef83
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004cee70
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 1
call fcn.00618070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 0
call fcn.00617ec0
jmp 0x4cef91
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0xc]
push eax
call fcn.006181a0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x4cefc2
test al, 0x10
je 0x4cefb0
push 0x1f9
push 6
jmp 0x4cefee
test al, 1
je 0x4cefc2
mov edx, dword [esp + 0xc]
and al, 0xfe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0xc]
push ebp
push 0x80
push 4
push ebp
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x1c], esi
jne 0x4cf017
push 0x20d
push 4
call fcn.004ce450
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], edi
call fcn.00617ec0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret
mov edi, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x70]
push edi
push ebx
push esi
mov dword [esp + 0x24], ebp
call fcn.004cf3f0
add esp, 0xc
test eax, eax
je 0x4cf186
push ebp
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x10000
push esi
call fcn.008325b4
mov ebp, eax
xor eax, eax
add esp, 4
cmp ebp, eax
je 0x4cf197
cmp edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
jl 0x4cf108
jg 0x4cf07b
cmp ebx, eax
jbe 0x4cf108
jmp 0x4cf07b
mov edi, dword [esp + 0x74]
test edi, edi
jg 0x4cf08b
jl 0x4cf089
cmp ebx, 0x10000
jae 0x4cf08b
mov esi, ebx
sub ebx, esi
mov ecx, esi
sbb edi, 0
mov edx, ecx
mov dword [esp + 0x74], edi
xor eax, eax
mov edi, ebp
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 + 0x68]
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
push esi
push ebp
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cf11e
mov eax, dword [esp + 0x14]
cmp eax, esi
jb 0x4cf138
lea edx, [esp + 0x1c]
push edi
push edx
push eax
mov eax, dword [esp + 0x2c]
push ebp
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cf152
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jb 0x4cf16c
cmp dword [esp + 0x74], edi
jg 0x4cf077
jl 0x4cf108
test ebx, ebx
ja 0x4cf077
push ebp
mov dword [esp + 0x1c], 1
call fcn.008325dd
add esp, 4
jmp 0x4cf1a6
push 0x239
push 7
call fcn.004ce450
add esp, 8
push ebp
call fcn.008325dd
add esp, 4
jmp 0x4cf1a6
push 0x23f
push 7
call fcn.004ce450
add esp, 8
push ebp
call fcn.008325dd
add esp, 4
jmp 0x4cf1a6
push 0x247
push 8
call fcn.004ce450
add esp, 8
push ebp
call fcn.008325dd
add esp, 4
jmp 0x4cf1a6
push 0x24d
push 8
call fcn.004ce450
add esp, 8
push ebp
call fcn.008325dd
add esp, 4
jmp 0x4cf1a6
push 0x219
push 0xe
call fcn.004ce450
add esp, 8
jmp 0x4cf1aa
push 0x223
push 9
call fcn.004ce450
add esp, 8
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4cf3c0
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4cf3b9
lea ecx, [esp + 0x24]
call fcn.00702fd0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x78]
push edx
mov byte [esp + 0x64], 2
call fcn.00617440
push 0x5c
lea ecx, [esp + 0x7c]
mov byte [esp + 0x64], 3
call fcn.006190d0
cmp eax, 0xffffffff
je 0x4cf22f
push eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x80]
call fcn.0061a690
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x64], 4
call fcn.00618070
lea ecx, [esp + 0x70]
mov byte [esp + 0x60], 3
call fcn.00617ec0
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00831f5f
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 5
call fcn.00703200
test eax, eax
je 0x4cf28a
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x70]
push edx
call fcn.00831f5f
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0x64], 6
call fcn.00704060
test eax, eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x60], 5
sete bl
call fcn.00831eeb
test bl, bl
je 0x4cf28c
mov bl, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 3
call fcn.00831eeb
test bl, bl
je 0x4cf2b5
push 0x275
push 4
call fcn.004ce450
add esp, 8
mov dword [esp + 0x18], 0
mov eax, dword [0x98b454]
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x68]
push ecx
push edx
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 7
mov dword [esp + 0x28], 1
call fcn.007055e0
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x14]
push eax
call fcn.00617650
mov esi, eax
lea ecx, [esp + 0x78]
push 0x92edb8
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x6c], 8
call fcn.00618620
push esi
push eax
lea eax, [esp + 0x78]
mov byte [esp + 0x68], 9
push eax
call fcn.00618450
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x64], 0xa
call fcn.00618070
lea ecx, [esp + 0x70]
mov byte [esp + 0x60], 9
call fcn.00617ec0
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 8
call fcn.00617ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 7
call fcn.00617ec0
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
push esi
push ecx
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x4cf38f
mov edx, dword [esp + 0x78]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4cf38f
mov eax, dword [esp + 0x78]
push eax
call edi
push 0x284
push 4
call fcn.004ce450
add esp, 8
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 3
call fcn.00831eeb
lea ecx, [esp + 0x78]
mov byte [esp + 0x60], 2
call fcn.00617ec0
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 0
call fcn.007030f0
mov ecx, dword [esp + 0x10]
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.00617ec0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x18]
pop ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x54
ret