Function at 0x14007ca58
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 [0x1406ca7c8]
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, [0x1406e9748]
mov rdx, qword [0x1406e9740]
lea rcx, [rbp - 0x50]
call fcn.14000a0b4
nop
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x50]
call fcn.140009c0c
nop
mov ecx, dword [rsi + 0x100]
test ecx, ecx
je 0x14007cb0a
sub ecx, 1
je 0x14007cb01
sub ecx, 1
je 0x14007caf8
cmp ecx, 1
jne 0x14007cea7
lea r14, [rsi + 0x158]
jmp 0x14007cb11
lea r14, [rsi + 0x148]
jmp 0x14007cb11
lea r14, [rsi + 0x138]
jmp 0x14007cb11
lea r14, [rsi + 0x128]
test r14, r14
je 0x14007cea7
lea r12, [rsi + 0x108]
mov rax, qword [r14]
mov r15, qword [rax + 8]
mov rbx, qword [r14]
jmp 0x14007cb49
lea rcx, [r15 + 0x20]
mov rdx, r12
call fcn.140011750
test eax, eax
jns 0x14007cb43
mov r15, qword [r15 + 0x10]
jmp 0x14007cb49
mov rbx, r15
mov r15, qword [r15]
cmp byte [r15 + 0x19], dil
je 0x14007cb2d
mov rax, qword [r14]
cmp rbx, rax
je 0x14007cb67
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.140011750
test eax, eax
jns 0x14007cb6a
mov rbx, qword [r14]
mov rax, qword [r14]
cmp rbx, rax
je 0x14007cbed
lea r15, [rbx + 0x40]
mov rax, qword [r15]
mov r8, qword [rax]
add r8, 0x10
lea rdx, [rsi + 0x2a0]
xor r9d, r9d
lea rcx, [rsp + 0x70]
call fcn.140012940
mov r12, rax
lea rax, [rsp + 0x50]
mov r14d, 1
cmp rax, r12
je 0x14007cbc5
xor r8d, r8d
mov dl, r14b
lea rcx, [rsp + 0x50]
call fcn.140008e38
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.140009900
nop
lea rcx, [rsp + 0x70]
call fcn.140008d78
nop
mov rax, qword [rbx + 0x48]
cmp rax, r14
jbe 0x14007cc56
mov r8, qword [r15]
mov r8, qword [r8]
lea rdx, [rbp + 0x50]
mov rcx, r15
call fcn.14007d860
jmp 0x14007cc56
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.140012e94
nop
lea rdx, [rsi + 0x2a0]
xor r9d, r9d
mov r8, rax
lea rcx, [rsp + 0x70]
call fcn.140012940
mov rbx, rax
lea rax, [rsp + 0x50]
mov r14d, 1
cmp rax, rbx
je 0x14007cc42
xor r8d, r8d
mov dl, r14b
lea rcx, [rsp + 0x50]
call fcn.140008e38
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140009900
nop
lea rcx, [rsp + 0x70]
call fcn.140008d78
nop
lea rcx, [rbp - 0x70]
call fcn.140008d78
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.14000a4e0
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 0x14007ce82
test eax, eax
je 0x14007ce82
mov rcx, qword [rsi + 0x208]
test rcx, rcx
je 0x14007ccfd
mov rdx, r14
call fcn.1400bf2b8
mov qword [rsi + 0x208], rdi
mov r12b, dil
mov eax, dword [str.HTTP_]
mov dword [rbp + 0x50], eax
movzx eax, word [0x1405b59a4]
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 0x14007cd69
mov r8d, 5
lea rdx, str.HTTP_
lea rcx, [rbp + 0x50]
call fcn.140276300
movzx r12d, dil
test eax, eax
cmove r12d, r14d
cmp byte [rsi + 0x224], dil
jne 0x14007ce15
test r12b, r12b
jne 0x14007ce15
mov edx, r15d
mov rcx, rsi
call fcn.14007ceec
mov rcx, qword [rsi + 0x1f8]
add ecx, r15d
mov dword [rsi + 0x210], ecx
mov dword [rsp + 0x20], ecx
lea r9, str.m_ulResponseSize___d
mov edx, 0x200
mov r8d, 0x3f5
lea rcx, [rbp - 0x50]
call fcn.14000a4e0
mov ecx, dword [rsi + 0x210]
call fcn.1400b41f0
mov qword [rsi + 0x208], rax
test rax, rax
je 0x14007ce07
mov r8, qword [rsi + 0x1f8]
lea rdx, [rsi + 0x1e8]
cmp qword [rdx + 0x18], 0x10
jb 0x14007cde8
mov rdx, qword [rdx]
mov rcx, qword [rsi + 0x208]
call fcn.140251cc0
mov rdx, qword [rsi + 0x1f8]
mov rcx, qword [rsi + 0x208]
add rdx, rcx
jmp 0x14007ce55
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007cea7
mov rcx, r15
call fcn.1400b41f0
mov qword [rsi + 0x208], rax
mov dword [rsi + 0x210], r15d
mov dword [rsp + 0x20], r15d
lea r9, str.m_ulResponseSize___d
mov edx, 0x200
mov r8d, 0x409
lea rcx, [rbp - 0x50]
call fcn.14000a4e0
mov rcx, qword [rsi + 0x208]
mov rdx, rcx
test rcx, rcx
mov rcx, rbx
je 0x14007ce0a
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 0x14007cead
jmp 0x14007ceaa
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.14000a4e0
jmp 0x14007cead
mov r14b, dil
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.140008d78
nop
lea rcx, [rbp - 0x50]
call fcn.14000a1fc
mov al, dil
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.14024cd60
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