Function at 0x14006ed00
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov r12, rcx
or r15, 0xffffffffffffffff
mov r13, r15
mov qword [rsp + 0x50], r15
xor esi, esi
mov dword [rsp + 0x48], esi
mov rbx, rsi
mov qword [rsp + 0x68], rbx
or r9d, 0xffffffff
lea r8, str.LoadINISections
mov rdx, qword [rcx + 0x138]
lea rcx, [rsp + 0x70]
call fcn.140081200
nop
add dword [r12 + 0x134], 1
cmp qword [r12 + 0x128], rsi
jne 0x14006f0eb
lea rcx, [r12 + 8]
call fcn.1400b6a90
test eax, eax
jne 0x14006ed8f
lea rcx, [rsp + 0x70]
call fcn.140081300
xor eax, eax
jmp 0x14006f12a
mov edi, esi
mov dword [rsp + 0x5c], esi
cmp edi, 0x32
jge 0x14006ede7
cmp r13, 0xffffffffffffffff
jne 0x14006edfe
test edi, edi
jle 0x14006edae
lea ecx, [r13 + 0x15]
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
mov dword [rsp + 0x5c], edi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [r12 + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
mov qword [rsp + 0x50], rax
jmp 0x14006ed95
cmp r13, 0xffffffffffffffff
jne 0x14006edfe
lea rcx, [rsp + 0x70]
call fcn.140081300
xor eax, eax
jmp 0x14006f12a
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x14006ee22
lea rcx, [rsp + 0x70]
call fcn.140081300
xor eax, eax
jmp 0x14006f12a
lea eax, [r14 + 1]
mov edi, eax
mov ecx, eax
call fcn.14008c4a0
mov rbx, rax
mov qword [rsp + 0x68], rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1400c2840
test rbx, rbx
jne 0x14006ee5a
lea rcx, [rsp + 0x70]
call fcn.140081300
xor eax, eax
jmp 0x14006f12a
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xd0]
mov r8d, r14d
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006ee8b
lea rcx, [rsp + 0x70]
call fcn.140081300
xor eax, eax
jmp 0x14006f12a
mov byte [r14 + rbx], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, r15
mov qword [rsp + 0x50], r15
lea rdx, [0x1400f009c]
mov rcx, rbx
call fcn.1400c2e00
mov r11, rax
mov qword [rsp + 0x40], rax
test r11, r11
je 0x14006ef01
add dword [r12 + 0x130], 1
add r11, 1
mov qword [rsp + 0x40], r11
xor eax, eax
mov rcx, r15
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
add rcx, rbx
cmp r11, rcx
jae 0x14006eeff
lea rdx, [0x1400f8fc8]
mov rcx, r11
call fcn.1400c2e00
mov r11, rax
mov qword [rsp + 0x40], rax
jmp 0x14006eeb8
mov ecx, dword [r12 + 0x130]
mov eax, 8
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.14008c4a0
mov qword [r12 + 0x128], rax
lea rdx, [0x1400f009c]
mov rcx, rbx
call fcn.1400c2e00
mov r14, rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x58], esi
mov r15d, esi
mov dword [rsp + 0x60], esi
nop
nop
nop
cmp r15d, dword [r12 + 0x130]
jae 0x14006f0db
lea rdx, [0x1400f0098]
mov rcx, r14
call fcn.1400c2e00
mov rdi, rax
mov qword [rsp + 0xe0], rax
test rax, rax
je 0x14006f0cd
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.14008c4a0
mov edx, esi
mov qword [rsp + 0xd8], rdx
mov rcx, qword [r12 + 0x128]
mov qword [rcx + rdx*8], rax
sub rdi, r14
mov rcx, rdi
call fcn.14008c4a0
mov rcx, qword [r12 + 0x128]
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rcx + r8*8]
mov qword [rdx], rax
lea r8, [rdi - 1]
lea rdx, [r14 + 1]
mov rax, qword [r12 + 0x128]
mov rdi, qword [rsp + 0xd8]
mov rcx, qword [rax + rdi*8]
mov rcx, qword [rcx]
call fcn.1400c2b80
mov rdx, qword [r12 + 0x128]
mov rax, qword [rdx + rdi*8]
mov rcx, qword [rax]
sub rcx, r14
mov rax, qword [rsp + 0xe0]
mov byte [rcx + rax - 1], 0
add rax, 1
mov qword [rsp + 0x40], rax
lea rdx, [0x1400f8fc8]
mov rcx, rax
call fcn.1400c2e00
mov r14, rax
test rax, rax
jne 0x14006f037
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r14, [rbx + rcx - 1]
mov rdi, r14
sub rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
call fcn.14008c4a0
mov rcx, qword [r12 + 0x128]
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rcx + r8*8]
mov qword [rdx + 8], rax
mov rax, qword [r12 + 0x128]
mov rcx, qword [rax + r8*8]
mov r8, rdi
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rcx + 8]
call fcn.1400c2b80
mov rdx, qword [r12 + 0x128]
mov rdi, qword [rsp + 0xd8]
mov rax, qword [rdx + rdi*8]
mov rcx, qword [rax + 8]
sub rcx, qword [rsp + 0x40]
mov byte [rcx + r14], 0
mov rax, qword [r12 + 0x128]
mov rcx, qword [rax + rdi*8]
mov rax, qword [rcx + 8]
mov qword [rcx + 0x10], rax
mov qword [rsp + 0x40], r14
test r14, r14
je 0x14006f0db
add r14, 1
mov qword [rsp + 0x40], r14
add esi, 1
mov dword [rsp + 0x58], esi
add r15d, 1
mov dword [rsp + 0x60], r15d
jmp 0x14006ef50
mov dword [r12 + 0x130], esi
mov dword [rsp + 0x48], 1
jmp 0x14006f0f7
test rbx, rbx
je 0x14006f105
mov rcx, rbx
call fcn.14008c4f0
nop
jmp 0x14006f10c
cmp r13, 0xffffffffffffffff
je 0x14006f11c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.140081300
mov eax, dword [rsp + 0x48]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret