Function at 0x140041cb0
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.140048bc0
nop
inc dword [r14 + 0x134]
cmp qword [r14 + 0x128], r15
jne 0x140042089
lea rcx, [r14 + 8]
call fcn.140046400
test eax, eax
jne 0x140041d37
lea rcx, [rsp + 0x70]
call fcn.140048cc0
xor eax, eax
jmp 0x1400420c8
mov ebx, r15d
mov dword [rsp + 0x58], ebx
nop
cmp ebx, 0x32
jge 0x140041d91
cmp r12, 0xffffffffffffffff
jne 0x140041da8
test ebx, ebx
jle 0x140041d5a
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.140040a20
mov r12, rax
mov qword [rsp + 0x50], rax
jmp 0x140041d40
cmp r12, 0xffffffffffffffff
jne 0x140041da8
lea rcx, [rsp + 0x70]
call fcn.140048cc0
xor eax, eax
jmp 0x1400420c8
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140041dcb
lea rcx, [rsp + 0x70]
call fcn.140048cc0
xor eax, eax
jmp 0x1400420c8
lea eax, [rdi + 1]
mov ebx, eax
mov ecx, eax
call fcn.140063b18
mov rsi, rax
mov qword [rsp + 0x68], rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.140065dd0
test rsi, rsi
jne 0x140041e02
lea rcx, [rsp + 0x70]
call fcn.140048cc0
xor eax, eax
jmp 0x1400420c8
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 0x140041e33
lea rcx, [rsp + 0x70]
call fcn.140048cc0
xor eax, eax
jmp 0x1400420c8
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, [0x1401034f4]
mov rcx, rsi
call fcn.1400650cc
mov qword [rsp + 0x40], rax
nop dword [rax]
test rax, rax
je 0x140041e9e
inc dword [r14 + 0x130]
inc rax
mov qword [rsp + 0x40], rax
mov rcx, r13
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140041e77
add rcx, rsi
cmp rax, rcx
jae 0x140041e9c
lea rdx, [0x1400bd280]
mov rcx, rax
call fcn.1400650cc
mov qword [rsp + 0x40], rax
jmp 0x140041e60
mov ecx, dword [r14 + 0x130]
mov eax, 8
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140063b18
mov qword [r14 + 0x128], rax
lea rdx, [0x1401034f4]
mov rcx, rsi
call fcn.1400650cc
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 0x14004207a
lea rdx, [0x1401034f8]
mov rcx, rdi
call fcn.1400650cc
mov rbx, rax
mov qword [rsp + 0xe0], rax
test rax, rax
je 0x14004206d
mov ecx, 0x18
call fcn.140036960
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.140063b18
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.14006f330
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, [0x1400bd280]
mov rcx, rax
call fcn.1400650cc
mov rdi, rax
test rax, rax
jne 0x140041fdc
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140041fd0
add rdi, rsi
mov rbx, rdi
sub rbx, qword [rsp + 0x40]
lea rcx, [rbx + 1]
call fcn.140063b18
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.14006f330
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 0x14004207a
inc rdi
mov qword [rsp + 0x40], rdi
inc r15d
mov dword [rsp + 0x5c], r15d
inc r13d
mov dword [rsp + 0x60], r13d
jmp 0x140041ef0
mov dword [r14 + 0x130], r15d
mov dword [rsp + 0x48], 1
jmp 0x140042095
test rsi, rsi
je 0x1400420a3
mov rcx, rsi
call fcn.140063b20
nop
jmp 0x1400420aa
cmp r12, 0xffffffffffffffff
je 0x1400420ba
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.140048cc0
mov eax, dword [rsp + 0x48]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret