Function at 0x14009ecc8
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 [0x140729900]
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, [0x140749998]
mov rdx, qword [0x140749990]
lea rcx, [rbp - 0x50]
call fcn.14000a880
nop
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x50]
call fcn.140009dc0
nop
mov ecx, dword [rsi + 0x100]
test ecx, ecx
je 0x14009ed7a
sub ecx, 1
je 0x14009ed71
sub ecx, 1
je 0x14009ed68
cmp ecx, 1
jne 0x14009f117
lea r14, [rsi + 0x158]
jmp 0x14009ed81
lea r14, [rsi + 0x148]
jmp 0x14009ed81
lea r14, [rsi + 0x138]
jmp 0x14009ed81
lea r14, [rsi + 0x128]
test r14, r14
je 0x14009f117
lea r12, [rsi + 0x108]
mov rax, qword [r14]
mov r15, qword [rax + 8]
mov rbx, qword [r14]
jmp 0x14009edb9
lea rcx, [r15 + 0x20]
mov rdx, r12
call fcn.140012430
test eax, eax
jns 0x14009edb3
mov r15, qword [r15 + 0x10]
jmp 0x14009edb9
mov rbx, r15
mov r15, qword [r15]
cmp byte [r15 + 0x19], dil
je 0x14009ed9d
mov rax, qword [r14]
cmp rbx, rax
je 0x14009edd7
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.140012430
test eax, eax
jns 0x14009edda
mov rbx, qword [r14]
mov rax, qword [r14]
cmp rbx, rax
je 0x14009ee5d
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.140014bfc
mov r12, rax
lea rax, [rsp + 0x50]
mov r14d, 1
cmp rax, r12
je 0x14009ee35
xor r8d, r8d
mov dl, r14b
lea rcx, [rsp + 0x50]
call fcn.140009e10
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.1400118f0
nop
lea rcx, [rsp + 0x70]
call fcn.140009da0
nop
mov rax, qword [rbx + 0x48]
cmp rax, r14
jbe 0x14009eec6
mov r8, qword [r15]
mov r8, qword [r8]
lea rdx, [rbp + 0x50]
mov rcx, r15
call fcn.14009fad0
jmp 0x14009eec6
mov rdx, r12
lea rcx, [rbp - 0x70]
call fcn.14001533c
nop
lea rdx, [rsi + 0x2a0]
xor r9d, r9d
mov r8, rax
lea rcx, [rsp + 0x70]
call fcn.140014bfc
mov rbx, rax
lea rax, [rsp + 0x50]
mov r14d, 1
cmp rax, rbx
je 0x14009eeb2
xor r8d, r8d
mov dl, r14b
lea rcx, [rsp + 0x50]
call fcn.140009e10
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400118f0
nop
lea rcx, [rsp + 0x70]
call fcn.140009da0
nop
lea rcx, [rbp - 0x70]
call fcn.140009da0
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.14000acc0
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 0x14009f0f2
test eax, eax
je 0x14009f0f2
mov rcx, qword [rsi + 0x208]
test rcx, rcx
je 0x14009ef6d
mov rdx, r14
call fcn.140280f10
mov qword [rsi + 0x208], rdi
mov r12b, dil
mov eax, dword [str.HTTP_]
mov dword [rbp + 0x50], eax
movzx eax, word [0x14060ff60]
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 0x14009efd9
mov r8d, 5
lea rdx, str.HTTP_
lea rcx, [rbp + 0x50]
call fcn.1402adba0
movzx r12d, dil
test eax, eax
cmove r12d, r14d
cmp byte [rsi + 0x224], dil
jne 0x14009f085
test r12b, r12b
jne 0x14009f085
mov edx, r15d
mov rcx, rsi
call fcn.14009f15c
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.14000acc0
mov ecx, dword [rsi + 0x210]
call fcn.1400d7300
mov qword [rsi + 0x208], rax
test rax, rax
je 0x14009f077
mov r8, qword [rsi + 0x1f8]
lea rdx, [rsi + 0x1e8]
cmp qword [rdx + 0x18], 0x10
jb 0x14009f058
mov rdx, qword [rdx]
mov rcx, qword [rsi + 0x208]
call fcn.140287310
mov rdx, qword [rsi + 0x1f8]
mov rcx, qword [rsi + 0x208]
add rdx, rcx
jmp 0x14009f0c5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009f117
mov rcx, r15
call fcn.1400d7300
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.14000acc0
mov rcx, qword [rsi + 0x208]
mov rdx, rcx
test rcx, rcx
mov rcx, rbx
je 0x14009f07a
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 0x14009f11d
jmp 0x14009f11a
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.14000acc0
jmp 0x14009f11d
mov r14b, dil
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.140009da0
nop
lea rcx, [rbp - 0x50]
call fcn.14000a9d0
mov al, dil
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.1402812e0
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