Function at 0x140054f90
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 [0x140090180]
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 0x14005563d
lea rsi, [rcx + 8]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140054ff6
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 0x140055024
lea rcx, [rsp + 0x150]
call fcn.140010980
nop
lea rax, [0x140075ac0]
mov qword [rsp + 0x50], rax
lea rax, [0x140075ab8]
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 0x14005566c
test rbx, rbx
je 0x1400551aa
mov rdx, rbx
lea rcx, [rsp + 0xdc]
call fcn.14000fbd0
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 0x1400551b2
mov qword [rsp + 0xd0], rdi
mov dword [rsp + 0xd8], edx
cmp rax, 8
jb 0x1400551f1
lea rdx, [rax*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400551ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400555c8
call fcn.140064fe8
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.140048b60
nop
xor ebx, ebx
cmp ebx, edi
jge 0x14005557b
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 0x14005525f
mov rdx, qword [rsi]
mov rax, qword [rcx]
lea r9, [rsp + 0x190]
lea r8, [r14 + 0x28]
call qword [rax + 8]
test al, al
je 0x140055574
cmp qword [rsi + 0x18], 8
jb 0x140055283
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 0x1400552a1
mov r8, r15
mov rdx, rsi
lea rcx, [rsp + 0x150]
call fcn.140010980
nop
movsxd r8, dword [r14 + 0x28]
movsxd rdi, dword [rsp + 0x20]
mov rax, qword [rsp + 0x160]
cmp rax, rdi
jb 0x140055672
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.140010980
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 8
jb 0x14005535a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055355
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055355
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064fe8
test byte [r14 + 0x3c], 0x40
jne 0x140055678
mov dword [r14 + 0x3c], 0x12c5
lea rcx, [rsp + 0x190]
call fcn.14004b0d0
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140055390
mov rcx, rax
call fcn.140050b00
nop
test rbx, rbx
je 0x14005539d
mov rcx, rbx
call fcn.140050b00
mov rcx, qword [r12]
test rcx, rcx
je 0x1400553b9
call fcn.140050ad0
test eax, eax
jne 0x1400553b9
mov rcx, qword [r12]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov qword [r12], rbx
test rbx, rbx
je 0x1400553d8
mov rcx, rbx
call fcn.140050ad0
test eax, eax
jne 0x1400553d8
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 0x14005544f
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x150]
call fcn.140010980
nop
lea rdx, [rsp + 0x150]
mov rcx, qword [r12]
call fcn.140050b50
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 8
jb 0x1400554ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400554a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400554a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064fe8
nop
lea rcx, [rsp + 0x190]
call fcn.140048df0
nop
mov rdx, qword [rsp + 0x188]
cmp rdx, 8
jb 0x140055506
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055501
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055501
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064fe8
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.140017260
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 0x14005563f
inc ebx
jmp 0x140055234
lea rcx, [rsp + 0x190]
call fcn.140048df0
nop
mov rdx, qword [rsp + 0x188]
cmp rdx, 8
jb 0x1400555d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400555cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400555cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064fe8
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.140017260
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.140064f60
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.14000f900
nop
mov dword [rsp + 0x24], 4
lea rdx, [0x14008c3d0]
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll__CxxThrowException
int3