Function at 0x18007fd80
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [rsp + 0x180]
add rax, 0x138
mov qword [rsp + 0x38], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call fcn.180090ad0
mov rax, qword [rsp + 0x180]
add rax, 0xd8
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x180]
add rcx, 0x118
mov qword [rsp + 0x48], rcx
mov rdx, qword [rsp + 0x180]
add rdx, 0xf8
mov qword [rsp + 0x50], rdx
mov r8, qword [rsp + 0x180]
add r8, 0xb8
mov qword [rsp + 0x58], r8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
mov r9, rcx
mov rcx, qword [rsp + 0x50]
mov r8, rcx
mov rcx, qword [rsp + 0x58]
mov rdx, rcx
mov ecx, eax
call fcn.1800af770
lea rax, [rsp + 0x108]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x180]
add rax, 0xb8
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call fcn.1800827e0
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xa8]
call fcn.1800ae380
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x180]
add rax, 0xb8
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.180082550
lea rcx, [rsp + 0xa8]
call fcn.180082510
lea rax, [rsp + 0x128]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x180]
add rax, 0xf8
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1800827e0
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xc8]
call fcn.1800ae380
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x180]
add rax, 0xf8
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.180082550
lea rcx, [rsp + 0xc8]
call fcn.180082510
lea rax, [rsp + 0x148]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x180]
add rax, 0x118
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.1800827e0
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0xe8]
call fcn.1800ae380
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x180]
add rax, 0x118
mov rdx, qword [rsp + 0xa0]
mov rcx, rax
call fcn.180082550
lea rcx, [rsp + 0xe8]
call fcn.180082510
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [rsp + 0x180]
mov dword [rcx + 0x80], eax
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x40], 0
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x30], 0
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x38], 0
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x20], 0
mov rcx, qword [rsp + 0x180]
call fcn.18007e770
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
je 0x180080037
cmp dword [rsp + 0x30], 2
je 0x180080075
cmp dword [rsp + 0x30], 3
je 0x18008011d
jmp 0x1800801c0
mov rax, qword [rsp + 0x180]
add rax, 0x88
mov dword [rsp + 0x20], 0xfffffffe
mov r9, qword [rsp + 0x180]
lea r8, [0x18007ece0]
mov rcx, qword [rsp + 0x180]
mov rdx, qword [rcx + 0x30]
mov rcx, rax
call fcn.180077b90
jmp 0x1800801c0
mov rcx, qword [rsp + 0x180]
call fcn.18007d8e0
test eax, eax
je 0x180080118
mov rax, qword [rsp + 0x180]
add rax, 0x20
mov rcx, qword [rsp + 0x180]
add rcx, 0x88
mov dword [rsp + 0x28], 0xfffffffe
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18007b450]
mov rax, qword [rsp + 0x180]
mov rdx, qword [rax + 0x20]
call fcn.180077c60
mov rax, qword [rsp + 0x180]
add rax, 0x18
mov rcx, qword [rsp + 0x180]
add rcx, 0x88
mov dword [rsp + 0x28], 0xfffffffe
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18007b320]
mov rax, qword [rsp + 0x180]
mov rdx, qword [rax + 0x18]
call fcn.180077c60
jmp 0x1800801c0
mov rcx, qword [rsp + 0x180]
call fcn.18007e080
test eax, eax
je 0x1800801c0
mov rax, qword [rsp + 0x180]
add rax, 0x20
mov rcx, qword [rsp + 0x180]
add rcx, 0x88
mov dword [rsp + 0x28], 0xfffffffe
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18007b450]
mov rax, qword [rsp + 0x180]
mov rdx, qword [rax + 0x20]
call fcn.180077c60
mov rax, qword [rsp + 0x180]
add rax, 0x18
mov rcx, qword [rsp + 0x180]
add rcx, 0x88
mov dword [rsp + 0x28], 0xfffffffe
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18007b320]
mov rax, qword [rsp + 0x180]
mov rdx, qword [rax + 0x18]
call fcn.180077c60
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x48], 0
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x50], 0
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x58], 0
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x60], 0
mov rax, qword [rsp + 0x180]
mov qword [rax + 0x68], 0
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180080370
mov rax, qword [rsp + 0x180]
add rax, 0x48
mov rcx, qword [rsp + 0x180]
add rcx, 0x88
mov dword [rsp + 0x28], 0xfffffffe
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18007ac50]
mov rdx, qword [sym.imp.WS2_32.dll_WSASend]
call fcn.180077c60
mov rax, qword [rsp + 0x180]
add rax, 0x50
mov rcx, qword [rsp + 0x180]
add rcx, 0x88
mov dword [rsp + 0x28], 0xfffffffe
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18007ae20]
mov rdx, qword [sym.imp.WS2_32.dll_WSARecv]
call fcn.180077c60
mov rax, qword [rsp + 0x180]
add rax, 0x58
mov rcx, qword [rsp + 0x180]
add rcx, 0x88
mov dword [rsp + 0x28], 0xfffffffe
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18007afb0]
mov rdx, qword [sym.imp.WS2_32.dll_send]
call fcn.180077c60
mov rax, qword [rsp + 0x180]
add rax, 0x60
mov rcx, qword [rsp + 0x180]
add rcx, 0x88
mov dword [rsp + 0x28], 0xfffffffe
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18007b0e0]
mov rdx, qword [sym.imp.WS2_32.dll_recv]
call fcn.180077c60
mov rax, qword [rsp + 0x180]
add rax, 0x68
mov rcx, qword [rsp + 0x180]
add rcx, 0x88
mov dword [rsp + 0x28], 0xfffffffe
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18007b210]
mov rdx, qword [sym.imp.WS2_32.dll_closesocket]
call fcn.180077c60
mov rdx, qword [rsp + 0x188]
lea rcx, [0x18051c208]
call fcn.180080cf0
mov eax, 1
add rsp, 0x178
ret