Function at 0x12e08270
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Get file size
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1305bd7b
push eax
mov eax, 0x24bc
mov dword fs:[0], esp
call fcn.12f5d910
push ebx
push ebp
push esi
push edi
call fcn.12eaa970
test eax, eax
jne 0x12e082a6
mov eax, 1
jmp 0x12e0899b
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a6]
mov word [esp + 0x2a4], bx
mov esi, dword [esp + 0x24dc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x24e0]
push edi
push esi
call fcn.12f5e2a4
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x4c], eax
je 0x12e0833b
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x9e]
mov word [esp + 0x9c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x9c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x2a4]
lea edx, [esp + 0x9c]
push ecx
push ebx
push str.OCULAR
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x2a4]
mov dword [esp + 0x30], eax
jmp 0x12e0833f
mov dword [esp + 0x30], edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
mov dword [esp + 0x48], ebx
or ebp, 0xffffffff
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x34], edi
je 0x12e088f4
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], ebx
push ecx
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
or eax, ecx
je 0x12e088e3
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x12e083ba
test al, 1
je 0x12e083ba
and al, 0xfe
mov dword [esp + 0x48], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x12e088cb
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x4ad]
mov byte [esp + 0x4ac], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x407
xor eax, eax
lea edi, [esp + 0x14ad]
mov esi, str.OCULAR3454E43525950
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x130e1fac]
lea edi, [esp + 0x4ac]
mov ecx, eax
mov edx, ecx
lea eax, [esp + eax + 0x4ac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, 0x408
xor eax, eax
lea edi, [esp + 0x14ac]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24e8]
mov eax, dword [esp + 0x24e4]
mov dword [esp + 0x14b4], ecx
mov ecx, dword [esp + 0x24ec]
cmp ecx, ebx
mov dword [esp + 0x14ac], 0x20202020
setne dl
mov dword [esp + 0x14b0], eax
mov dword [esp + 0x14b8], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14bc], eax
xor eax, eax
mov dword [esp + 0x51], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x55], eax
push ecx
mov dword [esp + 0x5d], eax
lea edx, [esp + 0x14b0]
push 0x100
mov word [esp + 0x65], ax
push edx
push 1
mov byte [esp + 0x60], bl
mov byte [esp + 0x6f], al
call fcn.12eaaa20
lea eax, [esp + 0x4dc]
lea ecx, [esp + 0x14bc]
push eax
push 0x100
push ecx
push 0x10
push 0x130e1f98
push 3
call fcn.12eaa980
mov edx, dword [esp + 0x4c]
mov esi, eax
mov ecx, 0x408
xor eax, eax
lea edi, [esp + 0x14d4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + esi + 0x4f4]
mov dword [esp + 0x14d4], edx
push ecx
lea edx, [esp + 0x14d8]
push 0xa0
push edx
push 0x10
mov dword [esp + 0x14e8], eax
push 0x130e1f98
push 3
call fcn.12eaa980
lea eax, [eax + esi + 0x20]
add esp, 0x40
cmp eax, 0x200
jne 0x12e088cb
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x4b4]
push eax
push edx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x12e088cb
cmp dword [esp + 0x14], 0x200
jne 0x12e088cb
mov eax, dword [esp + 0x24f4]
mov ecx, dword [esp + 0x24f0]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x70]
call fcn.12e64eb0
mov ecx, dword [esp + 0x28]
xor edi, edi
xor eax, eax
cmp edi, ecx
mov dword [esp + 0x24d4], ebx
mov dword [esp + 0x40], eax
ja 0x12e08685
jb 0x12e085c1
cmp eax, dword [esp + 0x24]
jae 0x12e08685
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x4b4]
push 0x1000
push edx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x12e08685
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x12e08685
lea ecx, [esp + 0x14ac]
lea edx, [esp + 0x4ac]
push ecx
push eax
push edx
lea eax, [esp + 0x5c]
push 0x10
push eax
push 3
call fcn.12eaa980
add esp, 0x18
lea ecx, [esp + 0x14]
mov esi, eax
lea edx, [esp + 0x14ac]
push ebx
push ecx
push esi
push edx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x12e08685
cmp esi, dword [esp + 0x14]
jne 0x12e08685
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
add edx, eax
push ebx
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x48], edx
adc edi, ebx
call fcn.12e64f60
cmp eax, 1
je 0x12e08685
cmp dword [esp + 0x10], 0x1000
jb 0x12e08685
cmp edi, dword [esp + 0x28]
jb 0x12e085c1
ja 0x12e08685
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jb 0x12e085c1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
cmp eax, ecx
jne 0x12e088b7
cmp edi, dword [esp + 0x28]
jne 0x12e088b7
lea edx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
push edx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push ebx
push eax
push 0x20
push ebp
mov dword [esp + 0x28], 0x20
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x20
mov dword [esp + 0x18], eax
jne 0x12e088b7
cmp dword [esp + 0x1c], ebx
jne 0x12e088b7
mov edi, dword [esp + 0x3c]
cmp edi, ebx
ja 0x12e08783
jb 0x12e0870d
cmp dword [esp + 0x38], 0x10020
ja 0x12e08783
mov esi, dword [esp + 0x38]
sub esi, 0x20
sbb edi, ebx
jne 0x12e08720
cmp esi, ebx
jbe 0x12e08845
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x4b4]
push 0x200
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x12e0883b
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x12e0883b
mov ecx, dword [esp + 0x20]
sub esi, eax
push eax
lea eax, [esp + 0x4b0]
push eax
push ecx
sbb edi, ebx
call fcn.12ffee60
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x20], eax
ja 0x12e08720
jb 0x12e08845
cmp esi, ebx
ja 0x12e08720
jmp 0x12e08845
mov dword [esp + 0x10], ebx
mov esi, 0x8000
xor edi, edi
lea edx, [esp + 0x40]
push ebx
push edx
lea eax, [esp + 0x4b4]
push 0x200
push eax
push ebp
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x12e087e0
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x12e087e0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x4ac]
push eax
sub esi, eax
push ecx
push edx
sbb edi, ebx
call fcn.12ffee60
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x20], eax
ja 0x12e0878e
jb 0x12e087e0
cmp esi, ebx
ja 0x12e0878e
cmp dword [esp + 0x10], ebx
jne 0x12e08829
lea eax, [esp + 0x1c]
push 2
push eax
push 0xffff8000
push ebp
mov dword [esp + 0x28], 0xffff8000
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub ecx, 0x8000
mov dword [esp + 0x18], eax
sbb edx, ebx
cmp eax, ecx
jne 0x12e0883b
mov ecx, dword [esp + 0x1c]
cmp ecx, edx
jne 0x12e0883b
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x12e08787
cmp edi, ebx
ja 0x12e088b7
jb 0x12e08845
cmp esi, ebx
ja 0x12e088b7
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push ebx
push eax
xor ecx, edx
push 0x1c
push ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x1c
mov dword [esp + 0x18], eax
jne 0x12e088b7
cmp dword [esp + 0x1c], ebx
jne 0x12e088b7
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x28]
push 4
push edx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x12e088b7
cmp dword [esp + 0x14], 4
jne 0x12e088b7
cmp dword [0x130cf418], ebx
je 0x12e088af
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x24d4], 0xffffffff
call fcn.12e64ee0
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x24dc]
jmp 0x12e088f8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
jmp 0x12e0899b
mov edi, dword [esp + 0x30]
xor ecx, ecx
cmp ebp, 0xffffffff
setne cl
cmp ebp, 0xffffffff
mov dword [esp + 0x34], ecx
je 0x12e08910
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], ebx
je 0x12e08963
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x12e0895b
cmp ebp, 0xffffffff
je 0x12e08940
mov edx, ebp
and edx, 0xfffffffe
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x12e08963
cmp ebp, 0xffffffff
je 0x12e0898e
push ebp
push esi
jmp 0x12e08988
cmp ebp, 0xffffffff
je 0x12e0898e
push ebp
jmp 0x12e08987
cmp dword [esp + 0x34], ebx
je 0x12e08972
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x12e0898e
cmp dword [esp + 0x48], ebx
je 0x12e0898e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x12e0898e
or al, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x2c]
neg eax
sbb eax, eax
and al, 0xfb
add eax, 5
mov ecx, dword [esp + 0x24cc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24c8
ret