Function at 0x14007ba50
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400d3168]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp + 0x58], rdx
mov byte [rcx + 0x60], 0
call sub.MSVCP140.dll__Xtime_get_ticks
mov r8d, dword [0x1400d45f8]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + r8*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1400d43f0], ecx
jg 0x14007be6d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14007bada
mov rdx, qword [rdi]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
lea rcx, [rbp + 0x80]
call fcn.14000c740
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x80], r14
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x7c], edx
cmp qword [rbp + 0x110], 0
jne 0x14007bc08
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14007bb42
mov rdx, qword [rdi]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
lea rcx, [rsp + 0x30]
call fcn.14000c740
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r14
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rbp + 0x90]
call fcn.140015970
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::swap_class_std::basic_istream_char__struct_std::char_traits_char______ptr64____ptr64]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x90]
call fcn.14007f410
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r14
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x40]
call fcn.14000dff0
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbp + 0x110], 0
je 0x14007bb35
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
mov r8b, 0xd
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.140078460
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x14007bd68
nop dword [rax]
lea r11, [rbp + 0x60]
mov r9, qword [rbp + 0x78]
cmp r9, 0x10
setae al
mov r10, qword [rbp + 0x60]
cmovae r11, r10
mov rbx, qword [rbp + 0x70]
add r11, rbx
lea rcx, [rbp + 0x60]
test al, al
je 0x14007bc8f
mov rax, r10
lea r8, [rbx + r10]
jmp 0x14007bc97
lea r8, [rcx + rbx]
lea rax, [rbp + 0x60]
cmp rax, r8
je 0x14007bce9
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, 0xd
je 0x14007bcb5
cmp cl, 0xa
je 0x14007bcb5
inc rax
cmp rax, r8
jne 0x14007bca0
cmp rax, r8
je 0x14007bce9
lea rcx, [rax + 1]
cmp rcx, r8
je 0x14007bce9
movzx edx, byte [rcx]
cmp dl, 0xd
je 0x14007bcd5
cmp dl, 0xa
je 0x14007bcd5
mov byte [rax], dl
inc rax
inc rcx
cmp rcx, r8
jne 0x14007bcc3
mov r9, qword [rbp + 0x78]
mov rbx, qword [rbp + 0x70]
mov r10, qword [rbp + 0x60]
lea rcx, [rbp + 0x60]
cmp r9, 0x10
setae dl
cmovae rcx, r10
mov r9, rax
sub r9, rcx
sub r11, rax
mov rax, rbx
sub rax, r9
cmp rax, r11
cmovb r11, rax
lea rcx, [rbp + 0x60]
test dl, dl
cmovne rcx, r10
add rcx, r9
sub rbx, r11
mov r8, rbx
sub r8, r9
inc r8
lea rdx, [rcx + r11]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0x70], rbx
xor r8d, r8d
lea rdx, [rbp + 0x60]
mov rcx, rsi
call fcn.14007a190
mov r8b, 0xd
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.140078460
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x14007bc60
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x14007bda7
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007bda1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007bda1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140095874
nop
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x80], r14
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x7c], edx
lea rcx, [rbp + 0x90]
call fcn.14000dff0
lea rcx, [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x130]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14007be2c
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14007be27
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14007be66
mov rcx, r8
call fcn.140095874
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140095c20
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [0x1400d43f0]
call fcn.140095a04
cmp dword [0x1400d43f0], 0xffffffff
jne 0x14007bab9
call fcn.1400814b0
mov qword [0x1400d43e8], rax
lea rcx, [0x1400d43f0]
call fcn.1400959a4
jmp 0x14007bab9