Function at 0x140022370
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x140107040]
xor rax, rsp
mov qword [rbp + 0x100], rax
xor edi, edi
mov r15d, edi
mov dword [rsp + 0x38], edi
mov dword [rbp - 0x6c], edi
mov r13, qword [0x140670a60]
mov qword [rsp + 0x60], r13
lea r14, [r13 + 0x40]
mov r8, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1400223d1
mov r8, qword [r14]
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x68]
mov edx, dword [r13]
mov rcx, qword [0x14069fa80]
call qword [sym.imp.VMM.dll_VMMDLL_Map_GetModuleFromNameU]
test eax, eax
je 0x1400223f6
mov al, 1
jmp 0x1400227b4
mov rcx, qword [0x14069fa80]
call qword [sym.imp.VMM.dll_VMMDLL_InitializePlugins]
test eax, eax
je 0x1400227b2
lea rcx, str.Asgard__fixing_dtb.._step_1_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov qword [rsp + 0x30], 0x1f4
lea rcx, [rsp + 0x30]
call fcn.140023b20
mov dword [rbp - 0x70], edi
mov dword [rbp - 0x6c], edi
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 3
lea r8, [rbp - 0x70]
lea rdx, str.miscprocinfoprogress_percent.txt
mov rcx, qword [0x14069fa80]
call qword [sym.imp.VMM.dll_VMMDLL_VfsReadW]
test eax, eax
jne 0x1400226f2
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0x64
jge 0x140022715
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov qword [rbp + 8], rdi
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140022492
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x10]
call fcn.14001efa0
nop
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov r12, qword [rbp]
sub rax, r12
cmp rax, 0x1c
jb 0x140022c01
lea rdx, [rbp - 0x10]
mov rsi, qword [rbp - 0x10]
mov r13, qword [rbp + 8]
cmp r13, 0xf
cmova rdx, rsi
mov qword [rsp + 0x30], rdx
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
lea r15, [r12 + 0x1c]
mov edi, recvfrom
lea rbx, [rbp - 0x50]
cmp r15, rdi
jbe 0x14002258b
mov rdi, r15
or rdi, 0xf
cmp rdi, rcx
jbe 0x140022526
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x14002254d
cmp rdi, 0x16
mov eax, socket
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140022571
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140022c07
mov rcx, rax
call fcn.1400ccb34
test rax, rax
je 0x140022707
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
mov rdx, qword [rsp + 0x30]
jmp 0x140022587
test rcx, rcx
je 0x140022585
call fcn.1400ccb34
mov rbx, rax
mov rdx, qword [rsp + 0x30]
jmp 0x140022587
xor ebx, ebx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], rdi
movups xmm0, xmmword [str.Asgard__fixing_dtb.._step_1]
movups xmmword [rbx], xmm0
movsd xmm0, qword [0x1400f3160]
movsd qword [rbx + 0x10], xmm0
mov eax, dword [0x1400f3168]
mov dword [rbx + 0x18], eax
lea rcx, [rbx + 0x1c]
mov r8, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r15], 0
mov r15d, dword [rsp + 0x38]
or r15d, 1
mov r8d, 3
lea rdx, [0x1400f3148]
lea rcx, [rbp - 0x50]
call fcn.14001c7c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], sendto
mov byte [rax], dil
or r15d, 2
mov dword [rsp + 0x38], r15d
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140022674
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002266f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022700
call fcn.1400cc890
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], sendto
mov byte [rsp + 0x40], dil
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x1400226bf
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400226b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022707
call fcn.1400cc890
nop
cmp r13, 0xf
jbe 0x1400226f2
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400226ea
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002270e
mov rcx, rsi
call fcn.1400cc890
mov qword [rsp + 0x30], 0x64
jmp 0x140022421
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, str.Asgard__fixing_dtb.._step_2_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov dword [rsp + 0x70], 2
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x80], rdi
lea rax, [0x140022340]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x70]
lea rdx, str.miscprocinfo_
mov rcx, qword [0x14069fa80]
call qword [sym.imp.VMM.dll_VMMDLL_VfsListU]
test eax, eax
je 0x1400227b2
lea rcx, str.Asgard__fixing_dtb.._step_3_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rbx, qword [0x1401071b0]
mov rcx, rbx
call fcn.1400cce88
mov r12, rax
mov dword [rbp - 0x18], edi
lea r9d, [rbx - 1]
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r8, r12
lea rdx, str.miscprocinfodtb.txt
mov rcx, qword [0x14069fa80]
call qword [sym.imp.VMM.dll_VMMDLL_VfsReadW]
test eax, eax
je 0x1400227e4
mov rcx, r12
call fcn.1400cc890
xor al, al
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400cc870
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.Asgard__fixing_dtb.._step_4_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov qword [rbp - 0x58], rdi
mov rbx, r12
mov rsi, rdi
xor r13d, r13d
nop word [rax + rax]
mov edx, 0xa
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rdi, rax
test rax, rax
je 0x140022afc
mov byte [rax], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], sendto
mov byte [rbp - 0x38], al
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r13
mov qword [rbp + 8], r13
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140022874
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.14001efa0
nop
lea rax, [0x1400f3388]
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r15d, 4
mov dword [rbp - 0x6c], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x10]
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 [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0xc], edx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 8]
cmp rax, 0xf
jbe 0x140022919
mov r8, qword [rbp - 0x10]
inc rax
jmp 0x140022932
mov ecx, reloc.WS2_32.dll_recvfrom
call fcn.1400ccb34
mov r8, rax
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
mov eax, reloc.WS2_32.dll_recvfrom
mov rdx, qword [rbp]
add rdx, r8
mov qword [rbp + 0x88], rdx
lea rdx, [r8 + rax]
mov rcx, qword [rbp + 0x40]
mov qword [rcx], r8
mov rax, qword [rbp + 0x60]
mov qword [rax], r8
sub edx, r8d
mov rax, qword [rbp + 0x78]
mov dword [rax], edx
mov rcx, qword [rbp + 0x88]
mov rax, qword [rbp + 0x38]
mov qword [rax], r8
mov rax, qword [rbp + 0x58]
mov qword [rax], r8
sub ecx, r8d
mov rax, qword [rbp + 0x70]
mov dword [rax], ecx
mov dword [rbp + 0x90], 0x23
lea rdx, [0x140022320]
lea rcx, [rbp + 0x10]
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__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [rbp - 0x50]
mov rcx, rax
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__::operator___unsigned_int____ptr64____ptr64]
lea rdx, [rbp - 0x4c]
mov rcx, rax
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__::operator___unsigned_int____ptr64____ptr64]
lea rdx, [rbp - 0x48]
mov rcx, rax
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__::operator___unsigned_long_long_unsigned___int64_____ptr64____ptr64]
lea rdx, [rbp - 0x40]
mov rcx, rax
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__::operator___unsigned_long_long_unsigned___int64_____ptr64____ptr64]
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x10]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x10]
call fcn.140023e60
cmp dword [rbp - 0x4c], 0
jne 0x140022a1b
mov rdx, qword [rbp - 0x60]
cmp rdx, qword [rbp - 0x58]
je 0x140022a0e
mov rax, qword [rbp - 0x48]
mov qword [rdx], rax
add qword [rbp - 0x60], 8
jmp 0x140022a1b
lea r8, [rbp - 0x48]
lea rcx, [rbp - 0x68]
call fcn.140024000
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140022a28
mov rdx, qword [r14]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rcx, qword [rbp - 0x38]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140022a66
mov rdx, qword [rbp - 0x60]
cmp rdx, qword [rbp - 0x58]
je 0x140022a59
mov rax, qword [rbp - 0x48]
mov qword [rdx], rax
add qword [rbp - 0x60], 8
jmp 0x140022a66
lea r8, [rbp - 0x48]
lea rcx, [rbp - 0x68]
call fcn.140024000
lea rbx, [rdi + 1]
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0xc], edx
lea rcx, [rbp + 0x20]
call fcn.140023890
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140022aec
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ae7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022bd4
call fcn.1400cc890
inc rsi
cmp rsi, 0x3e8
jb 0x140022810
lea rcx, str.Asgard__fixing_dtb.._step_5_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rbx, r13
mov rax, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x140022b8e
movabs rdi, 0x2002000100000000
mov r13, qword [rsp + 0x60]
nop
mov edx, dword [r13]
or rdx, rdi
mov r8, qword [rcx + rbx*8]
mov rcx, qword [0x14069fa80]
call qword [sym.imp.VMM.dll_VMMDLL_ConfigSet]
mov r8, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140022b55
mov r8, qword [r14]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov edx, dword [r13]
mov rcx, qword [0x14069fa80]
call qword [sym.imp.VMM.dll_VMMDLL_Map_GetModuleFromNameU]
test eax, eax
jne 0x140022bdb
inc rbx
mov rax, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
sub rax, rcx
sar rax, 3
cmp rbx, rax
jb 0x140022b30
mov rcx, r12
call fcn.1400cc890
xor bl, bl
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140022bf9
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022bf4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022bf4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.1400cc890
lea rcx, str.Asgard__dtb_fixed_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov bl, 1
jmp 0x140022b98
call fcn.1400cc890
movzx eax, bl
jmp 0x1400227b4
call fcn.140002730
int3
call fcn.140002690
int3