Function at 0x140004280
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, 0x98
mov rax, qword [0x140011440]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.140004dd0
nop
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov dl, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::basic_istream_char__struct_std::char_traits_char__::_Ipfx_bool____ptr64]
mov byte [rsp + 0x80], al
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1400044bc
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x10], 0
jae 0x14000431d
call fcn.140006640
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call fcn.140005e10
movzx eax, byte [rsp + 0xb0]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xa0]
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 + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x2c], eax
jmp 0x1400043b0
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xa0]
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 + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x40], 0xffffffff
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x40], eax
jne 0x1400043cc
mov dword [rsp + 0x30], 1
jmp 0x1400043d4
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x1400043fb
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
jmp 0x1400044ba
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x2c], eax
jne 0x14000440f
mov dword [rsp + 0x34], 1
jmp 0x140004417
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x140004461
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xa0]
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]
jmp 0x1400044ba
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140001e50
cmp rax, qword [rsp + 0x58]
ja 0x140004495
mov eax, dword [rsp + 0x28]
or eax, 2
mov dword [rsp + 0x28], eax
jmp 0x1400044ba
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x24], al
movzx edx, byte [rsp + 0x24]
mov rcx, qword [rsp + 0xa8]
call fcn.1400077e0
mov byte [rsp + 0x20], 1
jmp 0x140004375
jmp 0x1400044bc
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400044d0
mov eax, dword [rsp + 0x28]
or eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
xor r8d, r8d
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.140005130
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400087b0
add rsp, 0x98
ret