Function at 0x1400359a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140173240]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x48], 0
xor eax, eax
mov word [rsp + 0x28], ax
xor eax, eax
mov word [rsp + 0x2c], ax
xor eax, eax
mov word [rsp + 0x34], ax
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0xc0], 0
jne 0x140035a1e
mov dword [rsp + 0x50], 0xffffffff
mov rcx, qword [rsp + 0xa8]
call fcn.140001f00
mov eax, dword [rsp + 0x50]
jmp 0x140035da9
mov rcx, qword [rsp + 0xa8]
call fcn.140001eb0
lea rdx, [0x140127950]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140035a66
mov dword [rsp + 0x54], 0xffffffff
mov rcx, qword [rsp + 0xa8]
call fcn.140001f00
mov eax, dword [rsp + 0x54]
jmp 0x140035da9
mov r9, qword [rsp + 0x48]
mov r8d, 1
mov edx, 0x25
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], 0
cmp dword [rsp + 0x40], 0
jle 0x140035b2f
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.140035dd0
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xffff
je 0x140035add
movzx eax, word [rsp + 0x34]
cmp eax, 0xffff
jne 0x140035add
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
mov byte [rax + 0x940c], 1
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x34], ax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x140035af8
jmp 0x140035b2f
mov r9, qword [rsp + 0x48]
mov r8d, 1
mov edx, 0x25
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jg 0x140035b20
jmp 0x140035b2f
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
jmp 0x140035a8d
movsxd rax, dword [rsp + 0x3c]
xor edx, edx
mov ecx, 0x25
div rcx
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov dword [rsp + 0x24], 0
jmp 0x140035b62
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movzx eax, word [rax + 4]
cmp dword [rsp + 0x24], eax
jge 0x140035bc6
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movsxd rcx, dword [rsp + 0x24]
imul rcx, rcx, 0x25
mov eax, dword [rax + rcx + 0xd]
cmp dword [rsp + 0x38], eax
jbe 0x140035ba4
mov byte [rsp + 0x20], 1
jmp 0x140035bc6
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movsxd rcx, dword [rsp + 0x24]
imul rcx, rcx, 0x25
mov eax, dword [rax + rcx + 0xd]
mov dword [rsp + 0x38], eax
jmp 0x140035b58
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140035c1d
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
mov byte [rax + 0x940c], 1
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0xc0]
add rcx, 0xc
movzx r8d, word [rax + 4]
mov rdx, rcx
mov rcx, qword [rsp + 0xa0]
call fcn.140036070
nop
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
jmp 0x140035c3e
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movzx eax, word [rax + 0xa]
cmp dword [rsp + 0x24], eax
jge 0x140035ca8
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movsxd rcx, dword [rsp + 0x24]
imul rcx, rcx, 0x25
mov eax, dword [rax + rcx + 0x4a0d]
cmp dword [rsp + 0x38], eax
jbe 0x140035c83
mov byte [rsp + 0x20], 1
jmp 0x140035ca8
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movsxd rcx, dword [rsp + 0x24]
imul rcx, rcx, 0x25
mov eax, dword [rax + rcx + 0x4a0d]
mov dword [rsp + 0x38], eax
jmp 0x140035c34
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140035d02
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
mov byte [rax + 0x940c], 1
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0xc0]
add rcx, 0x4a0c
movzx r8d, word [rax + 0xa]
mov rdx, rcx
mov rcx, qword [rsp + 0xa0]
call fcn.140036070
nop
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movzx eax, word [rax + 6]
mov word [rsp + 0x28], ax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movzx eax, word [rax]
mov word [rsp + 0x2c], ax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movzx ecx, word [rsp + 0x28]
mov word [rax + 8], cx
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movzx ecx, word [rsp + 0x28]
mov word [rax + 6], cx
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movzx ecx, word [rsp + 0x2c]
mov word [rax + 2], cx
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xc0]
movzx ecx, word [rsp + 0x2c]
mov word [rax], cx
mov dword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xa8]
call fcn.140001f00
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140100c60
add rsp, 0x98
ret