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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rbx, r8
mov rsi, rdx
mov qword [rsp + 0x58], r9
mov byte [rcx + 8], 0
mov byte [rcx + 0x14], 0
mov byte [rcx + 0x1c], 0
mov byte [rcx + 0x24], 0
mov byte [rcx + 0x2c], 0
mov byte [rcx + 0x34], 0
mov byte [rcx + 0x3c], 0
mov byte [rcx + 0x44], 0
mov byte [rcx + 0x4c], 0
mov byte [rcx + 0x54], 0
mov byte [rcx + 0x5c], 0
mov byte [rcx + 0x80], 0
mov byte [rcx + 0x8c], 0
mov byte [rcx + 0x94], 0
mov byte [rcx + 0x9c], 0
mov byte [rcx + 0xa4], 0
mov byte [rcx + 0xac], 0
mov byte [rcx + 0xb4], 0
mov byte [rcx + 0xbc], 0
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
lea rdx, [r11 - 0x58]
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::ios_base::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.14004d5d0
mov r14, rax
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14004803e
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x14004803e
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
xor r15d, r15d
mov dword [rsp + 0x100], r15d
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rbx + rax*2], r15w
jne 0x140048050
lea r13, [rbx + rax*2]
mov qword [rsp + 0x80], rsi
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::rdbuf_void_const___ptr64]
test rax, rax
je 0x140048086
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
mov dl, 1
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::_Ipfx_bool____ptr64]
movzx edi, al
mov byte [rsp + 0x88], al
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
add rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::rdbuf_void_const___ptr64]
mov qword [rsp + 0x60], rax
test rax, rax
sete byte [rsp + 0x68]
mov word [rsp + 0x6a], r15w
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 1
test dil, dil
je 0x1400485d2
mov esi, 0xffff
nop word [rax + rax]
cmp rbx, r13
je 0x14004815b
test dword [rsp + 0x100], 0xfffffffe
jne 0x14004815b
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140048c40
test al, al
je 0x140048166
cmp rbx, r13
je 0x14004815b
mov edx, 0x48
movzx r8d, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ctype_wchar_t_::is_short_int__wchar_t_const___ptr64]
test al, al
jne 0x140048160
xor r8d, r8d
movzx edx, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::ctype_wchar_t_::narrow_wchar_t__char_const___ptr64]
cmp al, 0x25
jne 0x140048153
add rbx, 2
cmp rbx, r13
je 0x140048153
xor r8d, r8d
movzx edx, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::ctype_wchar_t_::narrow_wchar_t__char_const___ptr64]
cmp al, 0x20
je 0x140048160
cmp al, 0x74
je 0x140048160
or dword [rsp + 0x100], 3
jmp 0x1400485d2
add rbx, 2
jmp 0x140048105
xor r8d, r8d
movzx edx, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::ctype_wchar_t_::narrow_wchar_t__char_const___ptr64]
cmp al, 0x25
je 0x140048298
mov edx, 0x48
movzx r8d, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ctype_wchar_t_::is_short_int__wchar_t_const___ptr64]
test al, al
je 0x14004822e
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140048c40
test al, al
jne 0x140048410
mov rdi, qword [rsp + 0x60]
cmp byte [rsp + 0x68], al
jne 0x1400481e9
test rdi, rdi
je 0x1400481dc
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sgetc_void____ptr64]
cmp si, ax
je 0x1400481dc
mov word [rsp + 0x6a], ax
jmp 0x1400481e4
mov rdi, r15
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], 1
mov edx, 0x48
movzx r8d, word [rsp + 0x6a]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ctype_wchar_t_::is_short_int__wchar_t_const___ptr64]
test al, al
je 0x140048410
test rdi, rdi
je 0x14004821f
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sbumpc_void____ptr64]
cmp si, ax
je 0x14004821f
mov byte [rsp + 0x68], 0
jmp 0x1400481a0
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], 1
jmp 0x1400481a0
mov rdi, qword [rsp + 0x60]
cmp byte [rsp + 0x68], 0
jne 0x140048261
test rdi, rdi
je 0x140048254
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sgetc_void____ptr64]
cmp si, ax
je 0x140048254
mov word [rsp + 0x6a], ax
jmp 0x14004825c
mov rdi, r15
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], 1
movzx eax, word [rbx]
cmp word [rsp + 0x6a], ax
jne 0x140048529
test rdi, rdi
je 0x140048494
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sbumpc_void____ptr64]
cmp si, ax
je 0x140048494
mov byte [rsp + 0x68], 0
add rbx, 2
jmp 0x1400480e0
add rbx, 2
cmp rbx, r13
jne 0x1400482b2
or dword [rsp + 0x100], 2
add rbx, 2
jmp 0x1400480e0
xor r8d, r8d
movzx edx, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::ctype_wchar_t_::narrow_wchar_t__char_const___ptr64]
movsx esi, al
xor r12b, r12b
mov edi, r15d
cmp sil, 0x45
je 0x140048360
cmp sil, 0x4f
je 0x140048360
lea ecx, [rsi - 0x30]
cmp cl, 9
ja 0x14004838c
lea edi, [rsi - 0x30]
nop dword [rax]
add rbx, 2
cmp rbx, r13
je 0x140048369
mov edx, 4
movzx r8d, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ctype_wchar_t_::is_short_int__wchar_t_const___ptr64]
test al, al
je 0x140048340
xor r8d, r8d
movzx edx, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::ctype_wchar_t_::narrow_wchar_t__char_const___ptr64]
movsx r8d, al
mov ecx, 0x2f
sub ecx, r8d
mov eax, 0xcccccccd
mul ecx
shr edx, 3
cmp edi, edx
jbe 0x140048354
or dword [rsp + 0x100], 2
xor r8d, r8d
movzx edx, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::ctype_wchar_t_::narrow_wchar_t__char_const___ptr64]
movzx esi, al
jmp 0x14004838c
lea edi, [rdi + rdi*4]
lea edi, [rdi - 0x18]
lea edi, [r8 + rdi*2]
jmp 0x1400482f0
add rbx, 2
cmp rbx, r13
jne 0x140048376
or dword [rsp + 0x100], 2
jmp 0x14004815b
xor r8d, r8d
movzx edx, word [rbx]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::ctype_wchar_t_::narrow_wchar_t__char_const___ptr64]
movzx r12d, sil
movzx esi, al
cmp sil, 0x25
je 0x14004853a
cmp sil, 0x6e
je 0x1400484a7
cmp sil, 0x74
je 0x140048419
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
mov rcx, qword [rsp + 0xf8]
mov rax, qword [rcx]
movsxd r9, dword [rax + 4]
add r9, rcx
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], edi
mov byte [rsp + 0x30], r12b
mov byte [rsp + 0x28], sil
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0xf0]
call fcn.14004a230
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
mov esi, 0xffff
add rbx, 2
jmp 0x1400480e0
mov rdi, qword [rsp + 0x60]
cmp byte [rsp + 0x68], 0
jne 0x140048451
test rdi, rdi
je 0x140048444
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sgetc_void____ptr64]
mov ecx, 0xffff
cmp cx, ax
je 0x140048444
mov word [rsp + 0x6a], ax
jmp 0x14004844c
mov rdi, r15
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], 1
mov edx, 0x48
movzx r8d, word [rsp + 0x6a]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ctype_wchar_t_::is_short_int__wchar_t_const___ptr64]
test al, al
je 0x14004840b
test rdi, rdi
je 0x14004848f
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sbumpc_void____ptr64]
mov esi, 0xffff
cmp si, ax
je 0x140048494
mov byte [rsp + 0x68], 0
add rbx, 2
jmp 0x1400480e0
mov esi, 0xffff
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], 1
add rbx, 2
jmp 0x1400480e0
mov rdi, qword [rsp + 0x60]
cmp byte [rsp + 0x68], 0
jne 0x1400484df
test rdi, rdi
je 0x1400484d2
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sgetc_void____ptr64]
mov ecx, 0xffff
cmp cx, ax
je 0x1400484d2
mov word [rsp + 0x6a], ax
jmp 0x1400484da
mov rdi, r15
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], 1
test rdi, rdi
je 0x1400484fe
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sbumpc_void____ptr64]
mov esi, 0xffff
cmp si, ax
je 0x140048503
mov byte [rsp + 0x68], 0
jmp 0x14004850d
mov esi, 0xffff
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], 1
mov edx, 0x48
movzx r8d, word [rsp + 0x6a]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ctype_wchar_t_::is_short_int__wchar_t_const___ptr64]
test al, al
jne 0x140048410
or dword [rsp + 0x100], 2
add rbx, 2
jmp 0x1400480e0
mov rdi, qword [rsp + 0x60]
cmp byte [rsp + 0x68], 0
jne 0x140048572
test rdi, rdi
je 0x140048565
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sgetc_void____ptr64]
mov ecx, 0xffff
cmp cx, ax
je 0x140048565
mov word [rsp + 0x6a], ax
jmp 0x14004856d
mov rdi, r15
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], 1
test rdi, rdi
je 0x140048591
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_unsigned_short_int___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::sbumpc_void____ptr64]
mov esi, 0xffff
cmp si, ax
je 0x140048596
mov byte [rsp + 0x68], 0
jmp 0x1400485a0
mov esi, 0xffff
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], 1
xor r8d, r8d
movzx edx, word [rsp + 0x6a]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::ctype_wchar_t_::narrow_wchar_t__char_const___ptr64]
cmp al, 0x25
je 0x140048410
or dword [rsp + 0x100], 2
add rbx, 2
jmp 0x1400480e0
mov rbx, qword [rsp + 0xf0]
mov rcx, rbx
call fcn.140050200
test al, al
jne 0x1400485ee
or dword [rsp + 0x100], 2
test byte [rsp + 0x100], 2
jne 0x1400486f9
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x140048614
cmp byte [rbx + 0x5c], 0
je 0x140048614
mov eax, dword [rbx + 0x58]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x1400486f9
cmp byte [rbx + 0x80], 0
je 0x1400486f9
lea rsi, [rcx + 0x10]
mov qword [rsi], r15
mov rax, rcx
lea r13, [rcx + 0x18]
cmp qword [r13], 7
jbe 0x14004864a
mov rax, qword [rcx]
mov word [rax], r15w
lea rcx, [rbx + 0x60]
cmp qword [rbx + 0x78], 0xf
jbe 0x14004866f
mov rcx, qword [rbx + 0x60]
mov rsi, qword [rsp + 0x58]
lea r13, [rsi + 0x18]
add rsi, 0x10
mov rdx, rcx
jmp 0x140048673
lea rdx, [rbx + 0x60]
mov rdi, rcx
mov r12, qword [rbx + 0x70]
add r12, rdx
cmp rcx, r12
je 0x1400486f9
movzx ebx, byte [rsp + 0xf0]
nop word [rax + rax]
movzx edx, byte [rdi]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public:_wchar_t___cdecl_std::ctype_wchar_t_::widen_char_const___ptr64]
mov rdx, qword [rsi]
mov r8, qword [r13]
cmp rdx, r8
jae 0x1400486cf
lea rcx, [rdx + 1]
mov qword [rsi], rcx
mov r9, qword [rsp + 0x108]
mov rcx, r9
cmp r8, 7
jbe 0x1400486c3
mov rcx, qword [r9]
mov word [rcx + rdx*2], ax
mov word [rcx + rdx*2 + 2], r15w
jmp 0x1400486e9
movzx r9d, ax
movzx r8d, bl
mov edx, 1
mov rcx, qword [rsp + 0x108]
call fcn.14000dac0
inc rdi
cmp rdi, r12
jne 0x140048690
mov rbx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xf8]
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
xor r8d, r8d
mov edx, dword [rsp + 0x100]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rsp + 0x80]
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::rdbuf_void_const___ptr64]
test rax, rax
je 0x140048743
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
nop
mov rax, rbx
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret