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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14021f740]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, rcx
mov qword [rsp + 0x78], rcx
xor r14d, r14d
mov eax, r14d
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x44], eax
lea r15, [rcx + 0x148]
mov qword [rbp - 0x80], r15
mov rax, qword [r15]
cmp rax, qword [r15 + 8]
je 0x1400ba799
mov qword [r15 + 8], rax
mov rdx, qword [rcx + 0x120]
mov rax, qword [rcx + 0x128]
sub rax, rdx
sar rax, 1
je 0x1400bb77c
mov r8d, 0xffff
mov dword [rbp - 0x78], r8d
movzx r12d, r14w
mov word [rsp + 0x70], r14w
mov byte [rsp + 0x40], r12b
movabs r10, 0x2e8ba2e8ba2e8ba
test rax, rax
je 0x1400bad94
mov rcx, r14
add rdi, 0x138
nop dword [rax]
movzx ebx, word [rdx + rcx*2]
movzx r9d, bx
mov word [rsp + 0x44], bx
mov rsi, qword [rdi]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rcx, rsi
cmp byte [rax + 0x19], 0
jne 0x1400ba84a
nop word [rax + rax]
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], bx
jae 0x1400ba836
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400ba844
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400ba820
cmp byte [rcx + 0x19], 0
jne 0x1400ba85a
cmp bx, word [rcx + 0x20]
jae 0x1400ba8e0
cmp qword [rdi + 8], r10
je 0x1400bb7bd
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], r14
mov ecx, 0x58
call fcn.14016cc68
mov r8, rax
movzx eax, word [rsp + 0x44]
mov word [r8 + 0x20], ax
mov dword [r8 + 0x28], r14d
mov byte [r8 + 0x2c], 0
mov qword [r8 + 0x2e], r14
mov dword [r8 + 0x36], r14d
mov qword [r8 + 0x40], r14
mov qword [r8 + 0x48], r14
mov qword [r8 + 0x50], r14
mov qword [r8], rsi
mov qword [r8 + 8], rsi
mov qword [r8 + 0x10], rsi
mov word [r8 + 0x18], 0
mov qword [rbp - 0x68], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140010d20
mov rcx, rax
movzx r9d, word [rsp + 0x44]
movabs r10, 0x2e8ba2e8ba2e8ba
cmp byte [rcx + 0x2c], 0
jne 0x1400ba922
lea rdx, [rsp + 0x44]
mov rcx, rdi
call fcn.1400ba440
movzx edx, word [rax + 6]
movzx r15d, word [rax + 8]
movzx r13d, dx
cmp dx, bx
cmovae r13w, bx
lea ecx, [rdx + r15]
add r15w, dx
cmp ecx, ebx
cmovbe r15w, bx
movzx r9d, word [rsp + 0x44]
jmp 0x1400bab61
xor r12b, r12b
movzx r13d, bx
movzx r15d, bx
nop dword [rax]
mov rbx, qword [rdi]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rdx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400ba97b
nop word [rax + rax]
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], r9w
jae 0x1400ba967
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400ba975
mov dword [rsp + 0x58], 1
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400ba950
cmp byte [rdx + 0x19], 0
jne 0x1400ba988
cmp r9w, word [rdx + 0x20]
jae 0x1400baa02
cmp qword [rdi + 8], r10
je 0x1400bb7bd
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], r14
mov ecx, 0x58
call fcn.14016cc68
nop
movzx ecx, word [rsp + 0x44]
mov word [rax + 0x20], cx
mov dword [rax + 0x28], r14d
mov byte [rax + 0x2c], 0
mov qword [rax + 0x2e], r14
mov dword [rax + 0x36], r14d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x58], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140010d20
mov rdx, rax
movzx r9d, word [rsp + 0x44]
mov rcx, qword [rdx + 0x48]
sub rcx, qword [rdx + 0x40]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx esi, r12b
cmp rsi, rdx
jae 0x1400bab5b
mov rbx, qword [rdi]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rdx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400baa7b
nop dword [rax + rax]
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], r9w
jae 0x1400baa67
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400baa75
mov dword [rsp + 0x58], 1
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400baa50
cmp byte [rdx + 0x19], 0
jne 0x1400baa8c
cmp r9w, word [rdx + 0x20]
jae 0x1400bab10
movabs rax, 0x2e8ba2e8ba2e8ba
cmp qword [rdi + 8], rax
je 0x1400bb7bd
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], r14
mov ecx, 0x58
call fcn.14016cc68
nop
movzx ecx, word [rsp + 0x44]
mov word [rax + 0x20], cx
mov dword [rax + 0x28], r14d
mov byte [rax + 0x2c], 0
mov qword [rax + 0x2e], r14
mov dword [rax + 0x36], r14d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x48], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140010d20
mov rdx, rax
movzx r9d, word [rsp + 0x44]
lea rcx, [rsi + rsi*2]
mov rax, qword [rdx + 0x40]
movzx edx, word [rax + rcx*4]
movzx r8d, word [rax + rcx*4 + 2]
inc r12b
movzx eax, dx
cmp dx, r13w
cmovae ax, r13w
movzx r13d, ax
lea ecx, [rdx + r8]
movzx eax, r15w
add r8w, dx
cmp ecx, eax
cmovbe r8w, r15w
movzx r15d, r8w
movabs r10, 0x2e8ba2e8ba2e8ba
jmp 0x1400ba930
movzx r12d, word [rsp + 0x70]
mov rbx, qword [rdi]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400babab
nop dword [rax + rax]
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], r9w
jae 0x1400bab97
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400baba5
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400bab80
cmp byte [rcx + 0x19], 0
jne 0x1400babc4
cmp r9w, word [rcx + 0x20]
jb 0x1400babc4
movabs rsi, 0x2e8ba2e8ba2e8ba
jmp 0x1400bac42
movabs rsi, 0x2e8ba2e8ba2e8ba
cmp qword [rdi + 8], rsi
je 0x1400bb7bd
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], r14
mov ecx, 0x58
call fcn.14016cc68
nop
movzx ecx, word [rsp + 0x44]
mov word [rax + 0x20], cx
mov dword [rax + 0x28], r14d
mov byte [rax + 0x2c], 0
mov qword [rax + 0x2e], r14
mov dword [rax + 0x36], r14d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x38], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140010d20
mov rcx, rax
mov word [rcx + 0x28], r13w
mov rbx, qword [rdi]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rdx, rbx
movzx ecx, word [rsp + 0x44]
cmp byte [rax + 0x19], 0
jne 0x1400bac9a
nop word [rax + rax]
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], cx
jae 0x1400bac86
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400bac94
mov dword [rsp + 0x58], 1
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400bac70
cmp byte [rdx + 0x19], 0
jne 0x1400baca6
cmp cx, word [rdx + 0x20]
jae 0x1400bad1a
cmp qword [rdi + 8], rsi
je 0x1400bb7bd
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], r14
mov ecx, 0x58
call fcn.14016cc68
nop
movzx ecx, word [rsp + 0x44]
mov word [rax + 0x20], cx
mov dword [rax + 0x28], r14d
mov byte [rax + 0x2c], 0
mov qword [rax + 0x2e], r14
mov dword [rax + 0x36], r14d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x28], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140010d20
mov rdx, rax
movzx ecx, r15w
sub cx, r13w
mov word [rdx + 0x2a], cx
mov eax, dword [rbp - 0x78]
cmp r13w, ax
cmovae r13w, ax
cmp r15w, r12w
cmovbe r15w, r12w
movzx r12d, r15w
mov word [rsp + 0x70], r15w
movzx r10d, byte [rsp + 0x40]
inc r10b
mov byte [rsp + 0x40], r10b
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax + 0x120]
mov rax, qword [rax + 0x128]
sub rax, rdx
sar rax, 1
movzx ecx, r10b
movzx r8d, r13w
mov dword [rbp - 0x78], r8d
cmp rcx, rax
movabs r10, 0x2e8ba2e8ba2e8ba
jb 0x1400ba7f0
mov rdi, qword [rsp + 0x78]
mov r15, qword [rbp - 0x80]
movzx ecx, r8w
mov dword [rdi + 0x38], ecx
movzx eax, r12w
sub eax, ecx
mov dword [rdi + 0x3c], eax
xor r13b, r13b
mov rax, qword [rdi + 0x128]
sub rax, rdx
sar rax, 1
je 0x1400bb6aa
lea r12, [rdi + 0x138]
mov rcx, r14
movss xmm6, dword [0x140184db8]
nop dword [rax]
movzx esi, word [rdx + rcx*2]
mov rbx, qword [r12]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400bae1a
nop
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], si
jae 0x1400bae06
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400bae14
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400badf0
cmp byte [rcx + 0x19], 0
jne 0x1400bae26
cmp si, word [rcx + 0x20]
jae 0x1400bae96
cmp qword [r12 + 8], r10
je 0x1400bb7b7
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r14
mov ecx, 0x58
call fcn.14016cc68
nop
mov word [rax + 0x20], si
mov dword [rax + 0x28], r14d
mov byte [rax + 0x2c], 0
mov qword [rax + 0x2e], r14
mov dword [rax + 0x36], r14d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x28], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140010d20
mov rcx, rax
cmp byte [rcx + 0x2c], 0
jne 0x1400bb15f
mov rbx, qword [r12]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400baeea
nop dword [rax + rax]
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], si
jae 0x1400baed6
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400baee4
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400baec0
cmp byte [rcx + 0x19], 0
jne 0x1400baef6
cmp si, word [rcx + 0x20]
jae 0x1400baf70
movabs rax, 0x2e8ba2e8ba2e8ba
cmp qword [r12 + 8], rax
je 0x1400bb7b7
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r14
mov ecx, 0x58
call fcn.14016cc68
nop
mov word [rax + 0x20], si
mov dword [rax + 0x28], r14d
mov byte [rax + 0x2c], 0
mov qword [rax + 0x2e], r14
mov dword [rax + 0x36], r14d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x38], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140010d20
mov rcx, rax
movzx eax, word [rcx + 0x36]
test ax, ax
je 0x1400bb66d
mov ebx, eax
add eax, 7
cmp eax, 0x10000
ja 0x1400bb66d
cmp byte [rdi + 0xe8], 0
je 0x1400bafc2
mov rdi, qword [rdi + 0xd0]
cmp ebx, dword [rdi + 0x10]
jb 0x1400bafaa
lea eax, [rbx + 1]
cmp eax, dword [rdi + 0x14]
jbe 0x1400bafb4
mov edx, ebx
mov rcx, rdi
call fcn.140121da0
sub ebx, dword [rdi + 0x10]
mov rax, qword [rdi + 8]
mov rdi, qword [rsp + 0x78]
jmp 0x1400bafcf
sub ebx, dword [rdi + 0x90]
mov rax, qword [rdi + 0x88]
movzx ebx, byte [rbx + rax]
mov byte [rsp + 0x40], bl
movzx r8d, bl
mov rdx, qword [rdi + 0x150]
mov rcx, qword [r15]
call fcn.14016c730
mov rdx, qword [rdi + 0x150]
cmp rax, rdx
jne 0x1400bb006
cmp rdx, qword [r15 + 0x10]
je 0x1400bb14d
mov byte [rdx], bl
inc qword [r15 + 8]
lea rax, [0x140182c00]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov ebx, dword [rsp + 0x74]
or ebx, 2
mov dword [rsp + 0x74], ebx
mov dword [rsp + 0x44], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x18], rax
mov qword [rbp + 0x50], r14
mov dword [rbp + 0x58], 4
lea rdx, [0x140182c08]
lea rcx, [rbp - 0x20]
call fcn.14001a5f0
movzx edx, r13b
mov rcx, rax
call fcn.14001ee20
mov ecx, 0xf0
call fcn.14016cc68
mov r15, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x1400bb5ac
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xe8], 0xf
mov byte [rbp + 0xd0], 0
or ebx, 8
mov dword [rsp + 0x74], ebx
mov dword [rsp + 0x44], ebx
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov ecx, dword [rbp + 0x58]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400bb400
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x1400bb3fd
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov rdi, rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rbx, rax
cmp rax, qword [rbp + 0x50]
cmovb rbx, qword [rbp + 0x50]
sub rbx, rdi
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
jmp 0x1400bb43d
lea r8, [rsp + 0x40]
mov rcx, r15
call fcn.14001df40
jmp 0x1400bb006
xor r15b, r15b
mov rbx, qword [r12]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rdx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400bb1aa
nop dword [rax]
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], si
jae 0x1400bb196
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400bb1a4
mov dword [rsp + 0x58], 1
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400bb180
cmp byte [rdx + 0x19], 0
jne 0x1400bb1b6
cmp si, word [rdx + 0x20]
jae 0x1400bb230
movabs rax, 0x2e8ba2e8ba2e8ba
cmp qword [r12 + 8], rax
je 0x1400bb7b7
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r14
mov ecx, 0x58
call fcn.14016cc68
nop
mov word [rax + 0x20], si
mov dword [rax + 0x28], r14d
mov byte [rax + 0x2c], 0
mov qword [rax + 0x2e], r14
mov dword [rax + 0x36], r14d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x48], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140010d20
mov rdx, rax
mov rcx, qword [rdx + 0x48]
sub rcx, qword [rdx + 0x40]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx edi, r15b
cmp rdi, rdx
jae 0x1400bb006
mov rbx, qword [r12]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rdx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400bb2aa
nop word [rax + rax]
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], si
jae 0x1400bb296
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400bb2a4
mov dword [rsp + 0x58], 1
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400bb280
cmp byte [rdx + 0x19], 0
jne 0x1400bb2b6
cmp si, word [rdx + 0x20]
jae 0x1400bb330
movabs rax, 0x2e8ba2e8ba2e8ba
cmp qword [r12 + 8], rax
je 0x1400bb7b7
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r14
mov ecx, 0x58
call fcn.14016cc68
nop
mov word [rax + 0x20], si
mov dword [rax + 0x28], r14d
mov byte [rax + 0x2c], 0
mov qword [rax + 0x2e], r14
mov dword [rax + 0x36], r14d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x58], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140010d20
mov rdx, rax
lea rcx, [rdi + rdi*2]
mov rax, qword [rdx + 0x40]
movzx edx, word [rax + rcx*4 + 8]
test dx, dx
je 0x1400bb3f5
mov ebx, edx
lea eax, [rdx + 7]
cmp eax, 0x10000
ja 0x1400bb3f5
mov rdi, qword [rsp + 0x78]
cmp byte [rdi + 0xe8], 0
je 0x1400bb38e
mov rdi, qword [rdi + 0xd0]
cmp edx, dword [rdi + 0x10]
jb 0x1400bb378
lea eax, [rdx + 1]
cmp eax, dword [rdi + 0x14]
jbe 0x1400bb380
mov rcx, rdi
call fcn.140121da0
sub ebx, dword [rdi + 0x10]
mov rax, qword [rdi + 8]
mov rdi, qword [rsp + 0x78]
jmp 0x1400bb39b
sub ebx, dword [rdi + 0x90]
mov rax, qword [rdi + 0x88]
movzx ebx, byte [rbx + rax]
mov byte [rsp + 0x40], bl
movzx r8d, bl
mov rdx, qword [rdi + 0x150]
mov rcx, qword [rdi + 0x148]
call fcn.14016c730
cmp rax, qword [rdi + 0x150]
jne 0x1400bb3f5
mov rdx, qword [rdi + 0x150]
cmp rdx, qword [rdi + 0x158]
je 0x1400bb3e4
mov byte [rdx], bl
inc qword [rdi + 0x150]
inc r15b
jmp 0x1400bb162
lea r8, [rsp + 0x40]
lea rcx, [rdi + 0x148]
call fcn.14001df40
inc r15b
jmp 0x1400bb162
mov ecx, dword [rbp + 0x58]
test cl, 4
jne 0x1400bb433
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
test rax, rax
je 0x1400bb433
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
mov rdi, rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::egptr_void_const___ptr64]
mov rbx, rax
sub rbx, rdi
jmp 0x1400bb43d
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x1400bb454
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0xd0]
call fcn.140016820
mov eax, dword [rsp + 0x74]
and eax, 0xfffffff7
or eax, 4
or eax, 1
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x44], eax
mov rbx, qword [r12]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400bb4ae
mov qword [rsp + 0x50], rax
cmp word [rax + 0x20], si
jae 0x1400bb49a
mov dword [rsp + 0x58], r14d
mov rax, qword [rax + 0x10]
jmp 0x1400bb4a8
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400bb484
cmp byte [rcx + 0x19], 0
jne 0x1400bb4ba
cmp si, word [rcx + 0x20]
jae 0x1400bb534
movabs rax, 0x2e8ba2e8ba2e8ba
cmp qword [r12 + 8], rax
je 0x1400bb7c3
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r14
mov ecx, 0x58
call fcn.14016cc68
nop
mov word [rax + 0x20], si
mov dword [rax + 0x28], r14d
mov byte [rax + 0x2c], 0
mov qword [rax + 0x2e], r14
mov dword [rax + 0x36], r14d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x68], r14
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140010d20
mov rcx, rax
lea rsi, [rcx + 0x28]
mov rcx, qword [rsp + 0x78]
mov edi, dword [rcx + 0x11c]
movzx ebx, byte [rcx + 0x118]
movzx eax, r13b
movzx r9d, word [rsi + 2]
movzx r8d, word [rsi]
movss dword [rsp + 0x38], xmm6
lea rdx, [rbp + 0xd0]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
mov rdx, rcx
mov rcx, r15
call fcn.14001ab50
nop
lea rax, vtable.MoriSnesInstr.0
mov qword [r15], rax
mov byte [r15 + 0xb8], bl
mov dword [r15 + 0xbc], edi
lea rcx, [r15 + 0xc0]
mov rdx, rsi
call fcn.1400b99e0
nop
mov ebx, dword [rsp + 0x74]
jmp 0x1400bb5af
mov r15, r14
test bl, 1
je 0x1400bb5fc
and ebx, 0xfffffffe
mov dword [rsp + 0x74], ebx
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0xf
jbe 0x1400bb5fc
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bb5f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400bb6a3
call fcn.14016cca4
mov rdi, qword [rsp + 0x78]
lea rcx, [rdi + 0xf0]
mov qword [rbp - 0x80], r15
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x1400bb620
mov qword [rdx], r15
add qword [rcx + 8], 8
jmp 0x1400bb62a
lea r8, [rbp - 0x80]
call fcn.140006b30
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.14001ad40
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
inc r13b
mov rdx, qword [rdi + 0x120]
mov rax, qword [rdi + 0x128]
sub rax, rdx
sar rax, 1
movzx ecx, r13b
cmp rcx, rax
jae 0x1400bb6aa
lea r15, [rdi + 0x148]
movabs r10, 0x2e8ba2e8ba2e8ba
jmp 0x1400badd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rdi + 0xf8]
sub rax, qword [rdi + 0xf0]
cmp rax, 8
jb 0x1400bb77c
mov rdx, qword [rdi + 0x150]
mov rcx, qword [rdi + 0x148]
mov r8, rdx
sub r8, rcx
xor r9d, r9d
call fcn.14004c2f0
mov ecx, 0x140
call fcn.14016cc68
mov rbx, rax
mov qword [rbp - 0x80], rax
test rax, rax
je 0x1400bb75d
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xe8], r14
mov r8d, 0xc
lea rdx, str.SNESSampColl
lea rcx, [rbp + 0xd0]
call fcn.1400067d0
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x28], rax
lea rax, [rdi + 0x148]
mov qword [rsp + 0x20], rax
mov r9d, dword [rdi + 0x11c]
mov r8, qword [rdi + 0xd0]
lea rdx, str.MoriSnes
mov rcx, rbx
call fcn.14011f080
mov r14, rax
mov rcx, r14
call fcn.140017740
test al, al
jne 0x1400bb7b3
test r14, r14
je 0x1400bb77c
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax + 0x50]
xor al, al
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14016cd40
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov al, 1
jmp 0x1400bb77e
call fcn.140010f80
int3
call fcn.140010f80
nop
call fcn.140010f80
nop
int3