Function at 0x1400a7218
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rsi, rcx
xor edi, edi
mov byte [rsp + 0x30], dil
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x3b4
lea r9, str.NGTest::CIOStub::LoadResponseFromFile
lea r8, [0x1405cb2c0]
mov rdx, qword [0x1405caf48]
lea rcx, [rbp - 0x50]
call fcn.1400169f8
nop
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x50]
call fcn.14000f860
nop
mov ecx, dword [rsi + 0xf8]
test ecx, ecx
je 0x1400a72ca
sub ecx, 1
je 0x1400a72c1
sub ecx, 1
je 0x1400a72b8
cmp ecx, 1
jne 0x1400a7664
lea r14, [rsi + 0x150]
jmp 0x1400a72d1
lea r14, [rsi + 0x140]
jmp 0x1400a72d1
lea r14, [rsi + 0x130]
jmp 0x1400a72d1
lea r14, [rsi + 0x120]
test r14, r14
je 0x1400a7664
lea r12, [rsi + 0x100]
mov rax, qword [r14]
mov r15, qword [rax + 8]
mov rbx, qword [r14]
jmp 0x1400a7309
lea rcx, [r15 + 0x20]
mov rdx, r12
call fcn.14000f74c
test eax, eax
jns 0x1400a7303
mov r15, qword [r15 + 0x10]
jmp 0x1400a7309
mov rbx, r15
mov r15, qword [r15]
cmp byte [r15 + 0x19], dil
je 0x1400a72ed
mov rax, qword [r14]
cmp rbx, rax
je 0x1400a7327
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.14000f74c
test eax, eax
jns 0x1400a732a
mov rbx, qword [r14]
mov rax, qword [r14]
cmp rbx, rax
je 0x1400a73aa
lea r15, [rbx + 0x40]
mov rax, qword [r15]
mov r8, qword [rax]
add r8, 0x10
lea rdx, [rsi + 0x298]
xor r9d, r9d
lea rcx, [rsp + 0x70]
call fcn.140022014
mov r12, rax
lea rax, [rsp + 0x50]
mov r14d, 1
cmp rax, r12
je 0x1400a7385
xor r8d, r8d
mov dl, r14b
lea rcx, [rsp + 0x50]
call fcn.14000f964
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.1400111b0
nop
lea rcx, [rsp + 0x70]
call fcn.14000f670
nop
cmp qword [rbx + 0x48], r14
jbe 0x1400a7413
mov r8, qword [r15]
mov r8, qword [r8]
lea rdx, [rbp + 0x50]
mov rcx, r15
call fcn.140042d58
jmp 0x1400a7413
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.140022640
nop
lea rdx, [rsi + 0x298]
xor r9d, r9d
mov r8, rax
lea rcx, [rsp + 0x70]
call fcn.140022014
mov rbx, rax
lea rax, [rsp + 0x50]
mov r14d, 1
cmp rax, rbx
je 0x1400a73ff
xor r8d, r8d
mov dl, r14b
lea rcx, [rsp + 0x50]
call fcn.14000f964
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400111b0
nop
lea rcx, [rsp + 0x70]
call fcn.14000f670
nop
lea rcx, [rbp - 0x70]
call fcn.14000f670
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, str.Attempting_to_open_file_:__s
mov edx, 0x200
mov r8d, 0x3d9
lea rcx, [rbp - 0x50]
call fcn.140016e24
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rdi
mov r12d, 0x80
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp rbx, 0xffffffffffffffff
je 0x1400a763f
test eax, eax
je 0x1400a763f
mov rcx, qword [rsi + 0x200]
test rcx, rcx
je 0x1400a74ba
mov rdx, r14
call fcn.1400fd29c
mov qword [rsi + 0x200], rdi
mov r12b, dil
mov eax, dword [str.HTTP_]
mov dword [rbp + 0x50], eax
movzx eax, word [0x1404c8bd0]
mov word [rbp + 0x54], ax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, 5
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [rsp + 0x40], 5
jne 0x1400a7526
mov r8d, 5
lea rdx, str.HTTP_
lea rcx, [rbp + 0x50]
call fcn.140128e70
movzx r12d, dil
test eax, eax
cmove r12d, r14d
cmp byte [rsi + 0x21c], dil
jne 0x1400a75d2
test r12b, r12b
jne 0x1400a75d2
mov edx, r15d
mov rcx, rsi
call fcn.1400a76ac
mov rcx, qword [rsi + 0x1f0]
add ecx, r15d
mov dword [rsi + 0x208], ecx
mov dword [rsp + 0x20], ecx
lea r9, str.m_ulResponseSize___d
mov edx, 0x200
mov r8d, 0x3f5
lea rcx, [rbp - 0x50]
call fcn.140016e24
mov ecx, dword [rsi + 0x208]
call fcn.1400fdb44
mov qword [rsi + 0x200], rax
test rax, rax
je 0x1400a75c4
mov r8, qword [rsi + 0x1f0]
lea rdx, [rsi + 0x1e0]
cmp qword [rdx + 0x18], 0x10
jb 0x1400a75a5
mov rdx, qword [rdx]
mov rcx, qword [rsi + 0x200]
call fcn.1400fe860
mov rdx, qword [rsi + 0x1f0]
mov rcx, qword [rsi + 0x200]
add rdx, rcx
jmp 0x1400a7612
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a7664
mov rcx, r15
call fcn.1400fdb44
mov qword [rsi + 0x200], rax
mov dword [rsi + 0x208], r15d
mov dword [rsp + 0x20], r15d
lea r9, str.m_ulResponseSize___d
mov edx, 0x200
mov r8d, 0x409
lea rcx, [rbp - 0x50]
call fcn.140016e24
mov rcx, qword [rsi + 0x200]
mov rdx, rcx
test rcx, rcx
mov rcx, rbx
je 0x1400a75c7
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], r15d
jne 0x1400a766a
jmp 0x1400a7667
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.Error_loading_file__GetLastError____0x_x
mov r8d, 0x41d
mov edx, r12d
lea rcx, [rbp - 0x50]
call fcn.140016e24
jmp 0x1400a766a
mov r14b, dil
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.14000f670
nop
lea rcx, [rbp - 0x50]
call fcn.140016b40
mov al, dil
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.1400fcfd0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret