Function at 0x14005c860
Capabilities:
Connect socket
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x248
mov rax, qword [0x1400cd048]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x21], 0
movsxd rax, dword [rsp + 0x278]
mov rcx, qword [rsp + 0x268]
lea rax, [rcx + rax*8 + 0x200]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rax], 0xffffffffffffffff
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
call fcn.14005c1b0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14005c900
mov eax, dword [rsp + 0x24]
jmp 0x14005ccc8
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x100]
mov edx, dword [rsp + 0x7c]
lea rcx, [rsp + 0x80]
call fcn.14005d4a0
movzx eax, al
test eax, eax
jne 0x14005c989
call fcn.14001f9ac
mov r8d, 0x100
lea rdx, [rsp + 0x130]
mov ecx, dword [rax]
call fcn.14008e3e0
mov qword [rsp + 0x58], rax
call fcn.14001f9ac
mov rcx, qword [rsp + 0x58]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x260]
call fcn.14005bda0
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x260]
call fcn.14005c3f0
xor eax, eax
jmp 0x14005ccc8
xor eax, eax
test eax, eax
jne 0x14005c989
cmp dword [rsp + 0x70], 2
jne 0x14005c9a7
cmp dword [rsp + 0x74], 1
jne 0x14005c9a7
mov dword [rsp + 0x40], 1
jmp 0x14005c9af
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x14005c9c0
mov dword [rsp + 0x44], 0
jmp 0x14005c9c8
mov dword [rsp + 0x44], 1
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14005c9ff
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xa7b]
test eax, eax
je 0x14005c9ff
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.14005cdd0
xor eax, eax
test eax, eax
jne 0x14005c9ff
mov rcx, qword [rsp + 0x30]
call fcn.14005ccf0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14005ca3d
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xa83]
test eax, eax
je 0x14005ca3d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.14005dfa0
mov rax, qword [rsp + 0x260]
cmp qword [rax + 0x280], 0
je 0x14005cad3
mov dl, 1
mov rcx, qword [rsp + 0x260]
call fcn.140054970
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 0x288]
mov rax, qword [rsp + 0x260]
call qword [rax + 0x280]
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, qword [rsp + 0x260]
call fcn.140054970
cmp dword [rsp + 0x28], 2
jne 0x14005caa8
mov byte [rsp + 0x21], 1
jmp 0x14005cad3
cmp dword [rsp + 0x28], 0
je 0x14005cad3
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x260]
call fcn.14005c3f0
mov eax, 0x2a
jmp 0x14005ccc8
cmp dword [rsp + 0x70], 2
jne 0x14005cb33
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.14005d8f0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14005cb33
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x260]
call fcn.14005c3f0
cmp dword [rsp + 0x24], 1
jne 0x14005cb2a
mov eax, 7
jmp 0x14005ccc8
mov eax, dword [rsp + 0x24]
jmp 0x14005ccc8
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.14008f040
lea rcx, [rsp + 0x60]
call fcn.14008dd30
mov rcx, qword [rsp + 0x268]
lea rdi, [rcx + 0x3e8]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x3e4], 1
jle 0x14005cbce
mov eax, 8
imul rax, rax, 0
mov r8d, 3
mov rcx, qword [rsp + 0x268]
mov rdx, qword [rcx + rax + 0x3f8]
mov rcx, qword [rsp + 0x260]
call fcn.140059560
mov eax, 8
imul rax, rax, 1
mov r8d, 4
mov rcx, qword [rsp + 0x268]
mov rdx, qword [rcx + rax + 0x3f8]
mov rcx, qword [rsp + 0x260]
call fcn.140059560
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x14005cc2c
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x88], 4
je 0x14005cc2c
mov rax, qword [rsp + 0x268]
movzx eax, byte [rax + 0x3d9]
test eax, eax
je 0x14005cbfd
jmp 0x14005cc19
mov r8d, dword [rsp + 0x7c]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x14005cc2a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
jmp 0x14005cc40
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
jmp 0x14005ccc8
cmp dword [rsp + 0x38], 0xffffffff
jne 0x14005ccb0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0xb
je 0x14005cc6c
cmp dword [rsp + 0x3c], 0x2733
je 0x14005cc6c
cmp dword [rsp + 0x3c], 0x2734
je 0x14005cc6c
jmp 0x14005cc76
mov dword [rsp + 0x24], 0
jmp 0x14005ccb0
xor eax, eax
test eax, eax
jne 0x14005cc76
mov rax, qword [rsp + 0x260]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0xd2c], ecx
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x260]
call fcn.14005c3f0
mov dword [rsp + 0x24], 7
cmp dword [rsp + 0x24], 0
jne 0x14005ccc4
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400197a0
add rsp, 0x248
pop rdi
pop rsi
ret