Function at 0x14004c1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14066d440]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x88]
call fcn.14004e0c0
nop
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov dl, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::basic_istream_char__struct_std::char_traits_char__::_Ipfx_bool____ptr64]
mov byte [rsp + 0x90], al
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
movzx eax, al
test eax, eax
je 0x14004c427
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x10], 0
jae 0x14004c267
call fcn.14006e7a0
nop
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call fcn.14006ce00
nop
movzx eax, byte [rsp + 0xc0]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ios_char__struct_std::char_traits_char__::rdbuf_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x2c], eax
jmp 0x14004c303
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ios_char__struct_std::char_traits_char__::rdbuf_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::snextc_void____ptr64]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x44], 0xffffffff
mov eax, dword [rsp + 0x44]
cmp eax, dword [rsp + 0x2c]
jne 0x14004c31f
mov dword [rsp + 0x30], 1
jmp 0x14004c327
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
movzx eax, al
test eax, eax
je 0x14004c351
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
jmp 0x14004c425
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x2c], eax
jne 0x14004c365
mov dword [rsp + 0x34], 1
jmp 0x14004c36d
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
movzx eax, al
test eax, eax
je 0x14004c3bb
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ios_char__struct_std::char_traits_char__::rdbuf_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
nop
jmp 0x14004c425
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140072f20
mov rcx, qword [rsp + 0x68]
cmp rax, rcx
ja 0x14004c3fc
mov eax, dword [rsp + 0x28]
or eax, 2
mov dword [rsp + 0x28], eax
jmp 0x14004c425
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
movzx edx, al
mov rcx, qword [rsp + 0xb8]
call fcn.140074370
nop
mov byte [rsp + 0x20], 1
jmp 0x14004c2c8
jmp 0x14004c427
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14004c43b
mov eax, dword [rsp + 0x28]
or eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
call fcn.14004e940
nop
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14019a660
add rsp, 0xa8
ret