Function at 0x14004687c
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 [0x140117dd8]
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 0x14004690a
mov r8d, 2
mov edx, 3
mov rcx, qword [rsp + 0x80]
call fcn.140040410
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140047e78
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140046954
xor eax, eax
test eax, eax
jne 0x140046934
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 0x140046978
mov edx, 3
mov rcx, qword [rsp + 0x80]
call fcn.1400404a0
cmp qword [rsp + 0x30], 0
jne 0x140046ca0
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 0x140046a0d
mov dl, 1
mov rcx, qword [rsp + 0x80]
call fcn.14001ffe8
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.14001ffe8
cmp dword [rsp + 0x3c], 0
je 0x140046a0d
mov eax, 0xffffffff
jmp 0x140046cb4
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x88]
mov ecx, 2
call fcn.14006ae80
test eax, eax
jle 0x140046a4c
mov r9d, dword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
lea rdx, [rsp + 0x40]
mov ecx, 2
call fcn.1400594d4
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140046a93
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x88]
mov ecx, reloc.WS2_32.dll_socket
call fcn.14006ae80
test eax, eax
jle 0x140046a93
mov r9d, dword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
lea rdx, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_socket
call fcn.1400594d4
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140046bba
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x71a]
cmp eax, 2
jne 0x140046ace
mov rcx, qword [rsp + 0x80]
call fcn.140046d34
movzx eax, al
test eax, eax
jne 0x140046ace
mov eax, 0xffffffff
jmp 0x140046cb4
lea rdx, str.localhost
mov rcx, qword [rsp + 0x88]
call fcn.14003f1d0
test eax, eax
jne 0x140046b01
lea rdx, str..localhost
mov rcx, qword [rsp + 0x88]
call fcn.1400487bc
movzx eax, al
test eax, eax
je 0x140046b1f
mov rdx, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x90]
call fcn.1400485a8
mov qword [rsp + 0x28], rax
jmp 0x140046bba
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x140046b70
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 0xa8e]
test eax, eax
je 0x140046b70
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140046b70
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.14006eb60
mov qword [rsp + 0x28], rax
jmp 0x140046bba
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call fcn.14006eb2c
movzx eax, al
test eax, eax
jne 0x140046b93
mov eax, 0xffffffff
jmp 0x140046cb4
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140059870
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140046c0f
cmp dword [rsp + 0x38], 0
je 0x140046c0a
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
call fcn.140047b50
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140046bf0
mov eax, 0xffffffff
jmp 0x140046cb4
cmp qword [rsp + 0x30], 0
je 0x140046c02
mov dword [rsp + 0x24], 0
jmp 0x140046c0a
mov dword [rsp + 0x24], 1
jmp 0x140046ca0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xe0], 0
je 0x140046c39
mov r8d, 2
mov edx, 3
mov rcx, qword [rsp + 0x80]
call fcn.140040410
mov r9d, dword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.140047224
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xe0], 0
je 0x140046c84
mov edx, 3
mov rcx, qword [rsp + 0x80]
call fcn.1400404a0
cmp qword [rsp + 0x30], 0
jne 0x140046c98
mov rcx, qword [rsp + 0x28]
call fcn.140058ee0
jmp 0x140046ca0
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.14007e5f0
add rsp, 0x78
ret