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

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rax - 0x40], 0xfffffffffffffffe
mov r14, rcx
or r13, 0xffffffffffffffff
mov r12, r13
mov qword [rax - 0x78], r13
xor r15d, r15d
mov dword [rax - 0x80], r15d
mov esi, r15d
mov qword [rax - 0x60], r15
or r9d, 0xffffffff
lea r8, str.LoadINISections
mov rdx, qword [rcx + 0x138]
lea rcx, [rax - 0x58]
call fcn.140072bd0
nop
inc dword [r14 + 0x134]
cmp qword [r14 + 0x128], r15
jne 0x140060c09
lea rcx, [r14 + 8]
call fcn.140065740
test eax, eax
jne 0x1400608b7
lea rcx, [rsp + 0x70]
call fcn.140072cd0
xor eax, eax
jmp 0x140060c48
mov ebx, r15d
mov dword [rsp + 0x58], ebx
nop
cmp ebx, 0x32
jge 0x140060911
cmp r12, 0xffffffffffffffff
jne 0x140060928
test ebx, ebx
jle 0x1400608da
lea ecx, [r12 + 0x15]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [r14 + 8]
call fcn.14005f5a0
mov r12, rax
mov qword [rsp + 0x50], rax
jmp 0x1400608c0
cmp r12, 0xffffffffffffffff
jne 0x140060928
lea rcx, [rsp + 0x70]
call fcn.140072cd0
xor eax, eax
jmp 0x140060c48
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14006094b
lea rcx, [rsp + 0x70]
call fcn.140072cd0
xor eax, eax
jmp 0x140060c48
lea eax, [rdi + 1]
mov ebx, eax
mov ecx, eax
call fcn.140036520
mov rsi, rax
mov qword [rsp + 0x68], rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.140037fb0
test rsi, rsi
jne 0x140060982
lea rcx, [rsp + 0x70]
call fcn.140072cd0
xor eax, eax
jmp 0x140060c48
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0xd0]
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400609b3
lea rcx, [rsp + 0x70]
call fcn.140072cd0
xor eax, eax
jmp 0x140060c48
mov byte [rdi + rsi], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, r13
mov qword [rsp + 0x50], r13
lea rdx, [0x1400c32d0]
mov rcx, rsi
call fcn.140038150
mov qword [rsp + 0x40], rax
nop dword [rax]
test rax, rax
je 0x140060a1e
inc dword [r14 + 0x130]
inc rax
mov qword [rsp + 0x40], rax
mov rcx, r13
inc rcx
cmp byte [rsi + rcx], 0
jne 0x1400609f7
add rcx, rsi
cmp rax, rcx
jae 0x140060a1c
lea rdx, [0x1400bdfe0]
mov rcx, rax
call fcn.140038150
mov qword [rsp + 0x40], rax
jmp 0x1400609e0
mov ecx, dword [r14 + 0x130]
mov eax, 8
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140036520
mov qword [r14 + 0x128], rax
lea rdx, [0x1400c32d0]
mov rcx, rsi
call fcn.140038150
mov rdi, rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x5c], r15d
mov r13d, r15d
mov dword [rsp + 0x60], r15d
nop dword [rax]
nop dword [rax + rax]
cmp r13d, dword [r14 + 0x130]
jae 0x140060bfa
lea rdx, [0x1400c32d4]
mov rcx, rdi
call fcn.140038150
mov rbx, rax
mov qword [rsp + 0xe0], rax
test rax, rax
je 0x140060bed
mov ecx, 0x18
call fcn.140035b9c
mov ecx, r15d
lea rdx, [rcx*8]
mov qword [rsp + 0xd8], rdx
mov rcx, qword [r14 + 0x128]
mov qword [rdx + rcx], rax
sub rbx, rdi
mov rcx, rbx
call fcn.140036520
mov rcx, qword [r14 + 0x128]
mov r9, qword [rsp + 0xd8]
mov rdx, qword [r9 + rcx]
mov qword [rdx], rax
lea r8, [rbx - 1]
lea rdx, [rdi + 1]
mov rax, qword [r14 + 0x128]
mov rcx, qword [r9 + rax]
mov rcx, qword [rcx]
call fcn.14003e380
mov rax, qword [r14 + 0x128]
mov rcx, qword [rsp + 0xd8]
mov rcx, qword [rcx + rax]
mov rax, qword [rcx]
mov byte [rax + rbx - 1], 0
mov rax, qword [rsp + 0xe0]
inc rax
mov qword [rsp + 0x40], rax
lea rdx, [0x1400bdfe0]
mov rcx, rax
call fcn.140038150
mov rdi, rax
test rax, rax
jne 0x140060b5c
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140060b50
add rdi, rsi
mov rbx, rdi
sub rbx, qword [rsp + 0x40]
lea rcx, [rbx + 1]
call fcn.140036520
mov rcx, qword [r14 + 0x128]
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rcx + r8]
mov qword [rdx + 8], rax
mov rax, qword [r14 + 0x128]
mov rcx, qword [rax + r8]
mov r8, rbx
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rcx + 8]
call fcn.14003e380
mov rax, qword [r14 + 0x128]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rax + rdx]
mov rax, qword [rcx + 8]
sub rax, qword [rsp + 0x40]
mov byte [rax + rdi], 0
mov rax, qword [r14 + 0x128]
mov rcx, qword [rdx + rax]
mov rax, qword [rcx + 8]
mov qword [rcx + 0x10], rax
mov qword [rsp + 0x40], rdi
test rdi, rdi
je 0x140060bfa
inc rdi
mov qword [rsp + 0x40], rdi
inc r15d
mov dword [rsp + 0x5c], r15d
inc r13d
mov dword [rsp + 0x60], r13d
jmp 0x140060a70
mov dword [r14 + 0x130], r15d
mov dword [rsp + 0x48], 1
jmp 0x140060c15
test rsi, rsi
je 0x140060c23
mov rcx, rsi
call fcn.140035b94
nop
jmp 0x140060c2a
cmp r12, 0xffffffffffffffff
je 0x140060c3a
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.140072cd0
mov eax, dword [rsp + 0x48]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret