Function at 0x140042780
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rbx
push r14
lea rbp, [r11 - 0x498]
sub rsp, 0x580
mov rax, qword [0x14008e3a8]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov qword [r11 + 0x10], rsi
lea rdx, [rbp]
mov r14, rcx
mov qword [r11 + 0x18], rdi
add rcx, 8
mov qword [r11 + 0x20], r15
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_ostream_char__struct_std::char_traits_char__::tellp_void____ptr64]
lea rdx, [0x140042560]
lea rcx, [r14 + 8]
mov r15, qword [rax + 8]
add r15, qword [rax]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rbp + 0x18]
lea rcx, [r14 + 8]
call fcn.140043ee0
xor esi, esi
test byte [0x14008d4b0], 0x19
je 0x140042900
cmp qword [rbp + 0x30], 0x10
lea rax, [rbp + 0x18]
mov r8, qword [r14 + 0xf0]
lea r9, [rsi - 1]
cmovae rax, qword [rbp + 0x18]
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x50]
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x68], rax
call fcn.140049400
lea ecx, [rsi + 0x38]
call fcn.140075198
test rax, rax
je 0x14004285e
movaps xmm0, xmmword [rbp - 0x50]
lea r8, [rbp - 0x40]
mov r9d, dword [r14 + 0x100]
mov rcx, rax
mov rdx, qword [r14 + 0xf8]
movdqa xmmword [rbp - 0x40], xmm0
call fcn.14004f7e0
mov rdi, rax
jmp 0x140042861
mov rdi, rsi
call sub.KERNEL32.dll_GetCurrentThreadId
lea rcx, [rbp - 0x78]
mov ebx, eax
call fcn.14004f460
mov dword [rsp + 0x48], 0x8008
lea rax, str.message
mov qword [rbp + 0x40], rax
lea r8, str.LogMessage
lea rax, [rbp + 0x38]
mov word [rbp + 0x38], 0x801
mov qword [rsp + 0x40], rax
lea rdx, [0x14008d4b0]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebx
mov cl, 0x49
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x50], rdi
call fcn.1400534c0
movzx edx, byte [rbp + 0x38]
mov rbx, rsi
test dl, dl
je 0x140042900
cmp byte [rbp + rbx + 0x39], 8
jne 0x1400428f5
mov rcx, qword [rbp + rbx*8 + 0x50]
test rcx, rcx
je 0x1400428f5
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
movzx edx, byte [rbp + 0x38]
inc rbx
movzx eax, dl
cmp rbx, rax
jb 0x1400428d6
mov rax, qword [0x14008e938]
test rax, rax
je 0x140042937
mov r9, qword [r14 + 0xf0]
lea rcx, [rbp + 0x18]
mov r8d, dword [r14 + 0x100]
mov rdx, qword [r14 + 0xf8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [r14]
call rax
test al, al
jne 0x140042b53
mov eax, dword [0x14008d004]
test al, 2
je 0x14004295b
cmp qword [rbp + 0x30], 0x10
lea rcx, [rbp + 0x18]
cmovae rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14008d004]
test al, 4
jne 0x14004296c
cmp dword [r14], 2
jl 0x1400429b8
test eax, 0xfffffffe
jne 0x1400429b8
cmp qword [rbp + 0x30], 0x10
lea rdi, [rbp + 0x18]
mov rbx, qword [rbp + 0x28]
mov ecx, 2
cmovae rdi, qword [rbp + 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 1
mov rdx, rbx
mov r9, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [0x14008d004]
test al, 1
je 0x1400429ed
call fcn.1400433a0
test al, al
je 0x1400429ed
cmp qword [rbp + 0x30], 0x10
lea rdx, [rbp + 0x18]
mov r8d, dword [rbp + 0x28]
lea r9, [rbp - 0x80]
cmovae rdx, qword [rbp + 0x18]
mov rcx, qword [0x14008e960]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [r14], 3
jne 0x140042b53
mov rcx, qword [0x14008e9c0]
test rcx, rcx
je 0x140042a32
cmp qword [rbp + 0x30], 0x10
lea rax, [rbp + 0x18]
lea rdx, [rbp - 0x30]
cmovae rax, qword [rbp + 0x18]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x30], xmm0
call fcn.14004cb50
cmp qword [rbp + 0x30], 0x10
lea rdx, [rbp + 0x18]
mov r8d, 0x400
mov dword [rbp + 0x60], 0xbedead01
cmovae rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x64]
mov dword [rbp + 0x464], 0x5050dead
call fcn.14004a8c0
lea rcx, [rbp + 0x60]
call fcn.140044940
mov rcx, qword [0x14008e990]
cmp qword [0x14008e988], rcx
je 0x140042b52
test rcx, rcx
cmove rcx, qword [0x14008e980]
dec rcx
cmp rcx, qword [0x14008e980]
jbe 0x140042a95
int3
mov rax, qword [0x14008e978]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0x50]
call fcn.14004f750
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140042b46
mov r9, qword [rbp + 0x30]
lea rdx, [rbp + 0x18]
mov r8, qword [rbp + 0x18]
cmp r9, 0x10
cmovae rdx, r8
add rdx, r15
mov qword [rsp + 0x70], rdx
je 0x140042ae9
cmp byte [rdx], sil
je 0x140042ae9
nop dword [rax + rax]
inc rsi
cmp byte [rsi + rdx], 0
jne 0x140042ae0
mov rdx, qword [r14 + 0xf0]
lea rcx, [rbp + 0x18]
cmp r9, 0x10
mov qword [rsp + 0x78], rsi
movaps xmm0, xmmword [rsp + 0x70]
lea r9, [rbp - 0x10]
cmovae rcx, r8
movdqa xmmword [rbp - 0x20], xmm0
mov r8d, dword [r14 + 0x100]
add rcx, rdx
mov qword [rsp + 0x60], rcx
sub r15, rdx
mov rdx, qword [r14 + 0xf8]
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov qword [rsp + 0x68], r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x10], xmm0
call qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.14004f7b0
jmp 0x140042b53
int3
mov rdx, qword [rbp + 0x30]
mov r15, qword [rsp + 0x5b8]
mov rdi, qword [rsp + 0x5b0]
mov rsi, qword [rsp + 0x5a8]
cmp rdx, 0x10
jb 0x140042ba9
mov rcx, qword [rbp + 0x18]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042ba4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042ba4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140068220
lea rcx, [r14 + 0x110]
call fcn.140047ce0
mov rax, qword [r14 + 8]
lea rbx, [r14 + 0x90]
lea rcx, [rbx - 0x80]
movsxd rdx, dword [rax + 4]
lea rax, [0x14007a208]
mov qword [rdx + rbx - 0x88], rax
mov rax, qword [rbx - 0x88]
movsxd rdx, dword [rax + 4]
lea r8d, [rdx - 0x88]
mov dword [rdx + rbx - 0x8c], r8d
call fcn.1400426c0
lea rcx, [rbx - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140075580
add rsp, 0x580
pop r14
pop rbx
pop rbp
ret