Function at 0x180049a50
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x138]
sub rsp, 0x238
mov rax, qword [0x18005f908]
xor r15d, r15d
mov rbx, rcx
test rax, rax
jne 0x18004a8a6
mov rax, qword gs:[0x58]
mov r12d, 0x5a4d
mov r8d, dword [0x18005f8b0]
mov rdi, qword [0x18005fa18]
mov esi, dword [0x18005f910]
mov r13d, 4
mov r14, qword [rax + r8*8]
mov dword [rbp - 0x48], esi
mov qword [rsp + 0x30], rdi
mov qword [rbp - 0x40], r14
mov eax, dword [r14 + r13]
cmp dword [0x18005fb58], eax
jle 0x180049eba
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x180049eba
xor edx, edx
mov dword [rbp + 0x190], r15d
lea r9, [rbp + 0x190]
xor r8d, r8d
mov r13d, r15d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180049b62
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x190]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x190]
lea r9, [rbp + 0x190]
mov rdx, rax
mov ecx, 0xb
mov r13, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180049b13
test eax, eax
jns 0x180049b7c
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180049e97
mov edi, r15d
mov dword [rbp + 0x198], r15d
cmp dword [r13], r15d
jbe 0x180049e81
mov eax, edi
lea rdx, [r13 + 0x30]
imul rbx, rax, 0x128
mov qword [rsp + 0x78], r15
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], recv
movzx eax, word [rbx + r13 + 0x2e]
add rax, rbx
add rdx, rax
inc r8
cmp byte [rdx + r8], 0
jne 0x180049bc1
lea rcx, [rsp + 0x78]
call fcn.1800028b0
cmp qword [rbp - 0x70], 0x10
lea rcx, [rsp + 0x78]
lea rdx, str.ntoskrnl.exe
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180049e33
lea rdx, [r13 + 0x30]
mov qword [rsp + 0x38], r15
add rdx, rbx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], recv
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180049c20
lea rcx, [rsp + 0x38]
call fcn.1800028b0
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, 0xffffffffffffffff
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], recv
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180049c60
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1800028b0
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180049cab
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp + 0x60], rax
lea rbx, [rbp + 0x50]
lea rax, [rbp + 0x50]
cmovae rax, qword [rbp + 0x50]
mov word [rax + rcx], 0x5c
jmp 0x180049cc5
mov edx, 1
mov qword [rsp + 0x20], 1
lea rcx, [rbp + 0x50]
call fcn.180002f90
mov rbx, rax
lea rcx, [rsp + 0x38]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x180049cdd
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x180049d2d
mov rcx, qword [rbp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180049d28
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a0cd
call fcn.18004dbb4
cmp qword [rsp + 0x50], 0x10
lea rcx, [rsp + 0x38]
mov qword [rbp + 0x60], r15
cmovae rcx, qword [rsp + 0x38]
xor edx, edx
mov qword [rbp + 0x68], recv
mov byte [rbp + 0x50], 0
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r12w
jne 0x18004a033
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18004a033
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18004a033
mov r14d, dword [rcx + rsi + 0x1c]
xor edi, edi
mov ebx, dword [rcx + rsi + 0x20]
mov r12d, dword [rcx + rsi + 0x24]
add rbx, rsi
add r12, rsi
lea r15, [rsi + r14]
test r14d, r14d
je 0x180049dd4
nop word [rax + rax]
mov edx, dword [rbx]
lea rcx, str.PsLookupProcessByProcessId
add rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x180049f5a
inc edi
add rbx, 4
cmp edi, r14d
jb 0x180049db0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x180049e11
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180049e0c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a0cd
call fcn.18004dbb4
mov edi, dword [rbp + 0x198]
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov r12d, 0x5a4d
mov byte [rsp + 0x38], r15b
mov qword [rsp + 0x50], recv
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x180049e6f
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180049e6a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a0cd
call fcn.18004dbb4
inc edi
mov dword [rbp + 0x198], edi
cmp edi, dword [r13]
jb 0x180049b90
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x30]
mov rbx, r15
lea rcx, [0x18005fb58]
mov qword [0x18005fb50], rbx
call fcn.18004dcb4
mov esi, dword [rbp - 0x48]
mov r14, qword [rbp - 0x40]
mov r13d, 4
mov eax, dword [r14 + r13]
cmp dword [0x18005fb48], eax
mov rbx, qword [0x18005fb50]
mov qword [rbp + 0x70], r15
jle 0x180049f16
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x180049f16
lea rcx, [0x18004f8b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x18005fb48]
mov qword [0x180061bf8], rax
call fcn.18004dcb4
mov rax, qword [0x18005f8d0]
mov dword [rbp - 0x10], 0x25ff
mov word [rbp - 0xc], 0
mov qword [rbp - 0xa], rbx
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x30], recv
mov qword [rbp - 0x48], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x10], rax
test rcx, rcx
jne 0x18004a0d4
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
movsxd rax, edi
xor edx, edx
mov r8d, 0x8000
movzx ecx, word [r12 + rax*2]
mov eax, dword [rbp + 0x198]
mov ebx, dword [r15 + rcx*4]
imul rcx, rax, 0x128
add rbx, qword [rcx + r13 + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x180049fc6
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180049fc1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a0cd
call fcn.18004dbb4
mov rdx, qword [rbp - 0x70]
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], recv
mov byte [rsp + 0x38], r15b
cmp rdx, 0x10
jb 0x18004a018
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a013
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a0cd
call fcn.18004dbb4
mov rdi, qword [rsp + 0x30]
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], recv
mov byte [rsp + 0x78], r15b
jmp 0x180049e9a
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18004a06c
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a067
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a0cd
call fcn.18004dbb4
mov rdx, qword [rbp - 0x70]
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x50], recv
mov qword [rsp + 0x48], r15
cmp rdx, 0x10
jb 0x18004a0b7
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a0b2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a0cd
call fcn.18004dbb4
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], recv
mov byte [rsp + 0x78], 0
jmp 0x180049e92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x48]
lea rdx, [rbp + 0x10]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp - 0x10]
mov qword [rbp + 0x18], recv
mov qword [rbp + 0x20], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x28], rax
test rcx, rcx
jne 0x18004a112
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x18]
lea r8, [rbp + 0x20]
lea rdx, [rbp + 0x28]
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, esi
lea rdx, [rbp + 0x70]
call qword [0x180061bf8]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x80]
mov qword [rbp + 0x30], recv
mov qword [rbp + 0x38], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x40], rax
test rcx, rcx
jne 0x18004a15e
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [rbp + 0x70]
movabs r12, 0xfffffffff000
test r8, r8
jne 0x18004a188
mov rax, r15
jmp 0x18004a19f
add r8, 0x28
lea rdx, [rbp + 0x48]
mov rcx, rdi
call fcn.180001cc0
mov rax, qword [rbp + 0x48]
and rax, r12
mov qword [0x18005f908], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [r14 + r13]
mov esi, eax
cmp dword [0x18005fb58], ecx
mov rdi, qword [0x18005fa18]
mov dword [rbp - 0x48], eax
mov qword [rsp + 0x30], rdi
jle 0x18004a5bd
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x18004a5bd
xor edx, edx
mov dword [rbp + 0x198], r15d
lea r9, [rbp + 0x198]
xor r8d, r8d
mov r13, r15
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18004a25f
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x198]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x198]
lea r9, [rbp + 0x198]
mov rdx, rax
mov ecx, 0xb
mov r13, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x18004a210
test eax, eax
jns 0x18004a279
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18004a590
cmp dword [r13], 0
mov edi, r15d
mov dword [rbp + 0x190], r15d
jbe 0x18004a57a
nop
mov eax, edi
mov r8, 0xffffffffffffffff
imul rbx, rax, 0x128
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], recv
movzx eax, word [rbx + r13 + 0x2e]
lea rdx, [rbx + 0x30]
add rax, r13
add rdx, rax
inc r8
cmp byte [rdx + r8], 0
jne 0x18004a2c0
lea rcx, [rbp - 0x68]
call fcn.1800028b0
cmp qword [rbp - 0x50], 0x10
lea rcx, [rbp - 0x68]
lea rdx, str.ntoskrnl.exe
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x18004a52d
lea rdx, [r13 + 0x30]
mov qword [rsp + 0x58], r15
add rdx, rbx
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], recv
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18004a320
lea rcx, [rsp + 0x58]
call fcn.1800028b0
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], recv
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18004a360
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1800028b0
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18004a3ab
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp - 0x28], rax
lea rbx, [rbp - 0x38]
lea rax, [rbp - 0x38]
cmovae rax, qword [rbp - 0x38]
mov word [rax + rcx], 0x5c
jmp 0x18004a3c5
mov edx, 1
mov qword [rsp + 0x20], 1
lea rcx, [rbp - 0x38]
call fcn.180002f90
mov rbx, rax
lea rcx, [rsp + 0x58]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x18004a3dd
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x58]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x18004a42d
mov rcx, qword [rbp - 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a428
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a7ce
call fcn.18004dbb4
cmp qword [rsp + 0x70], 0x10
lea rcx, [rsp + 0x58]
mov qword [rbp - 0x28], r15
cmovae rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rbp - 0x20], recv
mov byte [rbp - 0x38], 0
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x18004a736
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18004a736
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18004a736
mov r14d, dword [rcx + rsi + 0x1c]
xor edi, edi
mov ebx, dword [rcx + rsi + 0x20]
mov r12d, dword [rcx + rsi + 0x24]
add rbx, rsi
add r12, rsi
lea r15, [rsi + r14]
test r14d, r14d
je 0x18004a4d4
nop word [rax + rax]
mov edx, dword [rbx]
lea rcx, str.PsLookupProcessByProcessId
add rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x18004a65f
inc edi
add rbx, 4
cmp edi, r14d
jb 0x18004a4b0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18004a511
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a50c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a7ce
call fcn.18004dbb4
mov edi, dword [rbp + 0x190]
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
mov qword [rsp + 0x70], recv
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x18004a568
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a563
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a7ce
call fcn.18004dbb4
inc edi
mov dword [rbp + 0x190], edi
cmp edi, dword [r13]
jb 0x18004a290
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x30]
mov rbx, r15
lea rcx, [0x18005fb58]
mov qword [0x18005fb50], rbx
call fcn.18004dcb4
mov esi, dword [rbp - 0x48]
movabs r12, 0xfffffffff000
mov r14, qword [rbp - 0x40]
mov r13d, 4
mov eax, dword [r14 + r13]
cmp dword [0x18005fb48], eax
mov rbx, qword [0x18005fb50]
mov qword [rbp + 0x78], r15
jle 0x18004a619
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x18004a619
lea rcx, [0x18004f8b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x18005fb48]
mov qword [0x180061bf8], rax
call fcn.18004dcb4
mov rax, qword [0x18005f8d0]
mov dword [rbp], 0x25ff
mov word [rbp + 4], 0
mov qword [rbp + 6], rbx
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x190], recv
mov qword [rbp + 0x48], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x40], rax
test rcx, rcx
jne 0x18004a7d5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
movsxd rax, edi
xor edx, edx
mov r8d, 0x8000
movzx ecx, word [r12 + rax*2]
mov eax, dword [rbp + 0x190]
mov ebx, dword [r15 + rcx*4]
imul rcx, rax, 0x128
add rbx, qword [rcx + r13 + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18004a6cb
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a6c6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a7ce
call fcn.18004dbb4
mov rdx, qword [rbp - 0x50]
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], recv
mov byte [rsp + 0x58], r15b
cmp rdx, 0x10
jb 0x18004a71c
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a717
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a7ce
call fcn.18004dbb4
mov rdi, qword [rsp + 0x30]
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], r15b
jmp 0x18004a593
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18004a76f
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a76a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a7ce
call fcn.18004dbb4
mov rdx, qword [rbp - 0x50]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x70], recv
mov qword [rsp + 0x68], r15
cmp rdx, 0x10
jb 0x18004a7b9
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a7b4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a7ce
call fcn.18004dbb4
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], 0
jmp 0x18004a58b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x190]
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp]
mov qword [rbp + 0x38], recv
mov qword [rbp + 0x30], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x28], rax
test rcx, rcx
jne 0x18004a815
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x28]
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, esi
lea rdx, [rbp + 0x78]
call qword [0x180061bf8]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x20], recv
mov qword [rbp + 0x18], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x10], rax
test rcx, rcx
jne 0x18004a861
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x20]
lea r8, [rbp + 0x18]
lea rdx, [rbp + 0x10]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [rbp + 0x78]
test r8, r8
jne 0x18004a881
mov rax, r15
jmp 0x18004a898
add r8, 0x28
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.180001cc0
mov rax, qword [rbp - 0x40]
and rax, r12
mov rbx, qword [rbp + 0x180]
mov qword [0x18005f908], rax
mov qword [rbp - 0x38], rax
lea r8, [rbp + 0x100]
mov rax, qword [rbp + 0x188]
xorps xmm0, xmm0
mov qword [rbp - 0x30], rax
xorps xmm1, xmm1
mov rax, qword [0x18005fae8]
mov edx, 4
mov qword [rbp - 0x28], rax
movabs rcx, 0xba8ca9e50549f6e4
movaps xmmword [rbp + 0xb0], xmm0
lea rax, [rbp + 0xa0]
movaps xmmword [rbp + 0xd0], xmm0
movups xmm0, xmmword [rbp - 0x38]
mov qword [rbp - 0x20], rax
movaps xmmword [rbp + 0xc0], xmm1
movups xmm1, xmmword [rbp - 0x28]
mov qword [rbp - 0x18], 0x58
movups xmmword [rbp + 0x100], xmm0
movsd xmm0, qword [rbp - 0x18]
movups xmmword [rbp + 0x110], xmm1
movsd qword [rbp + 0x120], xmm0
call fcn.18004dbb0
test eax, eax
je 0x18004a95d
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbx], xmm0
xor eax, eax
movups xmmword [rbx + 0x40], xmm1
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r15
mov qword [rbx + 0x30], r15
mov qword [rbx + 0x38], r15
jmp 0x18004a9a0
movaps xmm0, xmmword [rbp + 0xa0]
movaps xmm1, xmmword [rbp + 0xb0]
movups xmmword [rbx], xmm0
movaps xmm0, xmmword [rbp + 0xc0]
movups xmmword [rbx + 0x10], xmm1
movaps xmm1, xmmword [rbp + 0xd0]
movups xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [rbx + 0x30], xmm1
movsd xmm1, qword [rbp + 0xf0]
movups xmmword [rbx + 0x40], xmm0
movsd qword [rbx + 0x50], xmm1
mov rax, rbx
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret