Function at 0x140031a70
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400c5080]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15d, r8d
mov r14, rdx
mov r12, rcx
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x1400c7038], eax
jle 0x140031aed
lea rcx, [0x1400c7038]
call fcn.1400978e0
cmp dword [0x1400c7038], 0xffffffff
jne 0x140031aed
call fcn.14002f6b0
mov qword [0x1400c7020], rax
lea rcx, [0x1400c7038]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c704c], eax
jle 0x140031b24
lea rcx, [0x1400c704c]
call fcn.1400978e0
cmp dword [0x1400c704c], 0xffffffff
jne 0x140031b24
call fcn.14002fc20
mov qword [0x1400c7010], rax
lea rcx, [0x1400c704c]
call fcn.140097880
cmp qword [0x1400c7020], 0
je 0x14003256a
cmp qword [0x1400c7010], 0
je 0x14003256a
mov eax, dword [rsi]
cmp dword [0x1400c6d20], eax
jle 0x140031b7e
lea rcx, [0x1400c6d20]
call fcn.1400978e0
cmp dword [0x1400c6d20], 0xffffffff
jne 0x140031b7e
lea rdx, str.ExAcquireResourceExclusiveLite
call fcn.14002f210
mov qword [0x1400c6f18], rax
lea rcx, [0x1400c6d20]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c6d24], eax
jle 0x140031bbc
lea rcx, [0x1400c6d24]
call fcn.1400978e0
cmp dword [0x1400c6d24], 0xffffffff
jne 0x140031bbc
lea rdx, str.RtlLookupElementGenericTableAvl
call fcn.14002f210
mov qword [0x1400c6ea0], rax
lea rcx, [0x1400c6d24]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c6d34], eax
jle 0x140031bfa
lea rcx, [0x1400c6d34]
call fcn.1400978e0
cmp dword [0x1400c6d34], 0xffffffff
jne 0x140031bfa
lea rdx, str.ExReleaseResourceLite
call fcn.14002f210
mov qword [0x1400c6ff0], rax
lea rcx, [0x1400c6d34]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c6fe8], eax
jle 0x140031c38
lea rcx, [0x1400c6fe8]
call fcn.1400978e0
cmp dword [0x1400c6fe8], 0xffffffff
jne 0x140031c38
lea rdx, str.RtlDeleteElementGenericTableAvl
call fcn.14002f210
mov qword [0x1400c6d40], rax
lea rcx, [0x1400c6fe8]
call fcn.140097880
cmp qword [0x1400c6f18], 0
je 0x14003256a
cmp qword [0x1400c6ea0], 0
je 0x14003256a
cmp qword [0x1400c6ff0], 0
je 0x14003256a
mov rbx, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x140031c75
mov rdi, qword [r14]
add rbx, rdi
jmp 0x140031c7b
add rbx, r14
mov rdi, r14
xor r14d, r14d
mov qword [rbp + 0x18], r14
mov ecx, r14d
mov qword [rbp + 0x28], rcx
mov r8d, 7
mov qword [rbp + 0x30], r8
mov word [rbp + 0x18], r14w
mov rdx, rbx
sub rdx, rdi
cmp rdx, r8
jbe 0x140031cb7
lea rcx, [rbp + 0x18]
call fcn.140032840
mov ecx, r14d
mov qword [rbp + 0x28], rcx
mov r8, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x30], rax
cmp rdi, rbx
je 0x140031d0b
movsx r9d, byte [rdi]
cmp rcx, r8
jae 0x140031cf0
lea rax, [rcx + 1]
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x18]
cmp r8, 8
cmovae rax, qword [rbp + 0x18]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r14w
jmp 0x140031cf9
lea rcx, [rbp + 0x18]
call fcn.1400329b0
inc rdi
mov r8, qword [rbp + 0x30]
cmp rdi, rbx
je 0x140031d0b
mov rcx, qword [rbp + 0x28]
jmp 0x140031cc5
mov dword [rbp + 0x58], r15d
lea rdx, [rbp + 0x18]
cmp r8, 8
cmovae rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rbx, qword [0x1400c7020]
mov rdi, qword [0x1400c6f18]
mov eax, dword [rsi]
cmp dword [0x1400c6e60], eax
jle 0x140031d83
lea rcx, [0x1400c6e60]
call fcn.1400978e0
cmp dword [0x1400c6e60], 0xffffffff
jne 0x140031d83
lea rcx, [0x1400aaa18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6e78], rax
lea rcx, [0x1400c6e60]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c6df8], eax
jle 0x140031dcc
lea rcx, [0x1400c6df8]
call fcn.1400978e0
cmp dword [0x1400c6df8], 0xffffffff
jne 0x140031dcc
mov edx, 2
lea rcx, [0x1400c6e00]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14009a9d0]
call fcn.140097c64
lea rcx, [0x1400c6df8]
call fcn.140097880
lea rcx, [0x1400c6e00]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140031de6
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x30], 0x25ff
mov word [rsp + 0x34], 0
mov qword [rsp + 0x36], rdi
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x80]
call fcn.1400212f0
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x30]
call fcn.140021490
mov rax, qword [0x1400c6e78]
mov dl, 1
mov rcx, rbx
call rax
movzx ebx, al
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x80]
call fcn.140021490
lea rcx, [0x1400c6e00]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test bl, bl
je 0x140032520
mov rbx, qword [0x1400c7010]
mov rdi, qword [0x1400c6ea0]
mov eax, dword [rsi]
cmp dword [0x1400c6f10], eax
jle 0x140031ec0
lea rcx, [0x1400c6f10]
call fcn.1400978e0
cmp dword [0x1400c6f10], 0xffffffff
jne 0x140031ec0
lea rcx, [0x1400aaa18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6e80], rax
lea rcx, [0x1400c6f10]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c6d48], eax
jle 0x140031f09
lea rcx, [0x1400c6d48]
call fcn.1400978e0
cmp dword [0x1400c6d48], 0xffffffff
jne 0x140031f09
mov edx, 2
lea rcx, [0x1400c6f80]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14009a9c0]
call fcn.140097c64
lea rcx, [0x1400c6d48]
call fcn.140097880
lea rcx, [0x1400c6f80]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140031f23
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x40], 0x25ff
mov word [rsp + 0x44], 0
mov qword [rsp + 0x46], rdi
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x70]
call fcn.1400212f0
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x40]
call fcn.140021490
mov rax, qword [0x1400c6e80]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x70]
call fcn.140021490
lea rcx, [0x1400c6f80]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
je 0x1400323f1
mov r9d, gethostname
mov r8, rbx
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.140030a00
test al, al
jne 0x140031fd1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov r9d, reloc.WS2_32.dll_recv
mov r8, qword [rbp - 0x20]
lea rdx, [rbp - 0x30]
mov rcx, r12
call fcn.140030a00
test al, al
jne 0x140031ff2
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov r9d, reloc.WS2_32.dll_recv
mov r8, qword [rbp - 0x18]
lea rdx, [rbp - 0x40]
mov rcx, r12
call fcn.140030a00
mov rdx, qword [rbp - 0x38]
test al, al
cmove rdx, r14
mov qword [rbp - 0x38], rdx
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x28], rdx
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x40]
mov rcx, r12
call fcn.140031120
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x30]
mov rdx, qword [rbp - 0x20]
mov rcx, r12
call fcn.140031120
mov rdi, qword [0x1400c7010]
mov r14, qword [0x1400c6d40]
mov eax, dword [rsi]
cmp dword [0x1400c6de0], eax
jle 0x1400320ab
lea rcx, [0x1400c6de0]
call fcn.1400978e0
cmp dword [0x1400c6de0], 0xffffffff
jne 0x1400320ab
lea rcx, [0x1400aaa18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6eb0], rax
lea rcx, [0x1400c6de0]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c703c], eax
jle 0x1400320f4
lea rcx, [0x1400c703c]
call fcn.1400978e0
cmp dword [0x1400c703c], 0xffffffff
jne 0x1400320f4
mov edx, 2
lea rcx, [0x1400c6f20]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14009a9b0]
call fcn.140097c64
lea rcx, [0x1400c703c]
call fcn.140097880
lea rcx, [0x1400c6f20]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003210e
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x50], 0x25ff
mov word [rsp + 0x54], 0
mov qword [rsp + 0x56], r14
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x60]
call fcn.1400212f0
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x50]
call fcn.140021490
mov rdx, rbx
mov rcx, rdi
call qword [0x1400c6eb0]
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x60]
call fcn.140021490
lea rcx, [0x1400c6f20]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [0x1400c7010]
mov rdi, qword [0x1400c6ea0]
mov eax, dword [rsi]
cmp dword [0x1400c6f10], eax
jle 0x1400321db
lea rcx, [0x1400c6f10]
call fcn.1400978e0
cmp dword [0x1400c6f10], 0xffffffff
jne 0x1400321db
lea rcx, [0x1400aaa18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6e80], rax
lea rcx, [0x1400c6f10]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c6d48], eax
jle 0x140032224
lea rcx, [0x1400c6d48]
call fcn.1400978e0
cmp dword [0x1400c6d48], 0xffffffff
jne 0x140032224
mov edx, 2
lea rcx, [0x1400c6f80]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14009a9c0]
call fcn.140097c64
lea rcx, [0x1400c6d48]
call fcn.140097880
lea rcx, [0x1400c6f80]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003223e
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x60], 0x25ff
mov word [rsp + 0x64], 0
mov qword [rsp + 0x66], rdi
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x50]
call fcn.1400212f0
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x60]
call fcn.140021490
mov rax, qword [0x1400c6e80]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x50]
call fcn.140021490
lea rcx, [0x1400c6f80]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rdi, qword [0x1400c7020]
mov r14, qword [0x1400c6ff0]
mov r8d, dword [rsi]
cmp dword [0x1400c6e58], r8d
jle 0x140032314
lea rcx, [0x1400c6e58]
call fcn.1400978e0
cmp dword [0x1400c6e58], 0xffffffff
jne 0x140032314
lea rcx, [0x1400aaa18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6e68], rax
lea rcx, [0x1400c6e58]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c6e98], eax
jle 0x14003235d
lea rcx, [0x1400c6e98]
call fcn.1400978e0
cmp dword [0x1400c6e98], 0xffffffff
jne 0x14003235d
mov edx, 2
lea rcx, [0x1400c6ec0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14009a9a0]
call fcn.140097c64
lea rcx, [0x1400c6e98]
call fcn.140097880
lea rcx, [0x1400c6ec0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140032377
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x20], 0x25ff
mov word [rsp + 0x24], 0
mov qword [rsp + 0x26], r14
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x70]
call fcn.1400212f0
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x20]
call fcn.140021490
mov rcx, rdi
call qword [0x1400c6e68]
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x70]
call fcn.140021490
lea rcx, [0x1400c6ec0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
sete bl
jmp 0x140032522
mov rbx, qword [0x1400c7020]
mov rdi, qword [0x1400c6ff0]
mov eax, dword [rsi]
cmp dword [0x1400c6e58], eax
jle 0x14003244e
lea rcx, [0x1400c6e58]
call fcn.1400978e0
cmp dword [0x1400c6e58], 0xffffffff
jne 0x14003244e
lea rcx, [0x1400aaa18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6e68], rax
lea rcx, [0x1400c6e58]
call fcn.140097880
mov eax, dword [rsi]
cmp dword [0x1400c6e98], eax
jle 0x140032497
lea rcx, [0x1400c6e98]
call fcn.1400978e0
cmp dword [0x1400c6e98], 0xffffffff
jne 0x140032497
mov edx, 2
lea rcx, [0x1400c6ec0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14009a9a0]
call fcn.140097c64
lea rcx, [0x1400c6e98]
call fcn.140097880
lea rcx, [0x1400c6ec0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400324b1
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x20], 0x25ff
mov word [rsp + 0x24], 0
mov qword [rsp + 0x26], rdi
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x70]
call fcn.1400212f0
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x20]
call fcn.140021490
mov rcx, rbx
call qword [0x1400c6e68]
mov rcx, qword [0x1400c6268]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x70]
call fcn.140021490
lea rcx, [0x1400c6ec0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
xor bl, bl
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x140032565
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032560
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140032560
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140097750
movzx eax, bl
jmp 0x14003256c
xor al, al
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140097730
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret