Function at 0x180047c10
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 - 0x128]
sub rsp, 0x228
mov rax, qword [0x18005f908]
xor r15d, r15d
mov rbx, rcx
test rax, rax
jne 0x180048a66
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 0x18004807a
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x18004807a
xor edx, edx
mov dword [rbp + 0x180], r15d
lea r9, [rbp + 0x180]
xor r8d, r8d
mov r13d, r15d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180047d22
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x180]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x180]
lea r9, [rbp + 0x180]
mov rdx, rax
mov ecx, 0xb
mov r13, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180047cd3
test eax, eax
jns 0x180047d3c
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180048057
mov edi, r15d
mov dword [rbp + 0x188], r15d
cmp dword [r13], r15d
jbe 0x180048041
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 0x180047d81
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 0x180047ff3
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 0x180047de0
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 0x180047e20
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 0x180047e6b
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 0x180047e85
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 0x180047e9d
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 0x180047eed
mov rcx, qword [rbp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047ee8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004828d
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 0x1800481f3
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x1800481f3
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x1800481f3
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 0x180047f94
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 0x18004811a
inc edi
add rbx, 4
cmp edi, r14d
jb 0x180047f70
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x180047fd1
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047fcc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004828d
call fcn.18004dbb4
mov edi, dword [rbp + 0x188]
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 0x18004802f
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004802a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004828d
call fcn.18004dbb4
inc edi
mov dword [rbp + 0x188], edi
cmp edi, dword [r13]
jb 0x180047d50
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 0x1800480d6
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x1800480d6
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 0x180048294
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 + 0x188]
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 0x180048186
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048181
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004828d
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 0x1800481d8
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800481d3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004828d
call fcn.18004dbb4
mov rdi, qword [rsp + 0x30]
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], recv
mov byte [rsp + 0x78], r15b
jmp 0x18004805a
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18004822c
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048227
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004828d
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 0x180048277
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048272
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004828d
call fcn.18004dbb4
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], recv
mov byte [rsp + 0x78], 0
jmp 0x180048052
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 0x1800482d2
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 0x18004831e
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 0x180048348
mov rax, r15
jmp 0x18004835f
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 0x18004877d
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x18004877d
xor edx, edx
mov dword [rbp + 0x188], r15d
lea r9, [rbp + 0x188]
xor r8d, r8d
mov r13, r15
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18004841f
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x188]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x188]
lea r9, [rbp + 0x188]
mov rdx, rax
mov ecx, 0xb
mov r13, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1800483d0
test eax, eax
jns 0x180048439
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180048750
cmp dword [r13], 0
mov edi, r15d
mov dword [rbp + 0x180], r15d
jbe 0x18004873a
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 0x180048480
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 0x1800486ed
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 0x1800484e0
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 0x180048520
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 0x18004856b
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 0x180048585
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 0x18004859d
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 0x1800485ed
mov rcx, qword [rbp - 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800485e8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004898e
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 0x1800488f6
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x1800488f6
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x1800488f6
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 0x180048694
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 0x18004881f
inc edi
add rbx, 4
cmp edi, r14d
jb 0x180048670
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1800486d1
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800486cc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004898e
call fcn.18004dbb4
mov edi, dword [rbp + 0x180]
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 0x180048728
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048723
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004898e
call fcn.18004dbb4
inc edi
mov dword [rbp + 0x180], edi
cmp edi, dword [r13]
jb 0x180048450
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 0x1800487d9
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x1800487d9
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 + 0x180], recv
mov qword [rbp + 0x48], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x40], rax
test rcx, rcx
jne 0x180048995
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 + 0x180]
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 0x18004888b
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048886
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004898e
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 0x1800488dc
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800488d7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004898e
call fcn.18004dbb4
mov rdi, qword [rsp + 0x30]
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], r15b
jmp 0x180048753
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18004892f
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004892a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004898e
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 0x180048979
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048974
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004898e
call fcn.18004dbb4
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], 0
jmp 0x18004874b
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 + 0x180]
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 0x1800489d5
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 0x180048a21
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 0x180048a41
mov rax, r15
jmp 0x180048a58
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 + 0x170]
mov qword [0x18005f908], rax
mov qword [rbp - 0x38], rax
lea r8, [rbp + 0xf0]
mov rax, qword [rbp + 0x178]
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
movsd qword [rbp + 0xc0], xmm1
movsd qword [rbp + 0xe0], xmm1
movups xmm1, xmmword [rbp - 0x28]
mov qword [rbp - 0x18], 0x50
movups xmmword [rbp + 0xf0], xmm0
movsd xmm0, qword [rbp - 0x18]
movups xmmword [rbp + 0x100], xmm1
movsd qword [rbp + 0x110], xmm0
call fcn.18004dbb0
test eax, eax
je 0x180048b21
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov dword [rbx + 0x28], eax
mov qword [rbx + 0x30], r15
mov qword [rbx + 0x38], r15
mov qword [rbx + 0x40], r15
mov dword [rbx + 0x48], eax
jmp 0x180048b57
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
movups xmmword [rbx + 0x40], xmm0
mov rax, rbx
add rsp, 0x228
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret