Function at 0x140099890
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 - 0xc8]
sub rsp, 0x1a0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14021f740]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r14, rcx
xor r12d, r12d
mov r15d, r12d
mov dword [rsp + 0x44], r12d
lea rsi, [rcx + 0x128]
mov rax, qword [rsi]
cmp rax, qword [rsi + 8]
je 0x1400998ed
mov qword [rsi + 8], rax
mov byte [rsp + 0x40], r12b
test dword [rcx + 0x3c], 0xfffffffc
jbe 0x140099cce
mov ecx, r12d
mov dword [rsp + 0x48], ecx
movss xmm6, dword [0x140184db8]
nop
mov eax, dword [r14 + 0x38]
lea r13d, [rax + rcx*4]
lea eax, [r13 + 4]
cmp eax, 0x10000
ja 0x140099cce
cmp byte [r14 + 0xe8], 0
je 0x14009995e
mov rbx, qword [r14 + 0xd0]
cmp r13d, dword [rbx + 0x10]
jb 0x140099947
lea eax, [r13 + 1]
cmp eax, dword [rbx + 0x14]
jbe 0x140099952
mov edx, r13d
mov rcx, rbx
call fcn.140121da0
mov ecx, r13d
sub ecx, dword [rbx + 0x10]
mov rax, qword [rbx + 8]
jmp 0x14009996f
mov ecx, r13d
sub ecx, dword [r14 + 0x90]
mov rax, qword [r14 + 0x88]
movzx ebx, byte [rcx + rax]
mov byte [rsp + 0x41], bl
movzx eax, bl
lea edi, [rax*4]
mov edx, dword [r14 + 0x11c]
add edx, edi
mov r8b, 1
mov rcx, qword [r14 + 0xd0]
call fcn.140120890
test al, al
je 0x140099cad
mov ecx, dword [r14 + 0x120]
add ecx, 4
add ecx, edi
cmp ecx, 0x10000
ja 0x140099cad
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1400999cb
mov byte [rdx], bl
inc qword [rsi + 8]
jmp 0x1400999d8
lea r8, [rsp + 0x41]
mov rcx, rsi
call fcn.14001df40
lea rax, [0x140182c00]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r15d, 2
mov dword [rsp + 0x44], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
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 [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
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 [rsp + 0x78], rax
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], 4
lea rdx, [0x140182c08]
lea rcx, [rsp + 0x70]
call fcn.14001a5f0
movzx edx, byte [rsp + 0x40]
mov rcx, rax
call fcn.14001ee20
mov ecx, 0xc8
call fcn.14016cc68
mov r12, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140099bef
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
or r15d, 8
mov dword [rsp + 0x44], r15d
movups xmmword [rsp + 0x58], xmm0
mov ecx, dword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140099b0e
lea rcx, [rsp + 0x78]
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 0x140099b0b
lea rcx, [rsp + 0x78]
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, [rsp + 0x78]
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 - 0x20]
cmovb rbx, qword [rbp - 0x20]
sub rbx, rdi
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
jmp 0x140099b4e
mov ecx, dword [rbp - 0x18]
test cl, 4
jne 0x140099b44
lea rcx, [rsp + 0x78]
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 0x140099b44
lea rcx, [rsp + 0x78]
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, [rsp + 0x78]
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 0x140099b4e
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140099b62
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.140016820
and r15d, 0xfffffff7
or r15d, 4
or r15d, 1
mov dword [rsp + 0x44], r15d
mov esi, dword [r14 + 0x120]
mov edi, dword [r14 + 0x11c]
movzx ebx, byte [r14 + 0x118]
movss dword [rsp + 0x38], xmm6
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
mov r9d, 4
mov r8d, r13d
mov rdx, r14
mov rcx, r12
call fcn.14001ab50
lea rax, vtable.HudsonSnesInstr.0
mov qword [r12], rax
mov byte [r12 + 0xb8], bl
mov dword [r12 + 0xbc], edi
mov dword [r12 + 0xc0], esi
lea rsi, [r14 + 0x128]
lea rbx, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
jmp 0x140099bf2
xor r12d, r12d
test r15b, 1
je 0x140099c37
and r15d, 0xfffffffe
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140099c37
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140099c32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140099dc8
call fcn.14016cca4
lea rcx, [r14 + 0xf0]
mov qword [rsp + 0x48], r12
mov rdx, qword [r14 + 0xf8]
cmp rdx, qword [r14 + 0x100]
je 0x140099c60
mov qword [rdx], r12
add qword [r14 + 0xf8], 8
jmp 0x140099c6b
lea r8, [rsp + 0x48]
call fcn.140006b30
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.14001ad40
lea rcx, [rbp - 0x80]
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 - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor r12d, r12d
movzx edx, byte [rsp + 0x40]
inc dl
mov byte [rsp + 0x40], dl
mov eax, dword [r14 + 0x3c]
movzx ecx, dl
mov dword [rsp + 0x48], ecx
shr eax, 2
cmp ecx, eax
jb 0x140099910
mov rax, qword [r14 + 0xf8]
sub rax, qword [r14 + 0xf0]
cmp rax, 8
jb 0x140099d91
mov rdx, qword [r14 + 0x130]
mov rcx, qword [rsi]
mov r8, rdx
sub r8, rcx
xor r9d, r9d
call fcn.14004c2f0
mov ecx, 0x140
call fcn.14016cc68
mov rcx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140099d71
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], 0xc
mov qword [rbp + 0x78], 0xf
movsd xmm0, qword [str.SNESSampColl]
movsd qword [rbp + 0x60], xmm0
mov eax, dword [0x1401860c8]
mov dword [rbp + 0x68], eax
mov byte [rbp + 0x6c], 0
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9d, dword [r14 + 0x11c]
mov r8, qword [r14 + 0xd0]
lea rdx, [0x14021e1c8]
call fcn.14011f080
mov r12, rax
mov rcx, r12
call fcn.140017740
test al, al
jne 0x140099dcf
test r12, r12
je 0x140099d91
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax + 0x50]
xor al, al
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14016cd40
lea r11, [rsp + 0x1a0]
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov al, 1
jmp 0x140099d93