Function at 0x140031e90
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push rbp
push rdi
sub rsp, 0x378
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
lea rdi, [rsp + 0x30]
mov ecx, 0xd2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a5100]
xor rax, rsp
mov qword [rbp + 0x318], rax
mov dword [rbp], 0
mov eax, dword [rbp]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 1
je 0x140031ee0
call fcn.1400316a0
nop
lea rdx, [rbp + 0x20]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140031fdd
lea rax, [rbp + 0x2b8]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x2b9]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x2b8]
movzx r8d, byte [rbp + 0x2b9]
movzx edx, byte [rbp + 0x2ba]
lea rcx, [rbp + 0x200]
call fcn.14003b2b0
mov rcx, rax
call fcn.140037280
mov qword [rbp + 0x2d8], rax
lea rax, [rbp + 0x2bb]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x2bc]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x2bb]
movzx r8d, byte [rbp + 0x2bc]
movzx edx, byte [rbp + 0x2bd]
lea rcx, [rbp + 0x1e0]
call fcn.140042cb0
mov rcx, rax
call fcn.140035a60
mov qword [rbp + 0x2e0], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rbp + 0x2e8], rax
xor r9d, r9d
mov r8, qword [rbp + 0x2d8]
mov rdx, qword [rbp + 0x2e0]
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
mov ecx, 1
call fcn.140062794
nop
mov eax, dword [rbp]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 2
je 0x140031ff1
call fcn.1400316a0
nop
lea rcx, [rbp + 0x240]
call fcn.140018130
mov qword [rbp + 0x2f0], rax
mov rax, qword [rbp + 0x2f0]
mov qword [rbp + 0x2f8], rax
mov rax, qword [rbp + 0x2f8]
mov qword [rbp + 0x300], rax
lea rax, [rbp + 0x2be]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x2bf]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x2be]
movzx r8d, byte [rbp + 0x2bf]
movzx edx, byte [rbp + 0x2c0]
lea rcx, [rbp + 0x220]
call fcn.140042d70
mov rcx, rax
call fcn.140035a60
mov rdx, rax
lea rcx, [rbp + 0x260]
call fcn.140017fd0
nop
mov rdx, qword [rbp + 0x300]
lea rcx, [rbp + 0x260]
call fcn.140016a60
mov qword [0x1400a8378], rax
lea rcx, [rbp + 0x260]
call fcn.140017eb0
nop
lea rcx, [rbp + 0x240]
call fcn.140017eb0
nop
mov eax, dword [rbp]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 3
je 0x1400320c9
call fcn.1400316a0
nop
lea rax, [rbp + 0x280]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140031d40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x288], rax
mov eax, dword [rbp]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 4
je 0x14003210c
call fcn.1400316a0
nop
mov dword [rbp + 0x290], 0
cmp qword [0x1400a8378], 0
je 0x14003213d
mov rax, qword [0x1400a8378]
mov rax, qword [rax]
mov rcx, qword [0x1400a8378]
call qword [rax + 0x38]
cmp eax, 3
je 0x140032216
mov dword [rbp + 0x2d0], 0x64
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0x2c8]
call fcn.14002bfa0
mov rcx, rax
call fcn.14002bfb0
nop
mov eax, dword [rbp + 0x290]
add eax, 0x64
mov dword [rbp + 0x290], eax
cmp dword [rbp + 0x290], 0x3e8
jle 0x140032211
lea rax, [rbp + 0x2d4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x2d5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x2d4]
movzx r8d, byte [rbp + 0x2d5]
movzx edx, byte [rbp + 0x2d6]
lea rcx, [rbp + 0x2a0]
call fcn.14003b2b0
mov rcx, rax
call fcn.140037280
mov qword [rbp + 0x308], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rbp + 0x310], rax
xor r9d, r9d
mov r8, qword [rbp + 0x308]
lea rdx, str.Failed_to_connect_to_server_
mov rcx, qword [rbp + 0x310]
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
mov ecx, 1
call fcn.140062794
nop
jmp 0x140032116
mov rax, qword [0x1400a8378]
mov rax, qword [rax]
mov rcx, qword [0x1400a8378]
call qword [rax + 0x38]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140099360]
call fcn.140079b68
mov rax, rdi
mov rcx, qword [rbp + 0x318]
xor rcx, rsp
call fcn.140052020
add rsp, 0x378
pop rdi
pop rbp
ret