Function at 0x140039280
Capabilities:
Connect socket

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov rax, qword [rbp + 0x68]
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x20], r9
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x10], rdx
mov qword [rbp + 8], rcx
mov rcx, qword [rbp + 8]
mov qword [rbp - 0x28], rcx
mov edx, dword [0x140223e7c]
add edx, 0x46bd7063
call fcn.140036400
mov rcx, qword [rbp - 0x28]
mov qword [rbp], rax
mov rax, qword [rbp + 0x20]
mov r8, qword [rax]
mov rdx, qword [rbp + 0x10]
call fcn.140035ef0
mov qword [rbp - 8], rax
mov rdx, qword [rbp - 8]
add rdx, 0x78
lea rcx, [rbp - 0x10]
call fcn.1400148e0
mov rcx, qword [rbp - 0x28]
mov r11, qword [rbp + 0x68]
mov r10, qword [rbp + 0x18]
mov r9, qword [rbp + 0x60]
mov r8, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
mov rax, rsp
mov qword [rax + 0x28], r11
mov qword [rax + 0x20], r10
call fcn.1400362f0
jmp 0x140039320
mov eax, dword [0x140223e80]
add eax, 0x400926f8
mov dword [rbp - 0x14], eax
mov eax, dword [0x140223e84]
add eax, 0xaa59dfb5
mov dword [rbp - 0x18], eax
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0xd0]
mov edx, dword [0x140223e88]
add edx, 0xcc69fd07
call fcn.14001ca20
mov dword [rbp - 0x2c], eax
jmp 0x14003935d
mov ecx, dword [rbp - 0x2c]
call fcn.14001d240
xor al, byte [0x140223e8c]
xor al, byte [0x140223e8d]
and al, 1
movzx eax, al
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov ecx, dword [0x140223e90]
add ecx, 0x7275023a
cmp eax, ecx
jne 0x14003939f
mov ecx, dword [0x140223e94]
add ecx, 0x14ab3600
call fcn.140008ae0
jmp 0x14003939f
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x68]
mov ecx, dword [0x140223e98]
add ecx, 0xebcbd9b5
cmp eax, ecx
je 0x140039422
mov rax, qword [rbp - 0x28]
mov r8, qword [rbp - 8]
mov rdx, qword [rax + 0x70]
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0xd0]
mov r9d, dword [0x140223e9c]
add r9d, 0xab22ebd2
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp rax, 0
je 0x140039414
mov rax, qword [rbp - 0x28]
mov r9, qword [rbp]
mov r8, qword [rbp + 0x60]
mov rcx, qword [rbp - 8]
mov rdx, qword [rcx + 0xd0]
mov rcx, qword [rax + 0x50]
call fcn.14001d530
mov dword [rbp - 0x30], eax
jmp 0x14003940c
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x14], eax
jmp 0x14003941d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x14], eax
jmp 0x140039580
mov rcx, qword [rbp + 0x60]
call fcn.14001a640
mov dword [rbp - 0x34], eax
jmp 0x140039430
mov rcx, qword [rbp + 0x60]
call fcn.1400063a0
mov r8d, dword [rbp - 0x34]
mov rdx, rax
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp - 0x14], eax
mov ecx, dword [rbp - 0x14]
call fcn.1400398d0
test al, 1
jne 0x14003947a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140223ea0]
add ecx, 0x7a37fb36
cmp eax, ecx
jne 0x140039575
mov ecx, dword [rbp - 0x14]
call fcn.1400398f0
test al, 1
jne 0x140039488
jmp 0x1400394aa
mov rax, qword [rbp - 0x28]
mov edx, dword [rax + 0x14]
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0xd0]
call fcn.14001dad0
mov dword [rbp - 0x38], eax
jmp 0x1400394a4
mov eax, dword [rbp - 0x38]
mov dword [rbp - 0x14], eax
mov ecx, dword [rbp - 0x14]
call fcn.1400398d0
test al, 1
jne 0x1400394bb
jmp 0x140039573
mov rax, qword [rbp - 0x28]
mov r8, qword [rbp - 8]
mov rdx, qword [rax + 0x70]
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0xd0]
mov r9d, dword [0x140223ea4]
add r9d, 0xf6a541ca
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp rax, 0
je 0x140039568
mov rcx, qword [rbp - 8]
mov edx, dword [0x140223ea8]
add edx, 0xbaa16d68
call fcn.140029250
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 8]
call fcn.1400342c0
mov dword [rbp - 0x3c], eax
jmp 0x140039513
mov eax, dword [rbp - 0x3c]
mov ecx, dword [0x140223eac]
add ecx, 0x6fc41489
cmp eax, ecx
je 0x140039552
mov rcx, qword [rbp - 0x28]
mov r8, qword [rbp]
mov rdx, qword [rbp - 8]
call fcn.140037d90
mov dword [rbp - 0x40], eax
jmp 0x14003953c
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x14], eax
mov eax, dword [0x140223eb0]
add eax, 0x9fdc5737
mov dword [rbp - 0x18], eax
jmp 0x140039566
mov ecx, dword [0x140223eb4]
add ecx, 0x5279869d
call fcn.14001dde0
mov dword [rbp - 0x14], eax
jmp 0x140039571
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x14], eax
jmp 0x140039573
jmp 0x14003957e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x14], eax
jmp 0x140039580
mov eax, dword [rbp - 0x14]
mov ecx, dword [0x140223eb8]
add ecx, 0xe5d18b53
cmp eax, ecx
je 0x14003960f
mov eax, dword [rbp - 0x18]
mov ecx, dword [0x140223ebc]
add ecx, 0x1ac5a449
cmp eax, ecx
je 0x1400395f7
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 8]
mov r8d, dword [0x140223ec0]
add r8d, 0xfcbc6849
mov r9d, dword [0x140223ec4]
add r9d, 0x4001ca78
mov r10d, dword [0x140223ec8]
add r10d, 0x5725b0b8
mov rax, rsp
mov dword [rax + 0x20], r10d
call fcn.1400360e0
jmp 0x1400395e6
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp]
call fcn.140036460
jmp 0x1400395f5
jmp 0x1400395f7
mov rax, qword [rbp + 0x20]
movabs rcx, 0x79a8c3bd6ff75b6a
add rcx, qword [0x140223ed0]
mov qword [rax], rcx
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x44], eax
lea rcx, [rbp - 0x10]
call fcn.140014990
mov eax, dword [rbp - 0x44]
add rsp, 0xb0
pop rbp
ret