Function at 0x450cb5
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x608b0b
call fcn.00465b38
sub esp, 0x180
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x450cd9
push 0xff
jmp 0x4511e1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x4511dc
cmp word [eax], bx
je 0x4511dc
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
mov dword [ebp - 0x78], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.00450beb
pop ecx
test eax, eax
pop ecx
je 0x450d14
push 2
push ebx
push 0xffffffffffffffe0
jmp 0x450d29
lea eax, [ebp - 0x64]
mov dword [ebp - 0x70], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push ebx
mov dword [ebp - 0x68], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
lea ecx, [ebp - 0x58]
call fcn.00487780
lea eax, [ebp - 0x58]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0xc]
call fcn.0045127c
push 0x10000
call fcn.005ed45a
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x450d70
push 0x11c
push 9
call fcn.00450b92
pop ecx
pop ecx
jmp 0x4511cb
cmp dword [ebp - 0x54], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
jle 0x4511c8
push dword [ebp - 0x28]
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.0041db21
push dword [eax]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.005ece05
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00480a70
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocStringLen
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x4510e2
push 0x37
xor eax, eax
pop ecx
lea edi, [ebp - 0x188]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x34]
mov dword [ebp - 0x184], eax
xor eax, eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x3c], ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18c], 0x4f504946
mov dword [ebp - 0x34], ebx
call edi
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x18c]
push 0xe0
push eax
push dword [ebp + 8]
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4510eb
cmp dword [ebp - 0x14], 0xe0
jb 0x4510f2
lea eax, [ebp - 0x178]
push 1
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x178], ebx
call esi
push 0x69dc58
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x17c], eax
call fcn.005ece05
cmp dword [ebp + 0x14], ebx
mov byte [ebp - 4], 4
je 0x450f2e
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.004513b6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.005eced8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.005ecd91
lea ecx, [ebp - 0xac]
call fcn.0053cdd0
push ebx
lea ecx, [ebp - 0xac]
push dword [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0053d000
push ebx
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0xac]
call fcn.0053d240
test eax, eax
je 0x451102
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 4
call fcn.0053cef0
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x451121
lea ecx, [ebp - 0x34]
push ecx
push eax
call edi
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], ecx
jmp 0x450f3a
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov edi, 0x10000
push edi
push ebx
push dword [ebp - 0x30]
call fcn.00466010
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ebx
push eax
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x450fa0
cmp dword [ebp - 0x18], edi
jae 0x450f76
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x3c], 1
je 0x450fc5
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x450fa9
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jb 0x450fb0
cmp dword [ebp - 0x3c], ebx
je 0x450f3a
jmp 0x450fc5
push 0x18e
push 7
jmp 0x450fb7
push 0x19d
jmp 0x450fb5
push 0x1a3
push 8
call fcn.00450b92
pop ecx
mov dword [ebp - 0x2c], 1
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], ebx
je 0x450fdc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x2c], ebx
jne 0x451152
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.004511fa
pop ecx
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.00480200
mov eax, dword [eax]
push 0x4f
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0046634f
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00480a70
lea eax, [ebp - 0x15c]
push 0x10
push eax
push dword [ebp + 0xc]
call fcn.004ec870
lea eax, [ebp - 0x184]
push 0xd8
push eax
call fcn.00450c92
add esp, 0x14
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x178]
push ebx
push eax
push dword [ebp - 0x17c]
push dword [ebp + 8]
call esi
push 1
push ebx
push 0xffffff20
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x14]
push ebx
push eax
mov edi, 0xe0
lea eax, [ebp - 0x18c]
push edi
push eax
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x451131
cmp dword [ebp - 0x14], edi
jb 0x451138
inc dword [ebp - 0x6c]
push 2
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x20], 1
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.005ecd91
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.005ecd91
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.005ecd91
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x54]
jl 0x450d7f
jmp 0x45116e
push 0x131
push 3
jmp 0x4510f9
push 0x149
jmp 0x4510f7
push 0x14e
push 8
call fcn.00450b92
pop ecx
pop ecx
jmp 0x45115e
push 0x166
push 3
call fcn.00450b92
pop ecx
mov byte [ebp - 4], 4
pop ecx
lea ecx, [ebp - 0xac]
call fcn.0053cef0
jmp 0x451152
push 0x177
push 3
call fcn.00450b92
pop ecx
pop ecx
jmp 0x451152
push 0x1c3
jmp 0x45113d
push 0x1c8
push 8
call fcn.00450b92
pop ecx
mov byte [ebp - 4], 4
pop ecx
lea ecx, [ebp - 0x24]
call fcn.005ecd91
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.005ecd91
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.005ecd91
cmp dword [ebp - 0x20], ebx
je 0x4511c8
lea eax, [ebp - 0x70]
push 0x18
push eax
mov dword [ebp - 0x78], 0x4f504554
call fcn.00450c92
pop ecx
mov dword [ebp - 0x74], eax
pop ecx
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x78]
push 0x20
push eax
mov dword [ebp + 0xc], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4511b1
push 0x1d8
push 8
call fcn.00450b92
pop ecx
mov dword [ebp - 0x20], ebx
pop ecx
cmp dword [ebp + 0xc], 0x20
jae 0x4511c8
push 0x1dd
push 8
call fcn.00450b92
pop ecx
mov dword [ebp - 0x20], ebx
pop ecx
mov ebx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00487790
mov eax, ebx
pop edi
jmp 0x4511ec
push 0x105
push 1
call fcn.00450b92
pop ecx
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret