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

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
lea rbp, [r11 - 0x428]
sub rsp, 0x510
mov rax, qword [0x14008a3a8]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rsi, rcx
mov qword [r11 + 0x10], rdi
add rcx, 8
mov qword [r11 + 0x20], r15
lea rdx, [rbp - 0x70]
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, [0x140044270]
lea rcx, [rsi + 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]
mov ecx, dword [rsi + 0x80]
xor edi, edi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], dil
test cl, 2
jne 0x140044529
mov rax, qword [rsi + 0x50]
mov r8, qword [rax]
test r8, r8
je 0x140044529
cmp r8, qword [rsi + 0x78]
mov rax, qword [rsi + 0x30]
mov qword [rsp + 0x50], r8
cmovb r8, qword [rsi + 0x78]
mov rdx, qword [rax]
sub r8, rdx
jmp 0x14004454e
test cl, 4
jne 0x140044557
mov rax, qword [rsi + 0x48]
mov rcx, qword [rax]
test rcx, rcx
je 0x140044557
mov rax, qword [rsi + 0x28]
mov rdx, qword [rax]
mov rax, qword [rsi + 0x60]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rbp - 0x58]
call fcn.140041a50
test byte [0x140089490], 0x19
je 0x14004468e
cmp qword [rbp - 0x40], 0x10
lea rax, [rbp - 0x58]
mov r8, qword [rsi + 0xf0]
lea rdx, [rsp + 0x60]
cmovae rax, qword [rbp - 0x58]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x60], rax
mov r9, 0xffffffffffffffff
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x540], r14
call fcn.14004af50
mov ecx, 0x38
call fcn.140071f80
test rax, rax
je 0x1400445dd
movaps xmm0, xmmword [rbp - 0x80]
lea r8, [rsp + 0x70]
mov r9d, dword [rsi + 0x100]
mov rcx, rax
mov rdx, qword [rsi + 0xf8]
movdqa xmmword [rsp + 0x70], xmm0
call fcn.140052920
mov r14, rax
jmp 0x1400445e0
mov r14, rdi
call sub.KERNEL32.dll_GetCurrentThreadId
lea rcx, [rsp + 0x50]
mov ebx, eax
call fcn.1400523d0
mov dword [rsp + 0x48], 0x8010
lea rax, str.message
mov qword [rbp - 0x30], rax
lea r8, str.LogMessage
lea rax, [rbp - 0x38]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x40], rax
lea rdx, [0x140089490]
lea rax, [rsp + 0x50]
mov word [rbp - 0x38], 0x801
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebx
mov cl, 0x49
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x20], r14
call fcn.140056820
movzx edx, byte [rbp - 0x38]
mov rbx, rdi
mov r14, qword [rsp + 0x540]
test dl, dl
je 0x14004468e
cmp byte [rbp + rbx - 0x37], 8
jne 0x140044683
mov rcx, qword [rbp + rbx*8 - 0x20]
test rcx, rcx
je 0x140044683
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
movzx edx, byte [rbp - 0x38]
inc rbx
movzx eax, dl
cmp rbx, rax
jb 0x140044664
mov rax, qword [0x14008a9d0]
test rax, rax
je 0x1400446c4
mov r9, qword [rsi + 0xf0]
lea rcx, [rbp - 0x58]
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsi]
call rax
test al, al
jne 0x1400448cb
mov eax, dword [0x140089004]
test al, 2
je 0x1400446e8
cmp qword [rbp - 0x40], 0x10
lea rcx, [rbp - 0x58]
cmovae rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140089004]
test al, 4
jne 0x1400446f8
cmp dword [rsi], 2
jl 0x140044741
test eax, 0xfffffffe
jne 0x140044741
cmp qword [rbp - 0x40], 0x10
lea rbx, [rbp - 0x58]
mov ecx, 2
cmovae rbx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rbp - 0x48]
mov r8d, 1
mov r9, rax
mov rcx, rbx
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 [0x140089004]
test al, 1
je 0x140044777
call fcn.140045180
test al, al
je 0x140044777
cmp qword [rbp - 0x40], 0x10
lea rdx, [rbp - 0x58]
mov r8d, dword [rbp - 0x48]
lea r9, [rsp + 0x50]
cmovae rdx, qword [rbp - 0x58]
mov rcx, qword [0x14008a998]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x1400448cb
mov rcx, qword [0x14008aa00]
test rcx, rcx
je 0x1400447bd
cmp qword [rbp - 0x40], 0x10
lea rax, [rbp - 0x58]
lea rdx, [rsp + 0x60]
cmovae rax, qword [rbp - 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
call fcn.14004d4c0
cmp qword [rbp - 0x40], 0x10
lea rdx, [rbp - 0x58]
mov r8d, 0x400
mov dword [rbp - 0x10], 0xbedead01
cmovae rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0xc]
mov dword [rbp + 0x3f4], 0x5050dead
call fcn.14004bee0
lea rcx, [rbp - 0x10]
call fcn.14001cc80
mov rcx, qword [0x14008a9c8]
cmp qword [0x14008a9c0], rcx
je 0x1400448ca
test rcx, rcx
cmove rcx, qword [0x14008a9b8]
dec rcx
cmp rcx, qword [0x14008a9b8]
jbe 0x140044820
int3
mov rax, qword [0x14008a9b0]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0x50]
call fcn.140052890
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400448be
mov r9, qword [rbp - 0x40]
lea rdx, [rbp - 0x58]
mov r8, qword [rbp - 0x58]
cmp r9, 0x10
cmovae rdx, r8
add rdx, r15
mov qword [rsp + 0x70], rdx
je 0x14004486b
cmp byte [rdx], dil
je 0x14004486b
inc rdi
cmp byte [rdi + rdx], 0
jne 0x140044862
mov rdx, qword [rsi + 0xf0]
lea rcx, [rbp - 0x58]
cmp r9, 0x10
mov qword [rsp + 0x78], rdi
movaps xmm0, xmmword [rsp + 0x70]
lea r9, [rbp - 0x80]
cmovae rcx, r8
movdqa xmmword [rsp + 0x60], xmm0
mov r8d, dword [rsi + 0x100]
add rcx, rdx
mov qword [rbp - 0x80], rcx
sub r15, rdx
mov rdx, qword [rsi + 0xf8]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov qword [rbp - 0x78], r15
call qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.1400528f0
jmp 0x1400448cb
int3
mov rdx, qword [rbp - 0x40]
mov r15, qword [rsp + 0x548]
mov rdi, qword [rsp + 0x538]
cmp rdx, 0x10
jb 0x140044919
mov rcx, qword [rbp - 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044914
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044914
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006b030
lea rcx, [rsi + 0x110]
call fcn.140049650
mov rax, qword [rsi + 8]
lea rbx, [rsi + 0x90]
lea rcx, [rbx - 0x80]
movsxd rdx, dword [rax + 4]
lea rax, [0x1400770f8]
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.1400443d0
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 + 0x400]
xor rcx, rsp
call fcn.1400722b0
add rsp, 0x510
pop rsi
pop rbx
pop rbp
ret