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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x14007d150]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov rax, qword [rcx + 0xa0]
sub rax, qword [rcx + 0x98]
cmp rax, 8
jb 0x1400470cd
lea rsi, [rcx + 8]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140046a86
mov rcx, qword [rsi]
movsxd rax, dword [r14 + 0x28]
lea rdx, [rcx + rax*2]
mov qword [rsp + 0x160], rdi
mov qword [rsp + 0x168], 7
mov word [rsp + 0x150], di
mov r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp word [rdx + r8*2], di
jne 0x140046ab4
lea rcx, [rsp + 0x150]
call fcn.140004cc0
nop
lea rax, [0x140065540]
mov qword [rsp + 0x50], rax
lea rax, [0x140065538]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xe8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x150]
mov rax, qword [rsp + 0x168]
cmp rax, 8
cmovae rdx, rcx
mov qword [rsp + 0x38], rdx
mov edx, edi
mov rbx, qword [rsp + 0x160]
cmp rbx, 0x7fffffff
ja 0x1400470fc
test rbx, rbx
je 0x140046c3a
mov rdx, rbx
lea rcx, [rsp + 0xdc]
call fcn.140004fd0
mov rdi, rax
add rbx, rbx
mov r8, rbx
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
mov qword [rsp + 0xd0], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rdi
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rdi
sar rbx, 1
mov rax, qword [rsp + 0xb8]
mov dword [rax], ebx
mov rcx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0x88]
mov qword [rax], rdi
mov rax, qword [rsp + 0xa8]
mov qword [rax], rdi
sub rcx, rdi
sar rcx, 1
mov rax, qword [rsp + 0xc0]
mov dword [rax], ecx
mov edx, 1
mov rcx, qword [rsp + 0x150]
mov rax, qword [rsp + 0x168]
xor edi, edi
jmp 0x140046c42
mov qword [rsp + 0xd0], rdi
mov dword [rsp + 0xd8], edx
cmp rax, 8
jb 0x140046c81
lea rdx, [rax*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046c7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047058
call fcn.140056818
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x188], 7
mov word [rsp + 0x170], di
mov rdi, qword [r14 + 0xa0]
sub rdi, qword [r14 + 0x98]
sar rdi, 3
mov edx, 0x76
lea rcx, [rsp + 0x190]
call fcn.14003a5e0
nop
xor ebx, ebx
cmp ebx, edi
jge 0x14004700b
mov eax, dword [r14 + 0x28]
mov dword [rsp + 0x20], eax
movsxd rcx, ebx
mov rax, qword [r14 + 0x98]
mov rcx, qword [rax + rcx*8]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140046cef
mov rdx, qword [rsi]
mov rax, qword [rcx]
lea r9, [rsp + 0x190]
lea r8, [r14 + 0x28]
call qword [rax + 8]
test al, al
je 0x140047004
cmp qword [rsi + 0x18], 8
jb 0x140046d13
mov rsi, qword [rsi]
xor eax, eax
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], 7
mov word [rsp + 0x150], ax
inc r15
cmp word [rsi + r15*2], ax
jne 0x140046d31
mov r8, r15
mov rdx, rsi
lea rcx, [rsp + 0x150]
call fcn.140004cc0
nop
movsxd r8, dword [r14 + 0x28]
movsxd rdi, dword [rsp + 0x20]
mov rax, qword [rsp + 0x160]
cmp rax, rdi
jb 0x140047102
sub rax, rdi
cmp rax, r8
cmovb r8, rax
lea rax, [rsp + 0x150]
cmp qword [rsp + 0x168], 8
cmovae rax, qword [rsp + 0x150]
lea rdx, [rax + rdi*2]
lea rcx, [rsp + 0x170]
call fcn.140004cc0
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 8
jb 0x140046dea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046de5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046de5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140056818
test byte [r14 + 0x3c], 0x40
jne 0x140047108
mov dword [r14 + 0x3c], 0x12c5
lea rcx, [rsp + 0x190]
call fcn.14003cb50
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140046e20
mov rcx, rax
call fcn.140042580
nop
test rbx, rbx
je 0x140046e2d
mov rcx, rbx
call fcn.140042580
mov rcx, qword [r12]
test rcx, rcx
je 0x140046e49
call fcn.140042550
test eax, eax
jne 0x140046e49
mov rcx, qword [r12]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov qword [r12], rbx
test rbx, rbx
je 0x140046e68
mov rcx, rbx
call fcn.140042550
test eax, eax
jne 0x140046e68
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
nop
lea rdx, [rsp + 0x170]
cmp qword [rsp + 0x188], 8
cmovae rdx, qword [rsp + 0x170]
mov eax, dword [r14 + 0x28]
sub eax, edi
cdqe
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x170]
cmp qword [rsp + 0x188], 8
cmovae rdx, qword [rsp + 0x170]
xor ebx, ebx
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x168], 7
mov word [rsp + 0x150], bx
cmp rdx, r8
je 0x140046edf
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x150]
call fcn.140004cc0
nop
lea rdx, [rsp + 0x150]
mov rcx, qword [r12]
call fcn.1400425d0
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 8
jb 0x140046f3d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046f37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046f37
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140056818
nop
lea rcx, [rsp + 0x190]
call fcn.14003a870
nop
mov rdx, qword [rsp + 0x188]
cmp rdx, 8
jb 0x140046f96
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046f91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046f91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140056818
mov qword [rsp + 0x180], rbx
mov qword [rsp + 0x188], 7
mov word [rsp + 0x170], bx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call fcn.1400035f0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov al, 1
jmp 0x1400470cf
inc ebx
jmp 0x140046cc4
lea rcx, [rsp + 0x190]
call fcn.14003a870
nop
mov rdx, qword [rsp + 0x188]
cmp rdx, 8
jb 0x140047064
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004705f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004705f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140056818
xor eax, eax
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x188], 7
mov word [rsp + 0x170], ax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call fcn.1400035f0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
xor al, al
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140056790
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_
nop
call fcn.140004b90
nop
mov dword [rsp + 0x24], 4
lea rdx, [0x140079718]
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll__CxxThrowException
int3