Function at 0x12e08fb0
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Read file on windows
Resolve function by parsing pe exports
Set file attributes
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1305bdbb
push eax
mov eax, 0x20dc
mov dword fs:[0], esp
call fcn.12f5d910
mov eax, dword [esp + 0x20f4]
mov ecx, dword [esp + 0x20f8]
cmp eax, ecx
push edi
jne 0x12e08ffd
mov eax, 6
pop edi
mov ecx, dword [esp + 0x20dc]
mov dword fs:[0], ecx
add esp, 0x20e8
ret
call fcn.12eaa970
test eax, eax
jne 0x12e09021
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20dc]
mov dword fs:[0], ecx
add esp, 0x20e8
ret
mov ecx, dword [esp + 0x20f4]
mov edi, dword [esp + 0x20f0]
push ecx
push edi
call fcn.12f5e2a4
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x2c], eax
je 0x12e0905f
mov eax, 6
pop edi
mov ecx, dword [esp + 0x20dc]
mov dword fs:[0], ecx
add esp, 0x20e8
ret
call fcn.12eaa970
test eax, eax
jne 0x12e09083
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20dc]
mov dword fs:[0], ecx
add esp, 0x20e8
ret
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push edi
mov dword [esp + 0x58], ebx
or ebp, 0xffffffff
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
je 0x12e097a2
mov ecx, 0x407
xor eax, eax
lea edi, [esp + 0x10cd]
mov byte [esp + 0x10cc], 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 + 0xad]
mov byte [esp + 0xac], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x44]
mov dword [esp + 0x40], ebx
push edx
push esi
stosb byte es:[edi], al
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
cmp ecx, ebx
ja 0x12e09118
cmp eax, 0x200
jb 0x12e09787
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x10d4]
push 0x200
push ecx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12e09787
cmp dword [esp + 0x10], 0x200
jne 0x12e09787
mov eax, dword [0x130e1fac]
mov edi, str.OCULAR3454E43525950
mov ecx, eax
lea esi, [esp + 0x10cc]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x12e09787
cmp dword [esp + eax + 0x10cc], 1
jne 0x12e09787
lea eax, [esp + 0xac]
lea ecx, [esp + 0x10ec]
push eax
push 0x120
push ecx
push 0x10
push 0x130e1f98
push 3
call fcn.12eaa9d0
add esp, 0x18
cmp eax, 0x100
jne 0x12e09787
cmp dword [esp + 0xac], 0x20202020
jne 0x12e09787
mov edx, dword [esp + 0x2104]
mov eax, dword [esp + 0xb0]
cmp eax, edx
jne 0x12e09787
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x210c]
cmp eax, ebx
je 0x12e09218
cmp eax, 0x2710
ja 0x12e091fa
cmp ecx, 0x2710
ja 0x12e09218
cmp ecx, eax
jne 0x12e09787
jmp 0x12e09218
cmp ecx, eax
jne 0x12e09787
cmp dword [esp + 0x2110], ebx
jne 0x12e09218
cmp dword [esp + 0xb8], ebx
jne 0x12e09787
xor eax, eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x59], eax
push ecx
mov dword [esp + 0x61], eax
lea edx, [esp + 0xb0]
mov dword [esp + 0x65], eax
push 0x100
mov word [esp + 0x6d], ax
push edx
push 1
mov byte [esp + 0x68], bl
mov byte [esp + 0x77], al
call fcn.12eaaa20
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x121c]
push eax
push 0xc0
push ecx
push 0x10
push 0x130e1f98
push 3
call fcn.12eaa9d0
add esp, 0x28
cmp eax, 0xa0
jne 0x12e09787
mov esi, dword [esp + 0x2100]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x2c], ebx
push esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x12e092c0
test al, 1
je 0x12e092c0
and al, 0xfe
mov dword [esp + 0x38], 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 0x12e09787
mov eax, dword [0x130e1fac]
mov esi, str.OCULAR3454E43525950
mov ecx, eax
lea edi, [esp + 0x10cc]
mov edx, ecx
lea eax, [esp + eax + 0x10cc]
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 + 0xac]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x210c]
mov eax, dword [esp + 0x2108]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x2110]
cmp ecx, ebx
mov dword [esp + 0xac], 0x20202020
setne dl
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb8], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xbc], eax
xor eax, eax
mov dword [esp + 0x49], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x4d], eax
push ecx
mov dword [esp + 0x55], eax
lea edx, [esp + 0xb0]
push 0x100
mov word [esp + 0x5d], ax
push edx
push 1
mov byte [esp + 0x58], bl
mov byte [esp + 0x67], al
call fcn.12eaaa20
lea eax, [esp + 0x10fc]
lea ecx, [esp + 0xbc]
push eax
push 0x100
push ecx
push 0x10
push 0x130e1f98
push 3
call fcn.12eaa980
mov edx, dword [esp + 0x50]
mov esi, eax
mov ecx, 0x408
xor eax, eax
lea edi, [esp + 0xd4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + esi + 0x1114]
mov dword [esp + 0xd4], edx
push ecx
lea edx, [esp + 0xd8]
push 0xa0
push edx
push 0x10
push 0x130e1f98
push 3
mov dword [esp + 0xf0], eax
call fcn.12eaa980
lea eax, [eax + esi + 0x20]
add esp, 0x40
cmp eax, 0x200
jne 0x12e09787
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x10d4]
push eax
push edx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x12e09787
cmp dword [esp + 0x14], 0x200
jne 0x12e09787
mov eax, dword [esp + 0x2118]
mov ecx, dword [esp + 0x2114]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
lea ecx, [esp + 0x80]
call fcn.12e64eb0
mov dword [esp + 0x20f4], ebx
xor edi, edi
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x10d4]
push 0x1020
push edx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x12e09555
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x12e09555
lea ecx, [esp + 0xac]
lea edx, [esp + 0x10cc]
push ecx
push eax
push edx
lea eax, [esp + 0x64]
push 0x10
push eax
push 3
call fcn.12eaa9d0
add esp, 0x18
cmp eax, ebx
jle 0x12e09555
mov ecx, dword [esp + 0x6c]
add edi, eax
adc ecx, ebx
lea edx, [esp + 0xac]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x10cc]
push ecx
push eax
push edx
lea eax, [esp + 0x54]
push 0x10
push eax
push 3
call fcn.12eaa980
add esp, 0x18
lea ecx, [esp + 0x14]
mov esi, eax
lea edx, [esp + 0x10cc]
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 0x12e09555
cmp esi, dword [esp + 0x14]
jne 0x12e09555
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x78]
call fcn.12e64f60
cmp eax, 1
je 0x12e09555
cmp dword [esp + 0x10], 0x1020
jae 0x12e09483
cmp edi, dword [esp + 0x28]
jne 0x12e09773
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jne 0x12e09773
lea edx, [esp + 0x34]
mov dword [esp + 0x18], ebx
push edx
push ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push ebx
push eax
push 0x20
push ebp
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x20
mov dword [esp + 0x1c], eax
jne 0x12e09773
cmp dword [esp + 0x20], ebx
jne 0x12e09773
mov edi, dword [esp + 0x34]
cmp edi, ebx
ja 0x12e09643
jb 0x12e095d1
cmp dword [esp + 0x30], 0x10020
ja 0x12e09643
mov esi, dword [esp + 0x30]
sub esi, 0x20
sbb edi, ebx
jne 0x12e095e4
cmp esi, ebx
jbe 0x12e09701
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x10d4]
push 0x200
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x12e096f7
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x12e096f7
mov ecx, dword [esp + 0x18]
sub esi, eax
push eax
lea eax, [esp + 0x10d0]
push eax
push ecx
sbb edi, ebx
call fcn.12ffee60
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x18], eax
ja 0x12e095e4
jb 0x12e09701
cmp esi, ebx
ja 0x12e095e4
jmp 0x12e09701
mov dword [esp + 0x28], ebx
mov esi, 0x8000
xor edi, edi
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x10d4]
push 0x200
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x12e0969c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x12e0969c
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10cc]
push eax
sub esi, eax
push ecx
push edx
sbb edi, ebx
call fcn.12ffee60
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x18], eax
ja 0x12e0964e
jb 0x12e0969c
cmp esi, ebx
ja 0x12e0964e
cmp dword [esp + 0x28], ebx
jne 0x12e096e5
lea eax, [esp + 0x20]
push 2
push eax
push 0xffff8000
push ebp
mov dword [esp + 0x2c], 0xffff8000
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub ecx, 0x8000
mov dword [esp + 0x1c], eax
sbb edx, ebx
cmp eax, ecx
jne 0x12e096f7
mov ecx, dword [esp + 0x20]
cmp ecx, edx
jne 0x12e096f7
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 2
mov dword [esp + 0x28], eax
jl 0x12e09647
cmp edi, ebx
ja 0x12e09773
jb 0x12e09701
cmp esi, ebx
ja 0x12e09773
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push ebx
push eax
xor ecx, edx
push 0x1c
push ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0x1c
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x1c
mov dword [esp + 0x1c], eax
jne 0x12e09773
cmp dword [esp + 0x20], ebx
jne 0x12e09773
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x12e09773
cmp dword [esp + 0x14], 4
jne 0x12e09773
cmp dword [0x130cf418], ebx
je 0x12e0976b
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x3c], 1
lea ecx, [esp + 0x70]
mov dword [esp + 0x20f4], 0xffffffff
call fcn.12e64ee0
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x2100]
mov edi, dword [esp + 0x20fc]
jmp 0x12e097a9
mov esi, dword [esp + 0x2100]
xor ecx, ecx
cmp ebp, 0xffffffff
setne cl
cmp ebp, 0xffffffff
mov dword [esp + 0x24], ecx
je 0x12e097c1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x3c], ebx
je 0x12e097d5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x12e09800
jmp 0x12e097f8
cmp dword [esp + 0x24], ebx
je 0x12e097e4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x12e09800
cmp dword [esp + 0x38], ebx
je 0x12e09800
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x12e09800
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20ec]
neg eax
sbb eax, eax
pop esi
and al, 0xfb
pop ebp
pop ebx
add eax, 5
pop edi
mov dword fs:[0], ecx
add esp, 0x20e8
ret