Function at 0x14008d510
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x868
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x182
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x888]
mov rax, qword [0x14039e188]
xor rax, rbp
mov qword [rbp + 0x838], rax
mov dword [rbp + 0x814], 0
lea rcx, [0x140ed6247]
call fcn.140139478
mov dword [rbp + 4], 0xff
lea rcx, [rbp + 0x28]
call fcn.140084c30
nop
mov rcx, qword [rbp + 0x868]
call fcn.14007e7e0
lea rdx, [0x1402bc50c]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14008d5c7
lea rdx, str.popen___failed_
lea rcx, [rbp + 0x328]
call fcn.140085890
lea rdx, [0x140395df0]
lea rcx, [rbp + 0x328]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x140db12e0]
call fcn.14008d2a0
mov r9, qword [rbp + 0x68]
mov r8d, 0x100000
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x14008d655
lea rcx, [0x140db12e0]
call fcn.14008d2a0
mov r8, qword [rbp + 0x88]
mov rdx, rax
lea rcx, [rbp + 0x358]
call fcn.140084470
mov qword [rbp + 0x828], rax
mov rax, qword [rbp + 0x828]
mov qword [rbp + 0x830], rax
mov rdx, qword [rbp + 0x830]
lea rcx, [rbp + 0x28]
call fcn.140086b50
nop
lea rcx, [rbp + 0x358]
call fcn.14007cef0
jmp 0x14008d5c7
jmp 0x14008d657
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov dword [rbp + 4], eax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0xa8]
call fcn.1400842b0
mov eax, dword [rbp + 4]
mov dword [rbp + 0xc8], eax
lea rdx, [0x1402bc520]
lea rcx, [rbp + 0x398]
call fcn.14007cb10
nop
lea rdx, [0x1402bc4dc]
lea rcx, [rbp + 0x3d8]
call fcn.14007cb10
nop
lea rax, [rbp + 0x418]
mov qword [rbp + 0x458], rax
lea rdx, [rbp + 0xa8]
mov rcx, qword [rbp + 0x458]
call fcn.1400842b0
mov qword [rbp + 0x828], rax
lea r9, [rbp + 0x398]
lea r8, [rbp + 0x3d8]
mov rdx, qword [rbp + 0x828]
lea rcx, [rbp + 0x478]
call fcn.14008ffc0
mov qword [rbp + 0x830], rax
mov rdx, qword [rbp + 0x830]
lea rcx, [rbp + 0xa8]
call fcn.14007d090
lea rcx, [rbp + 0x478]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x3d8]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x398]
call fcn.14007cef0
lea rdx, str._br_
lea rcx, [rbp + 0x4b8]
call fcn.14007cb10
nop
lea rdx, [0x1402bc52c]
lea rcx, [rbp + 0x4f8]
call fcn.14007cb10
nop
lea rax, [rbp + 0x538]
mov qword [rbp + 0x578], rax
lea rdx, [rbp + 0xa8]
mov rcx, qword [rbp + 0x578]
call fcn.1400842b0
mov qword [rbp + 0x828], rax
lea r9, [rbp + 0x4b8]
lea r8, [rbp + 0x4f8]
mov rdx, qword [rbp + 0x828]
lea rcx, [rbp + 0x598]
call fcn.14008ffc0
mov qword [rbp + 0x830], rax
mov rdx, qword [rbp + 0x830]
lea rcx, [rbp + 0xa8]
call fcn.14007d090
lea rcx, [rbp + 0x598]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x4f8]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x4b8]
call fcn.14007cef0
lea rdx, [0x1402bc259]
lea rcx, [rbp + 0x5d8]
call fcn.14007cb10
nop
lea rdx, [0x1402bc530]
lea rcx, [rbp + 0x618]
call fcn.14007cb10
nop
lea rax, [rbp + 0x658]
mov qword [rbp + 0x698], rax
lea rdx, [rbp + 0xa8]
mov rcx, qword [rbp + 0x698]
call fcn.1400842b0
mov qword [rbp + 0x828], rax
lea r9, [rbp + 0x5d8]
lea r8, [rbp + 0x618]
mov rdx, qword [rbp + 0x828]
lea rcx, [rbp + 0x6b8]
call fcn.14008ffc0
mov qword [rbp + 0x830], rax
mov rdx, qword [rbp + 0x830]
lea rcx, [rbp + 0xa8]
call fcn.14007d090
lea rcx, [rbp + 0x6b8]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x618]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x5d8]
call fcn.14007cef0
lea rdx, [0x1402bc534]
lea rcx, [rbp + 0x6f8]
call fcn.14007cb10
nop
lea rdx, str._DIR_
lea rcx, [rbp + 0x738]
call fcn.14007cb10
nop
lea rax, [rbp + 0x778]
mov qword [rbp + 0x7b8], rax
lea rdx, [rbp + 0xa8]
mov rcx, qword [rbp + 0x7b8]
call fcn.1400842b0
mov qword [rbp + 0x828], rax
lea r9, [rbp + 0x6f8]
lea r8, [rbp + 0x738]
mov rdx, qword [rbp + 0x828]
lea rcx, [rbp + 0x7d8]
call fcn.14008ffc0
mov qword [rbp + 0x830], rax
mov rdx, qword [rbp + 0x830]
lea rcx, [rbp + 0xa8]
call fcn.14007d090
lea rcx, [rbp + 0x7d8]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x738]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x6f8]
call fcn.14007cef0
lea rdx, [rbp + 0xa8]
mov rcx, qword [rbp + 0x860]
call fcn.140085330
mov eax, dword [rbp + 0x814]
or eax, 1
mov dword [rbp + 0x814], eax
lea rcx, [rbp + 0xa8]
call fcn.14007cf40
nop
lea rcx, [rbp + 0x28]
call fcn.14007cef0
nop
mov rcx, qword [rbp + 0x868]
call fcn.14007cef0
mov rax, qword [rbp + 0x860]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140139404
mov rax, rdi
mov rcx, qword [rbp + 0x838]
xor rcx, rbp
call fcn.1401395c0
lea rsp, [rbp + 0x848]
pop rdi
pop rbp
ret