Function at 0x140148610
Capabilities:
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 rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov r10, qword [rdx]
mov rbx, rdx
mov rsi, qword [rcx + 0x10]
xor edi, edi
movsxd r12, r9d
mov r13, r8
mov r9, rcx
mov qword [rsp + 0x50], r10
movzx edx, byte [r10]
mov r14d, 0x400
mov r15d, 0x800
lea eax, [rdx - 0x2d]
test al, 0xf7
je 0x140148d40
cmp dl, 0x32
jne 0x14014868b
mov ebp, dword [rsp + 0xe8]
lea edx, [rdi + 0x48]
mov r9d, ebp
xor r8d, r8d
mov rcx, rsi
call fcn.1401af0d0
jmp 0x140148cd4
mov r11, qword [r8 + 0x50]
mov ebp, edi
mov dword [rsp + 0x38], 5
mov r15, rdi
mov qword [rsp + 0x48], r11
test dword [r11 + 0x28], r14d
jne 0x1401486c8
mov rax, qword [r11 + 0x20]
test rax, rax
je 0x1401486c8
mov rax, qword [rax + 0x38]
cmp byte [r12 + rax], dil
je 0x1401486c8
cmp dword [rsp + 0xe0], edi
mov eax, edi
sete al
jmp 0x1401486cf
mov eax, dword [rsp + 0xe0]
mov r14d, dword [rsp + 0xe8]
mov dword [rsp + 0x34], eax
test r12d, r12d
jle 0x140148701
mov r8, qword [r11 + 0x38]
mov rax, rdi
mov rcx, qword [r8 + rax*8]
test rcx, rcx
je 0x1401486f9
cmp qword [rcx], r10
je 0x1401487a9
inc rax
cmp rax, r12
jl 0x1401486e7
movzx r8d, word [r11 + 0x2c]
cmp r12d, r8d
jge 0x140148738
mov rax, qword [r11 + 0x38]
sub r8d, r12d
lea rdx, [rax + r12*8]
nop word [rax + rax]
mov rax, qword [rdx]
lea ecx, [rbp + 1]
lea rdx, [rdx + 8]
cmp qword [rax], r10
cmovne ecx, ebp
mov ebp, ecx
sub r8, 1
jne 0x140148720
test dword [r10 + 4], 0x800
mov r14d, edi
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x30], edi
je 0x140148842
mov rax, qword [r10 + 0x20]
mov rcx, qword [rax + 0x20]
cmp dword [rcx], 1
je 0x140148842
mov r13, qword [r9]
mov r8, r11
mov rcx, qword [rsp + 0xc0]
mov r9, r10
mov edx, r12d
call fcn.140169df0
mov r12, rax
cmp byte [r13 + 0x63], dil
jne 0x140148814
mov rax, qword [rsp + 0xc0]
movsxd r14, ebp
shl r14, 2
mov rcx, qword [rax]
test rcx, rcx
je 0x1401487bc
mov rdx, r14
call fcn.14017f9f0
jmp 0x1401487c4
mov rdx, rbx
mov rcx, r13
call fcn.14014e830
mov eax, r14d
jmp 0x140148d88
mov rcx, r14
call fcn.140196750
mov r15, rax
test rax, rax
je 0x1401487d9
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.14026c200
mov rcx, qword [rsp + 0xc0]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], r15
lea r8d, [r9 + 4]
call fcn.1401894e0
mov r14d, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov rax, qword [rbx]
mov dword [rsp + 0x3c], r14d
mov dword [rax + 0x2c], r14d
test r12, r12
je 0x140148824
mov rdx, r12
mov rcx, r13
call fcn.1401874e0
mov rax, qword [rbx]
mov r13, qword [rsp + 0xd0]
mov r12d, dword [rsp + 0xd8]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x38]
jmp 0x140148876
mov rcx, qword [rsp + 0xc0]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r10
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 4]
call fcn.1401894e0
mov r14d, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], r14d
cmp eax, 4
jne 0x14014888a
cmp dword [rsp + 0x34], edi
mov eax, edi
sete al
mov dword [rsp + 0x34], eax
jmp 0x14014888e
mov eax, dword [rsp + 0x34]
test eax, eax
mov ecx, 0x21
mov edx, 0x25
cmovne edx, ecx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x1401488c0
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, r14d
mov rcx, rsi
call fcn.14015ae20
jmp 0x1401488f0
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8], dl
mov word [rax + rcx*8 + 2], di
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov byte [rax + rcx*8 + 1], dil
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
or dword [rdx + 0x28], 0x800
cmp dword [r13 + 0x40], edi
jne 0x140148914
dec dword [rcx + 0x44]
mov eax, dword [rcx + 0x44]
mov dword [r13 + 0x10], eax
test r12d, r12d
jle 0x140148929
mov eax, dword [rdx + 0x28]
bt eax, 0x14
jb 0x140148929
bts eax, 0x12
mov dword [rdx + 0x28], eax
movsxd r14, dword [r13 + 0x40]
mov rdx, qword [r13 + 0x48]
lea eax, [r14 + rbp]
mov dword [r13 + 0x40], eax
mov rcx, qword [rcx]
cdqe
lea r8, [rax + rax*4]
shl r8, 2
call fcn.14017fab0
mov qword [r13 + 0x48], rax
test rax, rax
je 0x140148bdb
lea rcx, [r14 + r14*4]
lea r14, [rax + rcx*4]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + 0x2c]
cmp r12d, eax
jge 0x140148b72
mov edx, dword [rsp + 0xe8]
mov r8, r15
mov r13d, dword [rsp + 0x3c]
mov r9d, edx
mov rbx, qword [rsp + 0x50]
sub r9d, r12d
movsxd rax, r12d
mov ebp, edx
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x58], r15
lea r10, [rax*8]
mov eax, r12d
sub eax, edx
mov qword [rsp + 0x60], r10
mov dword [rsp + 0x40], eax
mov rax, qword [rcx + 0x38]
mov rdx, r8
mov rcx, qword [r10 + rax]
cmp qword [rcx], rbx
jne 0x140148b35
cmp dword [rsp + 0x38], 1
jne 0x140148a1e
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x1401489f9
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, r13d
mov edx, 0x83
mov rcx, rsi
call fcn.14015ae20
mov edx, eax
jmp 0x140148a93
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x83
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edi
jmp 0x140148a89
test r15, r15
je 0x140148a28
mov r8d, dword [r8]
jmp 0x140148a2b
mov r8d, edi
test r15, r15
lea rax, [rdx + 4]
cmove rax, rdx
movsxd rdx, dword [rsi + 0x90]
mov qword [rsp + 0x58], rax
cmp dword [rsi + 0x94], edx
jg 0x140148a65
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, r13d
mov edx, 0x5b
mov rcx, rsi
call fcn.14015ae20
mov edx, eax
jmp 0x140148a93
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x5b
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rdi
mov dword [rax + rcx*8 + 4], r13d
mov dword [r14 + 4], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x140148abe
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rsi
lea edx, [r9 + 0x32]
call fcn.14015ae20
jmp 0x140148ae7
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], getservbyname
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov ecx, dword [rsp + 0x40]
add ecx, ebp
cmp ecx, r12d
jne 0x140148b1d
cmp dword [rsp + 0x34], edi
mov dword [r14], r13d
sete al
add al, 4
mov byte [r14 + 0x10], al
test r12d, r12d
jle 0x140148b15
mov eax, dword [rsp + 0x30]
mov dword [r14 + 8], eax
mov dword [r14 + 0xc], ecx
jmp 0x140148b22
mov ecx, edi
mov dword [r14 + 0xc], ecx
jmp 0x140148b22
mov byte [r14 + 0x10], 0xb1
mov r8, qword [rsp + 0x58]
add r14, 0x14
mov r9d, dword [rsp + 0x30]
mov r10, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
inc ebp
mov ecx, dword [rsp + 0x40]
dec r9d
add r10, 8
mov dword [rsp + 0x30], r9d
add ecx, ebp
mov qword [rsp + 0x60], r10
movzx eax, word [rdx + 0x2c]
cmp ecx, eax
mov rcx, rdx
jl 0x1401489b1
mov rbx, qword [rsp + 0xc8]
mov r13, qword [rsp + 0xd0]
test r12d, r12d
jle 0x140148bdf
test dword [rcx + 0x28], 0x100400
jne 0x140148bdf
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [r13 + 8]
cmp dword [rsi + 0x94], ecx
jg 0x140148bac
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, edx
mov rcx, rsi
lea edx, [r9 + 0x79]
call fcn.14015ae20
jmp 0x140148bdf
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x79
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], rdi
jmp 0x140148bdf
mov dword [r13 + 0x40], edi
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax]
test r15, r15
je 0x140148cc1
test rcx, rcx
je 0x140148c52
cmp qword [rcx + 0x2e0], rdi
je 0x140148c0e
mov rdx, r15
call fcn.14015eb90
jmp 0x140148cc1
cmp r15, qword [rcx + 0x1d0]
jae 0x140148c52
cmp r15, qword [rcx + 0x1c0]
jb 0x140148c36
mov rax, qword [rcx + 0x1b8]
mov qword [r15], rax
mov qword [rcx + 0x1b8], r15
jmp 0x140148cc1
cmp r15, qword [rcx + 0x1c8]
jb 0x140148c52
mov rax, qword [rcx + 0x1a8]
mov qword [r15], rax
mov qword [rcx + 0x1a8], r15
jmp 0x140148cc1
cmp dword [reloc.WS2_32.dll_accept], edi
je 0x140148d31
mov rcx, qword [0x14036cc60]
test rcx, rcx
je 0x140148c77
mov rax, qword [0x14035acb0]
call qword [case.0x1400ac8a1.0]
mov rax, qword [0x14035ac68]
mov rcx, r15
call qword [case.0x1400ac8a1.0]
dec qword [0x14036cbf8]
movsxd rcx, eax
sub qword [0x14036cbb0], rcx
mov rcx, r15
mov rax, qword [0x14035ac58]
call qword [case.0x1400ac8a1.0]
mov rcx, qword [0x14036cc60]
test rcx, rcx
je 0x140148cc1
mov rax, qword [0x14035acc0]
call qword [case.0x1400ac8a1.0]
mov ebp, dword [rsp + 0xe8]
mov r14d, 0x400
mov r15d, 0x800
mov rcx, qword [r13 + 0x50]
test dword [rcx + 0x28], 0x200000
je 0x140148cec
test word [rbx + 0x14], r15w
jne 0x140148d86
test byte [rbx + 0x12], 4
jne 0x140148d86
mov edx, 0x200
nop dword [rax + rax]
cmp dword [r13], 0
je 0x140148d10
mov rax, qword [rbx]
test byte [rax + 4], 1
je 0x140148d86
mov rax, qword [rbx + 0x30]
test qword [r13 + 0x58], rax
jne 0x140148d86
test edi, edi
je 0x140148d58
movzx eax, word [rbx + 0x12]
test r14w, ax
je 0x140148d58
or ax, dx
mov word [rbx + 0x12], ax
jmp 0x140148d5d
mov rax, qword [0x14035ac58]
mov rcx, r15
jmp 0x140148cbb
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [r10 + 0x18]
call fcn.1401859f0
mov ebp, eax
jmp 0x140148cd4
or word [rbx + 0x12], 4
movsxd rax, dword [rbx + 0x18]
test eax, eax
js 0x140148d86
imul rcx, rax, 0x38
mov rax, qword [rbx + 8]
add rcx, qword [rax + 0x20]
mov rbx, rcx
add byte [rcx + 0x16], 0xff
jne 0x140148d86
inc edi
test byte [rcx + 0x12], 4
je 0x140148d00
mov eax, ebp
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret