Function at 0x12e089c0
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:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1305bccb
push eax
mov eax, 0x24d0
mov dword fs:[0], esp
call fcn.12f5d840
call fcn.12eaa960
test eax, eax
jne 0x12e08a02
mov eax, 1
mov ecx, dword [esp + 0x24d0]
mov dword fs:[0], ecx
add esp, 0x24dc
ret
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x29a]
mov word [esp + 0x298], bx
mov esi, dword [esp + 0x24f4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x24f0]
push esi
push eax
mov dword [esp + 0x18], ebx
call fcn.12f5e1d4
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x50], eax
je 0x12e08a9f
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x92]
mov word [esp + 0x90], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x90]
push ecx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x298]
lea eax, [esp + 0x90]
push edx
push ebx
push 0x130e2864
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x298]
mov dword [esp + 0x18], ecx
jmp 0x12e08aa3
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x24f0]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push edx
or ebp, 0xffffffff
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
je 0x12e08ebd
mov ecx, 0x407
xor eax, eax
lea edi, [esp + 0x14c1]
mov byte [esp + 0x14c0], 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 + 0x4a1]
mov byte [esp + 0x4a0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], ebx
push eax
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
cmp ecx, ebx
ja 0x12e08b36
cmp eax, 0x200
jb 0x12e08eb2
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x14c8]
push 0x200
push edx
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x12e08eb2
cmp dword [esp + 0x14], 0x200
jne 0x12e08eb2
mov eax, dword [0x130e1fac]
mov edi, str.OCULAR3454E43525950
mov ecx, eax
lea esi, [esp + 0x14c0]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x12e08eb2
cmp dword [esp + eax + 0x14c0], 1
jne 0x12e08eb2
lea eax, [esp + 0x4a0]
lea ecx, [esp + 0x14e0]
push eax
push 0x120
push ecx
push 0x10
push 0x130e1f98
push 3
call fcn.12eaa9c0
add esp, 0x18
cmp eax, 0x100
jne 0x12e08eb2
cmp dword [esp + 0x4a0], 0x20202020
jne 0x12e08eb2
mov edx, dword [esp + 0x4a4]
mov eax, dword [esp + 0x24f8]
cmp edx, eax
jne 0x12e08eb2
mov eax, dword [esp + 0x4a8]
cmp eax, ebx
je 0x12e08c36
mov ecx, dword [esp + 0x24fc]
cmp eax, 0x2710
ja 0x12e08c18
cmp ecx, 0x2710
ja 0x12e08c36
cmp ecx, eax
jne 0x12e08eb2
jmp 0x12e08c36
cmp ecx, eax
jne 0x12e08eb2
cmp dword [esp + 0x2500], ebx
jne 0x12e08c36
cmp dword [esp + 0x4ac], ebx
jne 0x12e08eb2
xor eax, eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x41], eax
push ecx
mov dword [esp + 0x49], eax
lea edx, [esp + 0x4a4]
mov dword [esp + 0x4d], eax
push 0x100
mov word [esp + 0x55], ax
push edx
push 1
mov byte [esp + 0x50], bl
mov byte [esp + 0x5f], al
call fcn.12eaaa10
lea eax, [esp + 0x4b0]
lea ecx, [esp + 0x1610]
push eax
push 0xc0
push ecx
push 0x10
push 0x130e1f98
push 3
call fcn.12eaa9c0
add esp, 0x28
cmp eax, 0xa0
jne 0x12e08eb2
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x4a0]
mov eax, dword [esp + 0x4a4]
mov dword [esp + 0x3c], ebx
push esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x12e08cdb
test al, 1
je 0x12e08cdb
and al, 0xfe
mov dword [esp + 0x34], 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 0x12e08eb2
mov ecx, dword [esp + 0x2508]
mov edx, dword [esp + 0x2504]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.12e64ea0
mov dword [esp + 0x24e8], ebx
mov edi, 1
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x14c8]
push 0x1020
push eax
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x12e08e66
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x12e08e66
lea edx, [esp + 0x4a0]
lea ecx, [esp + 0x40]
push edx
push eax
lea eax, [esp + 0x14c8]
push eax
push 0x10
push ecx
push 3
call fcn.12eaa9c0
mov esi, eax
add esp, 0x18
cmp esi, ebx
jle 0x12e08e66
cmp edi, ebx
je 0x12e08e05
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x4a8]
push 1
push eax
push ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x10]
lea ecx, [esi - 1]
cmp ecx, ebx
jbe 0x12e08dde
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x4a9]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [esp + 0x10]
cmp eax, ebx
je 0x12e08e66
cmp esi, edi
jne 0x12e08e66
mov ecx, dword [esp + 0x14]
push ebx
add ecx, 0x200
push ecx
lea ecx, [esp + 0x5c]
call fcn.12e64f50
mov edi, dword [esp + 0x24]
jmp 0x12e08e38
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x4a8]
push esi
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x12e08e66
cmp esi, dword [esp + 0x10]
jne 0x12e08e66
mov ecx, dword [esp + 0x14]
push ebx
push ecx
lea ecx, [esp + 0x5c]
call fcn.12e64f50
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x8c]
add edx, esi
adc ecx, ebx
cmp eax, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
je 0x12e08e66
cmp dword [esp + 0x14], 0x1020
jae 0x12e08d34
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x12e08f19
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x12e08f19
mov eax, dword [0x130cf418]
mov dword [esp + 0x10], 1
cmp eax, ebx
je 0x12e08e9e
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [esp + 0x54]
mov dword [esp + 0x24e8], 0xffffffff
call fcn.12e64ed0
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
cmp ebp, 0xffffffff
setne dl
cmp ebp, 0xffffffff
mov dword [esp + 0x24], edx
je 0x12e08ed5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
je 0x12e08f55
mov eax, dword [esp + 0x24f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x12e08f48
cmp esi, 0xffffffff
je 0x12e08f22
mov ebp, dword [esp + 0x24f0]
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
call edi
jmp 0x12e08f29
mov dword [esp + 0x10], ebx
jmp 0x12e08e9e
mov ebp, dword [esp + 0x24f0]
mov edx, dword [esp + 0x18]
push 3
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x12e08f55
cmp esi, 0xffffffff
je 0x12e08f84
push esi
push ebp
jmp 0x12e08f7e
cmp esi, 0xffffffff
je 0x12e08f84
mov eax, dword [esp + 0x18]
push esi
push eax
jmp 0x12e08f7e
cmp dword [esp + 0x24], ebx
je 0x12e08f64
mov ecx, dword [esp + 0x18]
push ecx
call edi
jmp 0x12e08f84
cmp dword [esp + 0x34], ebx
je 0x12e08f84
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x12e08f84
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24e0]
neg eax
sbb eax, eax
pop edi
and al, 0xfd
pop esi
pop ebp
add eax, 3
pop ebx
mov dword fs:[0], ecx
add esp, 0x24dc
ret