Function at 0x4ce5c0
Capabilities:
Delete file
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x864d08
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push ebp
mov ebp, dword [esp + 0x19c]
push esi
cmp ebp, 0xffffffff
push edi
jne 0x4ce5f5
push 0x102
jmp 0x4cec0c
mov esi, dword [esp + 0x1a8]
xor ebx, ebx
cmp esi, ebx
je 0x4cec07
cmp word [esi], bx
je 0x4cec07
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x64]
mov dword [esp + 0x60], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
push eax
push ebp
call fcn.004ce4c0
add esp, 8
test eax, eax
je 0x4ce639
push 2
push ebx
push 0xffffffffffffffe0
jmp 0x4ce651
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push ebx
mov dword [esp + 0x78], eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x50]
call fcn.0061ebd0
lea edx, [esp + 0x50]
mov dword [esp + 0x19c], ebx
push edx
push esi
call fcn.004cecf0
push 0x10000
call fcn.008325b4
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x38], eax
jne 0x4ce6b0
push 0x11f
push 9
call fcn.004ce450
add esp, 8
lea ecx, [esp + 0x50]
mov dword [esp + 0x19c], 0xffffffff
call fcn.0061ebe0
jmp 0x4cec16
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], ebx
cmp eax, ebx
mov dword [esp + 0x34], ebx
jle 0x4cebed
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00471a10
mov edx, dword [esp + 0x10]
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ceacf
mov ecx, 0x37
xor eax, eax
lea edi, [esp + 0xb8]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1ac]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
push ecx
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0xbc], 0x4f504946
mov dword [esp + 0xc4], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], ebx
call edi
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
mov dword [esp + 0xd4], eax
push ebx
push edx
lea eax, [esp + 0xbc]
push 0xe0
push eax
push ebp
mov dword [esp + 0xec], ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ceae3
cmp dword [esp + 0x18], 0xe0
jb 0x4ceaf4
lea ecx, [esp + 0xc8]
push 1
push ecx
push ebx
push ebp
mov dword [esp + 0xd8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [0x8ab26c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1b0]
mov byte [esp + 0x19c], 2
cmp eax, ebx
je 0x4ce8ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.004cee70
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 3
call fcn.00618070
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.00617ec0
lea ecx, [esp + 0x80]
call fcn.00702fd0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push edx
mov byte [esp + 0x1a0], 4
call fcn.00831f5f
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x1a4], 5
call fcn.00703200
lea ecx, [esp + 0x48]
mov byte [esp + 0x19c], 4
call fcn.00831eeb
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
call fcn.00831f5f
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1a8], 6
call fcn.00703440
test eax, eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x19c], 4
sete byte [esp + 0x1f]
call fcn.00831eeb
cmp byte [esp + 0x1f], bl
jne 0x4ceb05
lea ecx, [esp + 0x80]
mov byte [esp + 0x19c], 2
call fcn.007030f0
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ceb2a
lea edx, [esp + 0x30]
push edx
push esi
call edi
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
jmp 0x4ce8fb
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov edx, dword [esp + 0x38]
mov ecx, 0x4000
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push ebx
push eax
push 0x10000
push edx
push esi
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ce96b
mov eax, dword [esp + 0x3c]
cmp eax, 0x10000
jae 0x4ce93c
cmp eax, ebx
mov dword [esp + 0x24], 1
je 0x4ce992
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ebx
push ecx
push eax
push edx
push ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ce974
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jb 0x4ce97b
cmp dword [esp + 0x24], ebx
je 0x4ce8fb
jmp 0x4ce992
push 0x196
push 7
jmp 0x4ce982
push 0x1a5
jmp 0x4ce980
push 0x1ab
push 8
call fcn.004ce450
add esp, 8
mov dword [esp + 0x28], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1b0], ebx
je 0x4ce9ad
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x28], ebx
jne 0x4ceb62
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.004cec40
mov ecx, dword [esp + 0x34]
push 0x4f
lea edx, [esp + 0x100]
push ecx
push edx
mov byte [esp + 0x1b0], 7
call fcn.005fc3ce
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xf8]
push 0x10
push eax
push ecx
call fcn.00671ac0
lea edx, [esp + 0xdc]
push 0xd8
push edx
call fcn.004ce5a0
mov ecx, dword [esp + 0xec]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0x28
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xc8]
push ebx
push eax
push ecx
push ebp
call esi
push 1
push ebx
push 0xffffff20
push ebp
call esi
lea edx, [esp + 0x18]
push ebx
push edx
lea eax, [esp + 0xbc]
push 0xe0
push eax
push ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ceb3b
cmp dword [esp + 0x18], 0xe0
jb 0x4ceb42
mov edi, dword [esp + 0x6c]
push 2
push ebx
inc edi
push ebx
push ebp
mov dword [esp + 0x30], 1
mov dword [esp + 0x7c], edi
call esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x19c], 2
call fcn.00617ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 1
call fcn.00617ec0
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], bl
call fcn.00617ec0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4ce6c4
jmp 0x4ceb89
push 0x134
push 3
call fcn.004ce450
add esp, 8
jmp 0x4ceb73
push 0x14c
push 8
call fcn.004ce450
add esp, 8
jmp 0x4ceb73
push 0x151
push 8
call fcn.004ce450
add esp, 8
jmp 0x4ceb73
push 0x16e
push 3
call fcn.004ce450
add esp, 8
lea ecx, [esp + 0x80]
mov byte [esp + 0x19c], 2
call fcn.007030f0
jmp 0x4ceb62
push 0x17f
push 3
call fcn.004ce450
add esp, 8
jmp 0x4ceb62
push 0x1cb
jmp 0x4ceb47
push 0x1d0
push 8
call fcn.004ce450
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x19c], 2
call fcn.00617ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 1
call fcn.00617ec0
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], bl
call fcn.00617ec0
cmp dword [esp + 0x20], ebx
je 0x4cebed
lea ecx, [esp + 0x68]
push 0x18
push ecx
mov dword [esp + 0x68], 0x4f504554
call fcn.004ce5a0
add esp, 8
lea edx, [esp + 0x24]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push ebx
push edx
push 0x20
push eax
push ebp
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4cebd3
push 0x1e0
push 8
call fcn.004ce450
add esp, 8
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x24], 0x20
jae 0x4cebed
push 0x1e5
push 8
call fcn.004ce450
add esp, 8
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x19c], 0xffffffff
call fcn.0061ebe0
mov eax, dword [esp + 0x20]
jmp 0x4cec18
push 0x108
push 1
call fcn.004ce450
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x190
ret