Function at 0x1400477f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140119de8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x24], 0xffffffff
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov qword [rax], 0
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x3bb], 0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xe0], 0
je 0x14004787e
mov r8d, 2
mov edx, 3
mov rcx, qword [rsp + 0x80]
call fcn.140041180
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140048e60
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400478c8
xor eax, eax
test eax, eax
jne 0x1400478a8
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
inc eax
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x10], eax
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xe0], 0
je 0x1400478ec
mov edx, 3
mov rcx, qword [rsp + 0x80]
call fcn.140041210
cmp qword [rsp + 0x30], 0
jne 0x140047c14
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xa20], 0
je 0x140047981
mov dl, 1
mov rcx, qword [rsp + 0x80]
call fcn.14001ffe0
mov rax, qword [rsp + 0x80]
mov r8, qword [rax + 0xa28]
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0xdd0]
mov rax, qword [rsp + 0x80]
call qword [rax + 0xa20]
mov dword [rsp + 0x3c], eax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.14001ffe0
cmp dword [rsp + 0x3c], 0
je 0x140047981
mov eax, 0xffffffff
jmp 0x140047c28
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x88]
mov ecx, 2
call fcn.14006c540
test eax, eax
jle 0x1400479c0
mov r9d, dword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
lea rdx, [rsp + 0x40]
mov ecx, 2
call fcn.14005a9d0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140047a07
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x88]
mov ecx, reloc.WS2_32.dll_socket
call fcn.14006c540
test eax, eax
jle 0x140047a07
mov r9d, dword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
lea rdx, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_socket
call fcn.14005a9d0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140047b2e
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x71a]
cmp eax, 2
jne 0x140047a42
mov rcx, qword [rsp + 0x80]
call fcn.140047cb0
movzx eax, al
test eax, eax
jne 0x140047a42
mov eax, 0xffffffff
jmp 0x140047c28
lea rdx, str.localhost
mov rcx, qword [rsp + 0x88]
call fcn.14003fea0
test eax, eax
jne 0x140047a75
lea rdx, str..localhost
mov rcx, qword [rsp + 0x88]
call fcn.1400497d0
movzx eax, al
test eax, eax
je 0x140047a93
mov rdx, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x90]
call fcn.1400495b0
mov qword [rsp + 0x28], rax
jmp 0x140047b2e
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x140047ae4
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 0xa8e]
test eax, eax
je 0x140047ae4
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140047ae4
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140070340
mov qword [rsp + 0x28], rax
jmp 0x140047b2e
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call fcn.140070300
movzx eax, al
test eax, eax
jne 0x140047b07
mov eax, 0xffffffff
jmp 0x140047c28
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.14005ad90
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140047b83
cmp dword [rsp + 0x38], 0
je 0x140047b7e
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
call fcn.140048b10
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140047b64
mov eax, 0xffffffff
jmp 0x140047c28
cmp qword [rsp + 0x30], 0
je 0x140047b76
mov dword [rsp + 0x24], 0
jmp 0x140047b7e
mov dword [rsp + 0x24], 1
jmp 0x140047c14
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xe0], 0
je 0x140047bad
mov r8d, 2
mov edx, 3
mov rcx, qword [rsp + 0x80]
call fcn.140041180
mov r9d, dword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.1400481d0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xe0], 0
je 0x140047bf8
mov edx, 3
mov rcx, qword [rsp + 0x80]
call fcn.140041210
cmp qword [rsp + 0x30], 0
jne 0x140047c0c
mov rcx, qword [rsp + 0x28]
call fcn.14005a3c0
jmp 0x140047c14
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140080030
add rsp, 0x78
ret