Function at 0x14012a730
Capabilities:
Connect socket
Set socket configuration
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x40]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x44], 1
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0xffffffffffffffff
je 0x14012a7fc
mov r8d, 0x380
lea rdx, [0x1405561a0]
lea rcx, [0x1405561e8]
call fcn.140015e70
nop
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x68]
mov dword [rsp + 0x20], eax
mov r9d, 0xfd
mov r8d, 0x380
lea rdx, [0x140556200]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x380
lea rdx, [0x140556250]
lea rcx, str.CRITICALEXIT2__FILE:__s__LINE:__d_r_n
call fcn.140015e70
mov ecx, 0xfd
call fcn.14038e600
nop
mov rax, qword [rsp + 0x60]
add rax, 0x78
mov r8d, 0x1c
xor edx, edx
mov rcx, rax
call fcn.140410c60
mov rax, qword [rsp + 0x60]
add rax, 0x94
mov r8d, 0x1c
xor edx, edx
mov rcx, rax
call fcn.140410c60
mov rax, qword [rsp + 0x60]
add rax, 0xb0
mov r8d, 0x1c
xor edx, edx
mov rcx, rax
call fcn.140410c60
cmp qword [rsp + 0x100], 0
je 0x14012a8c7
mov rax, qword [rsp + 0x100]
movzx eax, word [rax]
cmp eax, 1
jne 0x14012a876
mov eax, 1
mov rcx, qword [rsp + 0x60]
mov word [rcx + 0x78], ax
jmp 0x14012a8c7
mov rax, qword [rsp + 0x100]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14012a894
mov qword [rsp + 0xb0], 0x1c
jmp 0x14012a8a0
mov qword [rsp + 0xb0], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x60]
add rax, 0x78
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x100]
mov edx, 0x1c
mov rcx, rax
call fcn.140129e90
nop
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x70], 0
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x74], 0
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x254], 0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x110]
mov qword [rax + 0x240], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x108]
mov qword [rax + 0x220], rcx
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x274]
mov dword [rsp + 0x20], 0x39f
lea r9, [0x1405562c0]
mov r8d, 1
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x268]
call fcn.1403bab60
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14012a9a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x39f
lea rdx, [0x140556310]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x39f
lea rdx, [0x140556360]
lea rcx, [0x1405563a8]
call fcn.140015e70
mov ecx, 0xfe
call fcn.14038e600
nop
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x268], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x274]
mov dword [rax + 0x270], ecx
cmp qword [rsp + 0xf8], 0
jne 0x14012aa32
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14012aa32
mov r8d, 0x1c
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140410c60
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0xcc]
test eax, eax
jne 0x14012aa14
mov rax, qword [rsp + 0x100]
movzx eax, word [rax]
mov word [rsp + 0x78], ax
jmp 0x14012aa25
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0xcc]
mov word [rsp + 0x78], ax
lea rax, [rsp + 0x78]
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
je 0x14012ab45
mov rax, qword [rsp + 0xf8]
movzx eax, word [rax]
cmp eax, 2
jne 0x14012aac3
mov rax, qword [rsp + 0xf8]
movzx eax, word [rax + 2]
test eax, eax
je 0x14012aac3
mov r8d, 0x3ba
lea rdx, [0x1405563d0]
lea rcx, [0x140556418]
call fcn.140015e70
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfd
mov r8d, 0x3ba
lea rdx, [0x140556430]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x3ba
lea rdx, [0x140556480]
lea rcx, [0x1405564c8]
call fcn.140015e70
mov ecx, 0xfd
call fcn.14038e600
nop
mov rax, qword [rsp + 0xf8]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14012ab45
mov rax, qword [rsp + 0xf8]
movzx eax, word [rax + 2]
test eax, eax
je 0x14012ab45
mov r8d, 0x3bb
lea rdx, [0x1405564f0]
lea rcx, [0x140556538]
call fcn.140015e70
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfd
mov r8d, 0x3bb
lea rdx, [0x140556550]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x3bb
lea rdx, [0x1405565a0]
lea rcx, [0x1405565e8]
call fcn.140015e70
mov ecx, 0xfd
call fcn.14038e600
nop
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14012ac12
mov rax, qword [rsp + 0xf8]
movzx eax, word [rax]
test eax, eax
je 0x14012aba2
mov r8d, 6
mov edx, 1
mov rcx, qword [rsp + 0xf8]
call fcn.14014b440
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 0x68], rcx
cmp qword [rsp + 0xb8], 0
jae 0x14012ac0d
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x68], 0xffffffffffffffff
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x258], 0xffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3c6
lea rax, [0x140556610]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [fcn.14012bf20]
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x238]
call fcn.140143da0
nop
jmp 0x14012afcf
jmp 0x14012ac95
xor r8d, r8d
mov edx, 1
mov ecx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 0x68], rcx
cmp dword [rsp + 0xc0], 0
jge 0x14012ac95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfd
mov r8d, 0x3cc
lea rdx, [0x140556660]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x3cc
lea rdx, [0x1405566b0]
lea rcx, [0x1405566f8]
call fcn.140015e70
mov ecx, 0xfd
call fcn.14038e600
nop
jmp 0x14012afcf
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x258], 0
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x2a4], 0
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x25c], 0
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x260], 0
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14012ad3a
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x44]
mov r8d, 8
mov edx, 0xffff
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14012ad3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0x3da
lea rdx, [0x140556720]
xor ecx, ecx
call fcn.14014da80
mov ecx, 0xfd
call fcn.14038e600
nop
lea r8, [rsp + 0x44]
mov edx, 0x8004667e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0xcc]
test eax, eax
je 0x14012ae37
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14012ae37
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0xcc]
cmp eax, 0x17
jne 0x14012ad98
mov qword [rsp + 0xc8], 0x1c
jmp 0x14012ada4
mov qword [rsp + 0xc8], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x60]
add rax, 0xcc
mov r8d, dword [rsp + 0xc8]
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0xffffffff
je 0x14012ae32
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x258], 0xffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3ed
lea rax, [0x140556770]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [fcn.14012bf20]
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x238]
call fcn.140143da0
nop
jmp 0x14012afcf
jmp 0x14012af58
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14012aefd
mov rax, qword [rsp + 0x100]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14012ae67
mov qword [rsp + 0xd0], 0x1c
jmp 0x14012ae73
mov qword [rsp + 0xd0], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0x100]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0xffffffff
je 0x14012aefb
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x258], 0xffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3f9
lea rax, [0x1405567c0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [fcn.14012bf20]
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x238]
call fcn.140143da0
nop
jmp 0x14012afcf
jmp 0x14012af58
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x258], 0xffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x405
lea rax, [0x140556810]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [fcn.14012bf20]
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x238]
call fcn.140143da0
nop
jmp 0x14012afcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x14012afc0
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x258], 0xffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x41a
lea rax, [0x140556860]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [fcn.14012bf20]
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x238]
call fcn.140143da0
nop
jmp 0x14012afcf
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x20]
call fcn.140140d90
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14037c300
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14037c650
add rsp, 0xe0
pop rdi
ret