Function at 0x18001a340
Capabilities:
Read file on windows

Disassembly:
push r12
push r13
push r15
sub rsp, 0x280
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx eax, word [0x18008e0a0]
xor r13d, r13d
mov r15, rcx
mov dword [rsp + 0x30], r13d
lea rcx, [rsp + 0x52]
mov dword [rsp + 0x38], r13d
xor edx, edx
mov dword [rsp + 0x34], r13d
mov r8d, 0x206
mov word [rsp + 0x50], ax
call fcn.18005f7c0
mov rcx, qword [r15 + 8]
lea r9d, [r13 + 2]
xor r8d, r8d
lea edx, [r13 - 0x6a]
mov r12d, r13d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r15 + 8]
lea r9, [rsp + 0x30]
lea r8d, [r13 + 0x6a]
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x30], 0x6a
jne 0x18001a5f2
lea rdx, [rsp + 0x50]
mov ecx, r13d
lea r8, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x18001a5f2
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x18001a5f2
add rcx, 2
cmp rcx, 0x36
jne 0x18001a3e1
lea r9d, [rcx - 0x35]
mov qword [rsp + 0x2b0], rbp
mov rcx, qword [r15 + 8]
lea edx, [r9 - 0x6f]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r15 + 8]
lea r9, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x38]
mov r9d, 1
add edx, dword [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [r15 + 8]
neg edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r15 + 8]
lea r9, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, r13d
cmp dword [rsp + 0x34], r13d
jbe 0x18001a5cb
mov qword [rsp + 0x2a8], rbx
lea rbx, [r15 + 0x2718]
mov qword [rsp + 0x2b8], rsi
mov qword [rsp + 0x278], rdi
mov qword [rsp + 0x270], r14
nop dword [rax + rax]
mov rcx, qword [r15 + 8]
lea r9, [rsp + 0x30]
mov esi, ebp
mov r8d, 0x20
shl rsi, 5
add rsi, r15
mov edi, ebp
mov qword [rsp + 0x20], r13
lea r14, [rsi + 0x5d228]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rcx, [rdi + 0x2e92]
mov dword [r14], r13d
shl rcx, 5
mov dword [rsi + 0x5d22c], r13d
mov qword [rsp + 0x40], r14
mov rax, qword [rcx + r15]
add qword [rsi + 0x5d230], rax
mov rax, qword [rsi + 0x5d238]
sub rax, qword [rsi + 0x5d230]
inc rax
mov qword [rcx + r15], r13
mov rcx, qword [rbx + 8]
add r12, rax
lea rax, [rsp + 0x40]
cmp rax, rcx
jae 0x18001a57b
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
cmp rax, rdx
ja 0x18001a57b
lea rdi, [rsp + 0x40]
sub rdi, rax
sar rdi, 3
cmp rcx, qword [rbx + 0x10]
jne 0x18001a566
mov edx, 1
mov rcx, rbx
call fcn.18001b740
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x18001a59a
mov rax, qword [rbx]
mov rcx, qword [rax + rdi*8]
mov qword [rdx], rcx
jmp 0x18001a59a
cmp rcx, qword [rbx + 0x10]
jne 0x18001a58e
mov edx, 1
mov rcx, rbx
call fcn.18001b740
mov rax, qword [rbx + 8]
test rax, rax
je 0x18001a59a
mov qword [rax], r14
add qword [rbx + 8], 8
inc ebp
cmp ebp, dword [rsp + 0x34]
jb 0x18001a4c0
mov r14, qword [rsp + 0x270]
mov rdi, qword [rsp + 0x278]
mov rsi, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2a8]
mov rcx, qword [r15 + 0x5d370]
mov eax, 1
mov rbp, qword [rsp + 0x2b0]
sub rcx, r12
mov qword [r15 + 0x5d388], rcx
mov qword [r15 + 0x5d380], rcx
jmp 0x18001a5f4
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18003ff90
add rsp, 0x280
pop r15
pop r13
pop r12
ret