Function at 0x7ff605164170
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xd0
mov rax, qword [0x7ff60566c600]
xor rax, rsp
mov qword [rbp - 9], rax
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x61], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x51], rax
xor r13d, r13d
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x19], r13
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x7ff605164893
movsxd r15, dword [rdx + 0x3c]
add r15, rdx
cmp dword [r15], 0x4550
jne 0x7ff605164893
mov eax, 0x20b
cmp word [r15 + 0x18], ax
je 0x7ff6051641f4
lea rdx, [0x7ff605629658]
jmp 0x7ff60516489a
mov ebx, dword [r15 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x7ff6051648b6
movzx eax, word [r15 + 0x14]
mov r12d, dword [rax + r15 + 0x24]
sub ebx, r12d
mov edx, ebx
mov qword [rsp + 0x40], rdx
je 0x7ff6051642f1
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x7ff60574b3fc], eax
jle 0x7ff6051642c4
lea rcx, [0x7ff60574b3fc]
call fcn.7ff60542ad80
cmp dword [0x7ff60574b3fc], 0xffffffff
jne 0x7ff6051642bf
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x71], xmm1
mov r8d, 0x15
lea rdx, [0x7ff60551d2c8]
lea rcx, [rsp + 0x48]
call fcn.7ff605163830
nop
lea r8, [rsp + 0x48]
mov rdx, qword [0x7ff605749af8]
mov rcx, rdi
call fcn.7ff60515f590
mov qword [0x7ff60574b460], rax
lea rcx, [rsp + 0x48]
call fcn.7ff605162330
nop
lea rcx, [0x7ff60574b3fc]
call fcn.7ff60542ad14
mov rdx, qword [rsp + 0x40]
cmp qword [0x7ff60574b460], 0
jne 0x7ff60516432a
lea rdx, [0x7ff60551d2e0]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff6051623f0
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
lea rdx, [0x7ff605629690]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff6051623f0
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.kernel32.dll_VirtualFree]
jmp 0x7ff6051648b6
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.7ff605162bc0
test al, al
je 0x7ff6051642f1
mov r13, qword [rsp + 0x30]
test r13, r13
je 0x7ff6051642f1
lea rdx, [0x7ff6056296f0]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff6051623f0
mov rdx, r13
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
mov r8d, dword [r15 + 0x54]
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy_1
movzx ebx, word [r15 + 0x14]
add rbx, 0x24
xor eax, eax
mov edi, eax
cmp ax, word [r15 + 6]
jae 0x7ff6051643d0
add rbx, r15
test dword [rbx + 0x18], 0x80
ja 0x7ff6051643c1
mov ecx, dword [rbx]
add rcx, rsi
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r14
call sub.VCRUNTIME140.dll_memcpy_1
inc edi
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp edi, eax
jl 0x7ff6051643a4
mov qword [rbp - 0x59], r12
mov rbx, r13
sub rbx, r12
mov qword [rsp + 0x38], rbx
lea rdx, [0x7ff605629768]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff6051623f0
lea rdx, [0x7ff60515e0a0]
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___class_std::basic_ios_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ios_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, r12d
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x7ff605629740]
call fcn.7ff6051623f0
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
mov r14, rbx
sub r14, qword [r15 + 0x30]
mov eax, 0x5a4d
lea r12, [rsi + 0x3c]
cmp word [rsi], ax
jne 0x7ff60516444f
movsxd rax, dword [r12]
cmp dword [rax + rsi], 0x4550
je 0x7ff60516446c
xorps xmm1, xmm1
xor r11d, r11d
xorps xmm0, xmm0
psrldq xmm0, 8
movq r10, xmm0
movq rbx, xmm1
jmp 0x7ff605164526
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
xor r11d, r11d
mov qword [rbp - 0x31], r11
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x7ff60516449d
psrldq xmm0, 8
movq r10, xmm0
movq rbx, xmm1
jmp 0x7ff605164526
lea rbx, [rsi + rcx]
mov edi, dword [rax + rsi + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x39]
cmp rbx, rdi
jae 0x7ff605164522
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x7ff605164522
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x48], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x79], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x71], eax
cmp r10, r11
je 0x7ff6051644fe
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x71]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x39]
add r10, 0x18
mov qword [rbp - 0x39], r10
jmp 0x7ff605164513
lea r8, [rsp + 0x48]
mov rdx, r10
lea rcx, [rbp - 0x41]
call fcn.7ff605165b20
mov r10, qword [rbp - 0x39]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 0x31]
cmp rbx, rdi
jb 0x7ff6051644b4
mov rbx, qword [rbp - 0x41]
cmp rbx, r10
je 0x7ff605164582
lea r8, [rbx + 0x10]
mov edi, 0xfff
xor r13d, r13d
mov edx, r13d
cmp dword [r8], r13d
jbe 0x7ff605164570
nop
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
shr ax, 0xc
and r9w, di
cmp ax, 0xa
jne 0x7ff605164569
movzx ecx, r9w
mov rax, qword [r8 - 0x10]
add qword [rax + rcx], r14
inc edx
cmp edx, dword [r8]
jb 0x7ff605164540
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x7ff605164537
mov r13, qword [rsp + 0x30]
test rbx, rbx
je 0x7ff6051645dd
sub r11, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x7ff6051645d5
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff6051645d5
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.7ff60542acd0
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x7ff605164687
movsxd rax, dword [r12]
cmp dword [rax + rsi], 0x4550
jne 0x7ff605164687
mov ecx, dword [rax + rsi + 0xd8]
test ecx, ecx
jne 0x7ff605164634
lea rdx, [0x7ff605629a20]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff6051623f0
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
mov r14, qword [rsp + 0x38]
jmp 0x7ff6051646d9
mov rdi, qword [rcx + rsi + 0x58]
test rdi, rdi
jne 0x7ff605164647
lea rdx, [0x7ff605629ae0]
jmp 0x7ff60516460e
mov rax, rsi
mov r14, qword [rsp + 0x38]
sub rax, r14
add rdi, rax
movabs r12, 0x2b992ddfa232
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
cmp qword [rdi], r12
je 0x7ff605164693
lea rdx, [0x7ff605629b40]
call fcn.7ff6051623f0
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
lea rdx, [0x7ff605629788]
jmp 0x7ff60516489a
lea rdx, [0x7ff605629ba8]
call fcn.7ff6051623f0
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
call qword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov ecx, eax
xor rcx, rbx
xor rcx, r12
movabs rax, 0x2b992ddfa233
cmp rcx, r12
cmove rcx, rax
mov qword [rdi], rcx
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.7ff6051653b0
mov rdx, rax
mov rdi, qword [rbp - 0x61]
mov rcx, rdi
call fcn.7ff6051648e0
test al, al
jne 0x7ff605164705
lea rdx, [0x7ff6056297c0]
jmp 0x7ff6051647ba
mov r8, qword [rbp - 0x59]
add r8, rsi
mov r12, qword [rsp + 0x40]
mov r9, r12
mov rdx, r13
mov rcx, rdi
call fcn.7ff60515f1a0
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test al, al
jne 0x7ff605164736
lea rdx, [0x7ff605629800]
jmp 0x7ff6051647c1
mov ebx, dword [r15 + 0x28]
add rbx, r14
lea rdx, [0x7ff605629860]
call fcn.7ff6051623f0
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov r9, r12
mov r8, r13
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.7ff6051bd760
test al, al
jne 0x7ff60516478d
lea rdx, [0x7ff6056298a0]
jmp 0x7ff6051647ba
mov dword [rsp + 0x30], r14d
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.7ff605164c00
test al, al
jne 0x7ff605164830
lea rdx, [0x7ff6056298f0]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff6051623f0
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.kernel32.dll_VirtualFree]
lea rdx, [0x7ff605629968]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff6051623f0
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
mov rdx, r13
mov rcx, rdi
call fcn.7ff60515f490
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test al, al
lea rdx, [0x7ff605629990]
jne 0x7ff6051648a1
lea rdx, [0x7ff6056299d0]
jmp 0x7ff6051648a1
mov ebx, dword [rsp + 0x30]
mov rax, qword [rbp - 0x51]
test rax, rax
je 0x7ff60516483f
mov dword [rax], ebx
lea rdx, [0x7ff605629930]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff6051623f0
lea rdx, [0x7ff60515e0a0]
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___class_std::basic_ios_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ios_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rax, r13
jmp 0x7ff6051648b8
lea rdx, [0x7ff605629618]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff6051623f0
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.7ff60542acb0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret