Function at 0x140096550
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r14d, r14d
mov r13, r8
mov r9, rcx
mov r12d, edx
lea r8, [0x1401043a0]
lea rcx, [rsp + 0x70]
mov edx, 0x200
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x58], r14d
mov esi, r14d
mov dword [rsp + 0x20], 5
call section..text
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
lea rcx, [rsp + 0x70]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400965f2
or eax, eax
jmp 0x14009683f
mov r9d, 1
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0x2b]
mov qword [rsp + 0x4b8], rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, 4
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x64]
mov r8d, 4
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 4
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, r14d
cmp dword [rsp + 0x50], ebx
jbe 0x14009682b
nop word [rax + rax]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x5c]
mov r8d, 4
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x5c]
mov rcx, rdi
cmp r11d, 1
jne 0x1400966d7
lea r9, [rsp + 0x40]
lea r8d, [r11 + 3]
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14009670f
cmp r11d, r12d
jne 0x1400966fc
mov esi, 1
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x4c]
lea r8d, [rsi + 3]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14009670f
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
inc ebx
cmp ebx, dword [rsp + 0x50]
jb 0x140096690
test esi, esi
je 0x14009682b
mov ecx, dword [rsp + 0x54]
test ecx, ecx
je 0x140096760
mov eax, dword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + rcx + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov r8d, 4
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
add edx, dword [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 4
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x44]
mov r8d, 4
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [rsp + 0x44]
mov ecx, ebx
call fcn.14004af90
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
mov qword [rsp + 0x20], r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9d, dword [rsp + 0x44]
cmp dword [rsp + 0x40], r9d
jne 0x14009682b
mov ecx, dword [rsp + 0x58]
mov r8, rsi
mov edx, 1
mov dword [rsp + 0x28], 0x200
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
inc eax
mov dword [rsp + 0x44], eax
call fcn.14004b048
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
jmp 0x140096837
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov rbx, qword [rsp + 0x4b8]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14004ae00
mov rsi, qword [rsp + 0x4c8]
add rsp, 0x480
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret