Function at 0x1400202a0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x70], 1
jle 0x1400202db
xor eax, eax
test eax, eax
jne 0x1400202d5
cmp qword [rsp + 0x38], 0
je 0x14002032f
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x58], 0
je 0x14002032f
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov edx, 2
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jg 0x14002032f
mov eax, dword [rsp + 0x30]
jmp 0x14002057d
cmp qword [rsp + 0x60], 0
je 0x140020364
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 0
je 0x140020364
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x80]
cmp eax, 3
je 0x140020364
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
jmp 0x14002032f
cmp qword [rsp + 0x60], 0
je 0x140020535
cmp dword [rsp + 0x30], 0
jl 0x140020535
mov rax, qword [rsp + 0x60]
cmp qword [rax + 8], 0
je 0x1400203c1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
cmp qword [rax + 0x110], 0
je 0x1400203c1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x110]
mov dword [rsp + 0x30], eax
jmp case.default.0x1400203fd
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x80]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
sub eax, 2
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 6
ja case.default.0x1400203fd
movsxd rax, dword [rsp + 0x44]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x20584]
add rax, rcx
jmp rax
cmp dword [rsp + 0x40], 0
jle 0x14002041e
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140072a60
mov dword [rsp + 0x30], eax
jmp case.default.0x1400203fd
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140072af0
mov dword [rsp + 0x30], eax
jmp case.default.0x1400203fd
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140072c40
mov dword [rsp + 0x30], eax
jmp case.default.0x1400203fd
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x30], 0
je 0x140020490
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov r9, qword [rcx + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [rsp + 0x30], eax
jmp 0x1400204ac
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x74]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov dword [rsp + 0x30], eax
jmp case.default.0x1400203fd
mov r9, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140072f10
mov dword [rsp + 0x30], eax
jmp case.default.0x1400203fd
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140072ff0
mov dword [rsp + 0x30], eax
jmp case.default.0x1400203fd
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x74]
call fcn.140101660
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x60], rax
jne 0x140020513
jmp 0x140020535
cmp dword [rsp + 0x30], 0
jle 0x140020522
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
jmp 0x140020364
cmp qword [rsp + 0x38], 0
je 0x140020579
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x58], 0
je 0x140020579
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov edx, 0x82
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x58]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret