Function at 0x140004040
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5a0
movaps xmmword [r11 - 0x48], xmm6
mov rax, qword [0x14003b040]
xor rax, rsp
mov qword [rsp + 0x588], rax
xor r14d, r14d
mov dword [rsp + 0x70], r14d
lea rdx, [r11 + 0x10]
call fcn.140003e20
mov rsi, rax
mov qword [rsp + 0x70], r14
lea r15, [rsp + 0x5e8]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x88], xmm0
mov r13d, r14d
mov qword [rsp + 0x98], r14
test rax, rax
je 0x140004146
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x140005335
lea rbx, [rsi + rsi]
test rbx, rbx
jne 0x1400040de
mov rdi, r14
jmp 0x14000411b
cmp rbx, 0x1000
jb 0x140004110
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14000533b
call fcn.140011140
test rax, rax
je 0x1400052fa
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000411b
mov rcx, rbx
call fcn.140011140
mov rdi, rax
mov qword [rsp + 0x88], rdi
lea r13, [rbx + rdi]
mov qword [rsp + 0x98], r13
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x90], r13
jmp 0x14000414e
mov rdi, qword [rsp + 0x88]
call fcn.140001380
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r9, qword [rsp + 0x5e0]
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf_s]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x560]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea rdx, [0x14003bd28]
cmp qword [0x14003bd40], 7
cmova rdx, qword [0x14003bd28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x520], xmm0
mov qword [rsp + 0x530], r14
mov qword [rsp + 0x538], r14
mov r8, qword [0x14003bd38]
lea rcx, [rsp + 0x520]
call fcn.140002210
mov r15d, 3
lea rcx, [rsp + 0x520]
call fcn.140003b40
test al, al
je 0x14000491e
lea rcx, [rsp + 0x520]
cmp qword [rsp + 0x538], 7
cmova rcx, qword [rsp + 0x520]
mov r9d, 0xffffffff
mov r8d, 9
lea rdx, [rsp + 0x500]
call fcn.140010b48
test eax, eax
jne 0x140005341
cmp qword [rsp + 0x508], 0xa00000
jbe 0x14000491e
lea rbx, [rsp + 0x520]
cmp qword [rsp + 0x538], 7
cmova rbx, qword [rsp + 0x520]
lea rax, [0x140032d10]
mov qword [rsp + 0x1b0], rax
lea rcx, [rsp + 0x260]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x70], 0x43
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_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 + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x1b0], rsi
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1ac], edx
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r12, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x1c0], r12
mov byte [rsp + 0x23c], 0
mov byte [rsp + 0x231], 0
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x240], r14
mov rax, qword [0x14003bdf8]
mov qword [rsp + 0x234], rax
mov qword [rsp + 0x228], r14
mov r8d, 0x25
mov rdx, rbx
lea rcx, [rsp + 0x1c0]
call fcn.140009990
test rax, rax
jne 0x140004374
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x1b0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x1b0], rsi
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1ac], edx
mov rdx, 0xfffffffffff00000
mov r8d, 2
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov qword [rsp + 0x70], r14
mov word [rsp + 0x78], 1
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rsp + rcx + 0x1f8]
mov qword [rsp + 0x50], rcx
test rcx, rcx
sete byte [rsp + 0x58]
mov byte [rsp + 0x59], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x500], xmm0
mov qword [rsp + 0x510], r14
mov qword [rsp + 0x518], r14
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm6, xmmword [rsp + 0x70]
test rcx, rcx
je 0x140004451
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x14000443d
mov byte [rsp + 0x59], al
mov rax, qword [rsp + 0x50]
mov byte [rsp + 0x58], 1
movaps xmm0, xmmword [rsp + 0x50]
jmp 0x140004456
mov rax, r14
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 1
movaps xmm0, xmmword [rsp + 0x50]
jmp 0x140004456
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x14000455c
test rax, rax
je 0x140004565
movdqa xmmword [rsp + 0x50], xmm6
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x500]
call fcn.140009cb0
nop
cmp qword [rsp + 0x240], 0
je 0x140004586
lea rcx, [rsp + 0x230]
mov rax, qword [rsp + 0x1d8]
cmp qword [rax], rcx
jne 0x1400044df
mov rdx, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x248]
mov qword [rax], rcx
mov rax, qword [rsp + 0x1f8]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0x210]
mov dword [rax], edx
lea rcx, [rsp + 0x1c0]
call fcn.140008090
movzx ebx, al
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x1c0]
test bl, bl
cmove rcx, r14
mov rbx, r14
test eax, eax
cmove rbx, rcx
mov byte [rsp + 0x23c], 0
mov byte [rsp + 0x231], 0
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x240], r14
mov rax, qword [0x14003bdf8]
mov qword [rsp + 0x234], rax
mov qword [rsp + 0x228], r14
test rbx, rbx
jne 0x1400045e8
jmp 0x1400045c3
test rax, rax
je 0x14000446d
mov qword [rsp + 0x510], r14
mov qword [rsp + 0x518], 0xf
mov byte [rsp + 0x500], 0
jmp 0x140004491
mov byte [rsp + 0x23c], 0
mov byte [rsp + 0x231], 0
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x240], r14
mov rax, qword [0x14003bdf8]
mov qword [rsp + 0x234], rax
mov qword [rsp + 0x228], r14
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x1b0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rbx, [rsp + 0x520]
cmp qword [rsp + 0x538], 7
cmova rbx, qword [rsp + 0x520]
lea r14, [0x140032c48]
mov qword [rsp + 0x2c0], r14
lea rcx, [rsp + 0x368]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r15d, 0xc3
mov dword [rsp + 0x70], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x2c8]
lea rcx, [rsp + 0x2c0]
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 + 0x2c0]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x2c0], rsi
mov rax, qword [rsp + 0x2c0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2bc], edx
lea rcx, [rsp + 0x2c8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rsp + 0x2c8], r12
mov byte [rsp + 0x344], 0
mov byte [rsp + 0x339], 0
lea rcx, [rsp + 0x2c8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor ecx, ecx
mov qword [rsp + 0x348], rcx
mov rax, qword [0x14003bdf8]
mov qword [rsp + 0x33c], rax
mov qword [rsp + 0x330], rcx
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x2c8]
call fcn.140009990
test rax, rax
jne 0x140004712
mov rax, qword [rsp + 0x2c0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x2c0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x2c0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x2c0], rsi
mov rax, qword [rsp + 0x2c0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2bc], edx
lea rdx, [rsp + 0x500]
cmp qword [rsp + 0x518], 0xf
cmova rdx, qword [rsp + 0x500]
mov r8, qword [rsp + 0x510]
lea rcx, [rsp + 0x2c0]
call fcn.140009af0
cmp qword [rsp + 0x348], 0
je 0x140004839
lea rcx, [rsp + 0x338]
mov rax, qword [rsp + 0x2e0]
cmp qword [rax], rcx
jne 0x1400047bc
mov rdx, qword [rsp + 0x358]
mov rcx, qword [rsp + 0x350]
mov qword [rax], rcx
mov rax, qword [rsp + 0x300]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0x318]
mov dword [rax], edx
lea rcx, [rsp + 0x2c8]
call fcn.140008090
movzx ebx, al
mov rcx, qword [rsp + 0x348]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x2c8]
test bl, bl
mov edx, 0
cmove rcx, rdx
mov ebx, edx
test eax, eax
cmove rbx, rcx
mov byte [rsp + 0x344], dl
mov byte [rsp + 0x339], dl
lea rcx, [rsp + 0x2c8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor ecx, ecx
mov qword [rsp + 0x348], rcx
mov rax, qword [0x14003bdf8]
mov qword [rsp + 0x33c], rax
mov qword [rsp + 0x330], rcx
test rbx, rbx
jne 0x14000489e
jmp 0x140004878
mov byte [rsp + 0x344], 0
mov byte [rsp + 0x339], 0
lea rcx, [rsp + 0x2c8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor ecx, ecx
mov qword [rsp + 0x348], rcx
mov rax, qword [0x14003bdf8]
mov qword [rsp + 0x33c], rax
mov qword [rsp + 0x330], rcx
mov rax, qword [rsp + 0x2c0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x2c0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rsp + 0x2c0]
call fcn.140005420
nop
mov rdx, qword [rsp + 0x518]
cmp rdx, 0xf
jbe 0x1400048f2
inc rdx
mov rcx, qword [rsp + 0x500]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400113c4
xor edx, edx
mov qword [rsp + 0x510], rdx
mov qword [rsp + 0x518], 0xf
mov byte [rsp + 0x500], dl
lea rcx, [rsp + 0x1b0]
call fcn.140005360
jmp 0x140004933
lea r12, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea r14, [0x140032c48]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea rbx, [rsp + 0x520]
cmp qword [rsp + 0x538], 7
cmova rbx, qword [rsp + 0x520]
mov qword [rsp + 0xa0], r14
lea rcx, [rsp + 0x148]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r15d, 0x10
mov dword [rsp + 0x70], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
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 + 0xa0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0xa0], rsi
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rsp + 0xa8], r12
mov byte [rsp + 0x124], 0
mov byte [rsp + 0x119], 0
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor r12d, r12d
mov qword [rsp + 0x128], r12
mov rax, qword [0x14003bdf8]
mov qword [rsp + 0x11c], rax
mov qword [rsp + 0x110], r12
mov r8d, 0xa
mov rdx, rbx
lea rcx, [rsp + 0xa8]
call fcn.140009990
test rax, rax
jne 0x140004a4e
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0xa0], rsi
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x9c], edx
cmp qword [rsp + 0x128], 0
setne byte [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov rsi, rbx
inc rsi
cmp word [rdi + rsi*2], 0
jne 0x140004a93
test rsi, rsi
je 0x140004ab8
movzx eax, word [rdi + rsi*2 - 2]
cmp ax, 0xa
je 0x140004ab3
cmp ax, 0xd
jne 0x140004ab8
mov r14b, 1
jmp 0x140004abb
xor r14b, r14b
lea rax, [0x140032d18]
mov qword [rsp + 0x3d0], rax
lea rcx, [rsp + 0x458]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r15d, 0x20
mov dword [rsp + 0x70], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x3d8]
lea rcx, [rsp + 0x3d0]
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 + 0x3d0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x3d0], rax
mov rax, qword [rsp + 0x3d0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x3cc], edx
lea rcx, [rsp + 0x3d8]
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 + 0x3d8], rax
mov qword [rsp + 0x440], r12
mov dword [rsp + 0x448], 4
lea rax, [0x140032630]
lea rdx, [0x1400326dc]
test r14b, r14b
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x540], xmm0
xor r14d, r14d
mov qword [rsp + 0x550], r14
mov qword [rsp + 0x558], r14
inc rbx
cmp byte [rdx + rbx], r14b
jne 0x140004b96
mov r8, rbx
lea rcx, [rsp + 0x540]
call fcn.140009230
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x4e0], xmm0
mov qword [rsp + 0x4f0], r14
mov qword [rsp + 0x4f8], 0xf
mov byte [rsp + 0x4e0], 0
lea rax, [rsp + 0x560]
mov qword [rsp + 0x50], rax
lea rax, str._Y__m__d__H:_M:_S
mov qword [rsp + 0x58], rax
inc rax
mov qword [rsp + 0x60], rax
cmp byte [rax], 0
jne 0x140004bf0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x3d0]
call fcn.140008890
mov rcx, rax
call fcn.1400085f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x4c0], xmm0
mov qword [rsp + 0x4d0], r14
mov qword [rsp + 0x4d8], 0xf
mov byte [rsp + 0x4c0], 0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, esi
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r12, eax
mov rdx, r12
mov rcx, qword [rsp + 0x4d0]
cmp r12, rcx
ja 0x140004ca1
mov qword [rsp + 0x4d0], rdx
lea rcx, [rsp + 0x4c0]
cmp qword [rsp + 0x4d8], 0xf
cmova rcx, qword [rsp + 0x4c0]
mov byte [rcx + r12], 0
jmp 0x140004d04
mov r14, rdx
sub r14, rcx
mov r8, qword [rsp + 0x4d8]
mov rax, r8
sub rax, rcx
cmp r14, rax
ja 0x140004cee
mov qword [rsp + 0x4d0], rdx
lea rbx, [rsp + 0x4c0]
cmp r8, 0xf
cmova rbx, qword [rsp + 0x4c0]
add rbx, rcx
mov r8, r14
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + r14], 0
jmp 0x140004d01
mov r9, r14
mov rdx, r14
lea rcx, [rsp + 0x4c0]
call fcn.140009660
xor r14d, r14d
lea rax, [rsp + 0x4c0]
cmp qword [rsp + 0x4d8], 0xf
cmova rax, qword [rsp + 0x4c0]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [rsp + 0x4c0]
cmp qword [rsp + 0x4d8], 0xf
cmova rdx, qword [rsp + 0x4c0]
mov r8, qword [rsp + 0x4d0]
lea rcx, [rsp + 0x3d0]
call fcn.140009af0
lea rdx, [rsp + 0x540]
cmp qword [rsp + 0x558], 0xf
cmova rdx, qword [rsp + 0x540]
mov r8, qword [rsp + 0x550]
lea rcx, [rsp + 0x3d0]
call fcn.140009af0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x500], xmm0
movdqa xmm6, xmmword [0x140033cf0]
movdqu xmmword [rsp + 0x510], xmm6
mov byte [rsp + 0x500], 0
or r15d, 8
mov dword [rsp + 0x70], r15d
movups xmmword [rsp + 0x50], xmm0
mov ecx, dword [rsp + 0x448]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140004e16
mov rax, qword [rsp + 0x418]
mov r8, qword [rax]
test r8, r8
je 0x140004e16
mov rax, qword [rsp + 0x3f8]
mov rdx, qword [rax]
cmp r8, qword [rsp + 0x440]
cmovb r8, qword [rsp + 0x440]
sub r8, rdx
jmp 0x140004e53
test cl, 4
jne 0x140004e49
mov rax, qword [rsp + 0x410]
mov rcx, qword [rax]
test rcx, rcx
je 0x140004e49
mov rax, qword [rsp + 0x3f0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x428]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140004e53
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140004e6e
lea rcx, [rsp + 0x500]
call fcn.1400083b0
movdqu xmm6, xmmword [rsp + 0x510]
mov rdx, qword [rsp + 0x4f8]
cmp rdx, 0xf
jbe 0x140004eb4
inc rdx
mov rcx, qword [rsp + 0x4e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004eaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004eaf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400113c4
movups xmm0, xmmword [rsp + 0x500]
movups xmmword [rsp + 0x4e0], xmm0
movups xmmword [rsp + 0x4f0], xmm6
lea rdx, [rsp + 0x4e0]
movq r8, xmm0
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, r8
movq r8, xmm6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009af0
lea rdx, [rsp + 0x4e0]
cmp qword [rsp + 0x4f8], 0xf
cmova rdx, qword [rsp + 0x4e0]
mov r8, qword [rsp + 0x4f0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140009af0
lea rcx, [rsp + 0x4e0]
cmp qword [rsp + 0x4f8], 0xf
cmova rcx, qword [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [rsp + 0x40], 0
je 0x1400050b2
lea rdx, [rsp + 0x4e0]
cmp qword [rsp + 0x4f8], 0xf
cmova rdx, qword [rsp + 0x4e0]
mov r8, qword [rsp + 0x4f0]
lea rcx, [rsp + 0xa0]
call fcn.140009af0
cmp qword [rsp + 0x128], 0
je 0x14000504f
lea rcx, [rsp + 0x118]
mov rax, qword [rsp + 0xc0]
cmp qword [rax], rcx
jne 0x140004fd6
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
mov qword [rax], rcx
mov rax, qword [rsp + 0xe0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0xf8]
mov dword [rax], edx
lea rcx, [rsp + 0xa8]
call fcn.140008090
movzx ebx, al
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0xa8]
test bl, bl
cmove rcx, r14
mov rbx, r14
test eax, eax
cmove rbx, rcx
mov byte [rsp + 0x124], 0
mov byte [rsp + 0x119], 0
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x128], r14
mov rax, qword [0x14003bdf8]
mov qword [rsp + 0x11c], rax
mov qword [rsp + 0x110], r14
test rbx, rbx
jne 0x1400050b2
jmp 0x14000508c
mov byte [rsp + 0x124], 0
mov byte [rsp + 0x119], 0
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x128], r14
mov rax, qword [0x14003bdf8]
mov qword [rsp + 0x11c], rax
mov qword [rsp + 0x110], r14
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rsp + 0x4d8]
cmp rdx, 0xf
jbe 0x1400050f8
inc rdx
mov rcx, qword [rsp + 0x4c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400113c4
mov qword [rsp + 0x4d0], r14
mov qword [rsp + 0x4d8], 0xf
mov byte [rsp + 0x4c0], 0
mov rdx, qword [rsp + 0x4f8]
cmp rdx, 0xf
jbe 0x14000515a
inc rdx
mov rcx, qword [rsp + 0x4e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005155
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005155
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400113c4
mov qword [rsp + 0x4f0], r14
mov qword [rsp + 0x4f8], 0xf
mov byte [rsp + 0x4e0], 0
mov rdx, qword [rsp + 0x558]
cmp rdx, 0xf
jbe 0x1400051bc
inc rdx
mov rcx, qword [rsp + 0x540]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400113c4
mov qword [rsp + 0x550], r14
mov qword [rsp + 0x558], 0xf
mov byte [rsp + 0x540], 0
mov rax, qword [rsp + 0x3d0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x3d0], rax
mov rax, qword [rsp + 0x3d0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x3cc], edx
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x3d8], rax
lea rcx, [rsp + 0x3d8]
call fcn.140008240
lea rcx, [rsp + 0x3d8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x3e0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x458]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xa0]
call fcn.140005420
nop
mov rdx, qword [rsp + 0x538]
cmp rdx, 7
jbe 0x1400052ac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x520]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400052a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400113c4
movdqa xmm0, xmmword [0x140033ce0]
movdqu xmmword [rsp + 0x530], xmm0
mov word [rsp + 0x520], r14w
test rdi, rdi
je 0x14000530a
sub r13, rdi
sar r13, 1
lea rdx, [r13*2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140005301
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005301
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400113c4
nop
mov rcx, qword [rsp + 0x588]
xor rcx, rsp
call fcn.140011000
movaps xmm6, xmmword [rsp + 0x590]
add rsp, 0x5a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call fcn.140009ad0
nop
call fcn.140001490
nop
lea r8, [rsp + 0x520]
mov edx, eax
call fcn.140003a10
int3