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

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push r14
sub rsp, 0x68
mov rax, qword [rcx + 8]
mov r14, rcx
mov r8d, dword [rax + 0x158]
test r8b, 2
jne 0x140091986
bt r8d, 0x16
jae 0x14009199e
mov rbx, qword [rcx]
lea rcx, [rbx + 0x1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140071c10
mov eax, dword [r14 + 0x750]
bt rax, 0xf
jae 0x140091c6a
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x60], r12
xor ebx, ebx
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r15
mov r15, qword [0x1402e6b48]
mov esi, reloc.WS2_32.dll_inet_ntoa
mov rbp, rbx
mov r13, rbx
mov r12d, ebx
nop
cmp esi, 0xb0
jle 0x140091a9e
mov rcx, r15
call fcn.1401e3610
mov rdi, rax
test rax, rax
je 0x140091a4b
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov dword [rax + 0x18], ebx
mov dword [rax + 0x1c], 2
mov eax, 1
mov qword [rdi + 0x28], rbx
mov word [rdi + 0x20], ax
lea rax, [rdi + 0x50]
mov dword [rdi + 0x38], ebx
mov qword [rdi + 0x30], rbx
mov dword [rdi + 0x3c], ebx
mov dword [rdi + 0x40], ebx
mov qword [rdi + 0x10], rax
mov word [rdi + 0x44], bx
mov word [rdi + 0x46], bx
mov qword [rdi + 0x48], rbx
mov rcx, qword [0x1402e6b50]
mov qword [rdi + 0x50], rbx
call fcn.1401e3610
mov rcx, qword [0x1402e6b58]
mov rbx, rax
call fcn.1401e3610
mov ecx, 1
mov dword [rax], ecx
or dword [rdi + 0x1c], ecx
mov qword [rdi + 0x50], rbx
mov qword [rdi + 0x10], rbx
xor ebx, ebx
mov qword [rdi + 0x70], rax
mov dword [rdi + 0x68], 0x800
mov dword [rdi + 0x78], ecx
mov eax, 0x800
mov qword [rdi + 0x58], rbx
mov qword [rdi + 0x60], rbx
jmp 0x140091b37
test r12b, 2
je 0x140091aff
mov rcx, r15
call fcn.1401e3610
mov rdi, rax
test rax, rax
je 0x140091af3
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov dword [rax + 0x18], ebx
mov dword [rax + 0x1c], 2
mov eax, 1
mov qword [rdi + 0x28], rbx
mov word [rdi + 0x20], ax
lea rax, [rdi + 0x50]
mov dword [rdi + 0x38], ebx
mov qword [rdi + 0x30], rbx
mov dword [rdi + 0x3c], ebx
mov dword [rdi + 0x40], ebx
mov qword [rdi + 0x10], rax
mov word [rdi + 0x44], bx
mov word [rdi + 0x46], bx
mov qword [rdi + 0x48], rbx
mov eax, 0xb0
cmp esi, eax
cmovl eax, esi
jmp 0x140091b37
mov rcx, r15
call fcn.1401e3610
mov rdi, rax
test rax, rax
je 0x140091b2d
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov dword [rax + 0x18], ebx
mov dword [rax + 0x1c], ebx
mov eax, 1
mov word [rdi + 0x20], ax
lea rax, [rdi + 0x28]
mov qword [rdi + 0x10], rax
mov eax, 0xd8
cmp esi, eax
cmovl eax, esi
test rdi, rdi
je 0x140091c36
cmp eax, 0xc
jl 0x140091c31
sub esi, eax
test r13, r13
je 0x140091b56
mov qword [r13], rdi
jmp 0x140091b59
mov rbp, rdi
and r12d, 0xfffffffd
mov r13, rdi
test esi, esi
jg 0x1400919f0
test r12b, 4
je 0x140091b72
or dword [rdi + 0x1c], 4
test rbp, rbp
je 0x140091c43
mov rcx, qword [rbp + 0x10]
xor eax, eax
mov qword [rsp + 0x40], rbp
mov dword [rcx], eax
mov dword [rcx + 8], eax
mov word [rcx + 2], bx
mov dword [rcx + 4], reloc.WS2_32.dll_inet_ntoa
mov eax, 5
mov byte [rsp + 0x38], 0
mov word [rcx], ax
mov eax, dword [r14 + 0x520]
mov dword [rsp + 0x30], ebx
mov dword [rcx + 8], eax
mov dword [rbp + 0x18], reloc.WS2_32.dll_inet_ntoa
mov qword [rbp], rbx
mov eax, dword [r14 + 0x568]
mov rdx, qword [r14 + 0x3d0]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov word [rsp + 0x28], bx
mov dword [rsp + 0x20], eax
call fcn.1400c7a10
mov r8, rax
test rax, rax
je 0x140091c3b
mov eax, dword [rbp + 0x18]
mov qword [r8 + 0x40], rbp
mov rdx, r14
mov dword [r8 + 0x20], eax
mov eax, 0x100
mov word [r8 + 0x8a], ax
mov eax, dword [rsp + 0x88]
mov r9, qword [r14]
mov rcx, qword [r14 + 8]
mov dword [rsp + 0x30], eax
mov eax, 1
mov dword [rsp + 0x28], eax
add r9, 0xc8
mov dword [rsp + 0x20], eax
call fcn.1400952d0
jmp 0x140091c43
mov rcx, rdi
jmp 0x140091c3e
test rbp, rbp
je 0x140091c43
mov rcx, rbp
call fcn.140077120
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
mov r15, qword [rsp + 0x50]
add rsp, 0x68
pop r14
pop rbx
ret