Function at 0x1400516d0
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.1400639f0
nop
inc dword [r14 + 0x134]
cmp qword [r14 + 0x128], r15
jne 0x140051aa9
lea rcx, [r14 + 8]
call fcn.140056560
test eax, eax
jne 0x140051757
lea rcx, [rsp + 0x70]
call fcn.140063af0
xor eax, eax
jmp 0x140051ae8
mov ebx, r15d
mov dword [rsp + 0x58], ebx
nop
cmp ebx, 0x32
jge 0x1400517b1
cmp r12, 0xffffffffffffffff
jne 0x1400517c8
test ebx, ebx
jle 0x14005177a
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.140050440
mov r12, rax
mov qword [rsp + 0x50], rax
jmp 0x140051760
cmp r12, 0xffffffffffffffff
jne 0x1400517c8
lea rcx, [rsp + 0x70]
call fcn.140063af0
xor eax, eax
jmp 0x140051ae8
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400517eb
lea rcx, [rsp + 0x70]
call fcn.140063af0
xor eax, eax
jmp 0x140051ae8
lea eax, [rdi + 1]
mov ebx, eax
mov ecx, eax
call fcn.1400278b0
mov rsi, rax
mov qword [rsp + 0x68], rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.1400291f0
test rsi, rsi
jne 0x140051822
lea rcx, [rsp + 0x70]
call fcn.140063af0
xor eax, eax
jmp 0x140051ae8
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 0x140051853
lea rcx, [rsp + 0x70]
call fcn.140063af0
xor eax, eax
jmp 0x140051ae8
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, [0x1400b1a10]
mov rcx, rsi
call fcn.140029390
mov qword [rsp + 0x40], rax
nop dword [rax]
test rax, rax
je 0x1400518be
inc dword [r14 + 0x130]
inc rax
mov qword [rsp + 0x40], rax
mov rcx, r13
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140051897
add rcx, rsi
cmp rax, rcx
jae 0x1400518bc
lea rdx, [0x1400ad4d0]
mov rcx, rax
call fcn.140029390
mov qword [rsp + 0x40], rax
jmp 0x140051880
mov ecx, dword [r14 + 0x130]
mov eax, 8
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400278b0
mov qword [r14 + 0x128], rax
lea rdx, [0x1400b1a10]
mov rcx, rsi
call fcn.140029390
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 0x140051a9a
lea rdx, [0x1400b1a14]
mov rcx, rdi
call fcn.140029390
mov rbx, rax
mov qword [rsp + 0xe0], rax
test rax, rax
je 0x140051a8d
mov ecx, 0x18
call fcn.140026f2c
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.1400278b0
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.14002f5e0
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, [0x1400ad4d0]
mov rcx, rax
call fcn.140029390
mov rdi, rax
test rax, rax
jne 0x1400519fc
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400519f0
add rdi, rsi
mov rbx, rdi
sub rbx, qword [rsp + 0x40]
lea rcx, [rbx + 1]
call fcn.1400278b0
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.14002f5e0
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 0x140051a9a
inc rdi
mov qword [rsp + 0x40], rdi
inc r15d
mov dword [rsp + 0x5c], r15d
inc r13d
mov dword [rsp + 0x60], r13d
jmp 0x140051910
mov dword [r14 + 0x130], r15d
mov dword [rsp + 0x48], 1
jmp 0x140051ab5
test rsi, rsi
je 0x140051ac3
mov rcx, rsi
call fcn.140026f24
nop
jmp 0x140051aca
cmp r12, 0xffffffffffffffff
je 0x140051ada
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.140063af0
mov eax, dword [rsp + 0x48]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret