Function at 0x18004a9c0
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 - 0xe8]
sub rsp, 0x1e8
mov rax, qword [0x18005f908]
xor r15d, r15d
mov rbx, rcx
test rax, rax
jne 0x18004b816
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 0x18004ae2a
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x18004ae2a
xor edx, edx
mov dword [rbp + 0x140], r15d
lea r9, [rbp + 0x140]
xor r8d, r8d
mov r13d, r15d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18004aad2
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x140]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x140]
lea r9, [rbp + 0x140]
mov rdx, rax
mov ecx, 0xb
mov r13, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x18004aa83
test eax, eax
jns 0x18004aaec
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18004ae07
mov edi, r15d
mov dword [rbp + 0x148], r15d
cmp dword [r13], r15d
jbe 0x18004adf1
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 0x18004ab31
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 0x18004ada3
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 0x18004ab90
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 0x18004abd0
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 0x18004ac1b
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 0x18004ac35
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 0x18004ac4d
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 0x18004ac9d
mov rcx, qword [rbp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ac98
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b03d
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 0x18004afa3
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18004afa3
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18004afa3
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 0x18004ad44
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 0x18004aeca
inc edi
add rbx, 4
cmp edi, r14d
jb 0x18004ad20
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18004ad81
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ad7c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b03d
call fcn.18004dbb4
mov edi, dword [rbp + 0x148]
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 0x18004addf
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004adda
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b03d
call fcn.18004dbb4
inc edi
mov dword [rbp + 0x148], edi
cmp edi, dword [r13]
jb 0x18004ab00
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 0x18004ae86
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x18004ae86
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 + 0x98]
mov qword [rsp + 0x30], recv
mov qword [rbp - 0x48], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x10], rax
test rcx, rcx
jne 0x18004b044
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 + 0x148]
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 0x18004af36
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004af31
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b03d
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 0x18004af88
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004af83
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b03d
call fcn.18004dbb4
mov rdi, qword [rsp + 0x30]
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], recv
mov byte [rsp + 0x78], r15b
jmp 0x18004ae0a
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18004afdc
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004afd7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b03d
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 0x18004b027
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b022
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b03d
call fcn.18004dbb4
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], recv
mov byte [rsp + 0x78], 0
jmp 0x18004ae02
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 0x18004b082
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 + 0x98]
mov qword [rbp + 0x30], recv
mov qword [rbp + 0x38], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x40], rax
test rcx, rcx
jne 0x18004b0ce
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 0x18004b0f8
mov rax, r15
jmp 0x18004b10f
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 0x18004b52d
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x18004b52d
xor edx, edx
mov dword [rbp + 0x148], r15d
lea r9, [rbp + 0x148]
xor r8d, r8d
mov r13, r15
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18004b1cf
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x148]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x148]
lea r9, [rbp + 0x148]
mov rdx, rax
mov ecx, 0xb
mov r13, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x18004b180
test eax, eax
jns 0x18004b1e9
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18004b500
cmp dword [r13], 0
mov edi, r15d
mov dword [rbp + 0x140], r15d
jbe 0x18004b4ea
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 0x18004b230
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 0x18004b49d
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 0x18004b290
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 0x18004b2d0
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 0x18004b31b
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 0x18004b335
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 0x18004b34d
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 0x18004b39d
mov rcx, qword [rbp - 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b398
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b73e
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 0x18004b6a6
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18004b6a6
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18004b6a6
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 0x18004b444
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 0x18004b5cf
inc edi
add rbx, 4
cmp edi, r14d
jb 0x18004b420
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18004b481
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b47c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b73e
call fcn.18004dbb4
mov edi, dword [rbp + 0x140]
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 0x18004b4d8
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b4d3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b73e
call fcn.18004dbb4
inc edi
mov dword [rbp + 0x140], edi
cmp edi, dword [r13]
jb 0x18004b200
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 0x18004b589
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x18004b589
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 + 0xa8]
mov qword [rbp + 0x140], recv
mov qword [rbp + 0x48], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x40], rax
test rcx, rcx
jne 0x18004b745
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 + 0x140]
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 0x18004b63b
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b636
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b73e
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 0x18004b68c
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b687
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b73e
call fcn.18004dbb4
mov rdi, qword [rsp + 0x30]
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], r15b
jmp 0x18004b503
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18004b6df
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b6da
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b73e
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 0x18004b729
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b724
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b73e
call fcn.18004dbb4
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], 0
jmp 0x18004b4fb
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 + 0x140]
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 0x18004b785
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 + 0xa8]
mov qword [rbp + 0x20], recv
mov qword [rbp + 0x18], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x10], rax
test rcx, rcx
jne 0x18004b7d1
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 0x18004b7f1
mov rax, r15
jmp 0x18004b808
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 + 0x130]
mov qword [0x18005f908], rax
mov qword [rbp - 0x38], rax
lea r8, [rbp + 0xb8]
mov rax, qword [rbp + 0x138]
xorps xmm0, xmm0
mov qword [rbp - 0x30], rax
mov edx, 4
mov rax, qword [0x18005fae8]
movabs rcx, 0xba8ca9e50549f6e4
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x80]
movsd qword [rbp + 0x90], xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x38]
mov qword [rbp - 0x18], 0x18
movups xmm1, xmmword [rbp - 0x28]
movups xmmword [rbp + 0xb8], xmm0
movsd xmm0, qword [rbp - 0x18]
movups xmmword [rbp + 0xc8], xmm1
movsd qword [rbp + 0xd8], xmm0
call fcn.18004dbb0
test eax, eax
je 0x18004b8a4
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
jmp 0x18004b8bb
movups xmm0, xmmword [rbp + 0x80]
movsd xmm1, qword [rbp + 0x90]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rax, rbx
add rsp, 0x1e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret