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

Disassembly:
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, 0x68
mov rdi, qword [rsp + 0xd8]
mov r13d, r8d
mov rsi, qword [rcx + 0x10]
xor r8d, r8d
mov rbp, rdx
mov dword [rsp + 0xc8], r8d
mov r15, r9
mov rbx, rcx
mov eax, dword [rdi + 4]
mov r11d, r8d
movzx edx, byte [rdi]
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0x40], edx
test rax, rax
je 0x1402664b4
movzx eax, byte [rax + 1]
jmp 0x1402664b7
mov eax, r8d
mov dword [rsp + 0x44], eax
test r9, r9
je 0x1402664c8
cmp qword [r9], r8
jne 0x1402664ee
mov r15, r8
test eax, eax
jne 0x1402664ee
mov r8d, dword [rsp + 0xe0]
mov rcx, rsi
mov edx, dword [rbp + 0xc]
call fcn.14020fe70
mov r11d, dword [rsp + 0xc8]
xor r8d, r8d
mov edx, dword [rsp + 0x40]
mov rax, qword [rbp + 0x20]
mov ebp, dword [rax]
mov eax, dword [rdi + 0xc]
test eax, eax
jne 0x14026652b
test r15, r15
je 0x14026651e
mov rax, qword [r15]
test byte [r15 + 0x24], 1
mov ecx, dword [rax]
lea r11d, [rcx + 1]
cmovne r11d, ecx
add dword [rbx + 0x38], r11d
mov dword [rsp + 0xc8], r11d
mov eax, dword [rbx + 0x38]
inc eax
mov dword [rdi + 0xc], eax
add dword [rbx + 0x38], ebp
jmp 0x14026653a
mov ecx, dword [rbx + 0x38]
add eax, ebp
cmp eax, ecx
jle 0x14026653a
lea eax, [rcx + rbp]
mov dword [rbx + 0x38], eax
mov r14d, dword [rdi + 0xc]
mov r12d, r14d
mov dword [rsp + 0x48], r14d
mov dword [rdi + 0x10], ebp
test r13d, r13d
js 0x14026665f
mov edi, r8d
test ebp, ebp
jle 0x1402665c8
nop dword [rax]
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x14026658f
lea eax, [rdi + r14]
mov r9d, edi
mov r8d, r13d
mov dword [rsp + 0x20], eax
mov edx, 0x5e
mov rcx, rsi
call fcn.1402471f0
xor r8d, r8d
jmp 0x1402665c2
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x5e
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edi
lea rdx, [rax + rcx*8]
lea eax, [rdi + r14]
mov qword [rdx + 0x10], r8
mov dword [rdx + 0xc], eax
inc edi
cmp edi, ebp
jl 0x140266560
mov r13, qword [rsp + 0xb8]
cmp dword [rsp + 0x44], 0
je 0x140266639
mov rcx, qword [rsp + 0xd0]
mov rax, qword [r13 + 0x20]
mov r9d, dword [rsp + 0xe0]
mov dword [rsp + 0x28], r14d
movzx edi, byte [rcx + 1]
mov r8d, dword [rcx + 4]
mov edx, edi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14020ef50
mov rcx, qword [rsp + 0xd0]
mov r8d, eax
mov edx, edi
mov r9d, dword [rcx + 8]
mov rcx, rbx
call fcn.14021bc10
test r15, r15
jne 0x140266639
mov r8d, dword [rsp + 0xe0]
mov rcx, rsi
mov edx, dword [r13 + 0xc]
call fcn.14020fe70
mov edx, dword [rsp + 0x40]
lea eax, [rdx - 1]
cmp eax, 0xe
ja case.0x14026665d.4
lea r8, [0x140000000]
cdqe
mov ecx, dword [r8 + rax*4 + 0x267028]
add rcx, r8
jmp rcx
cmp dl, 3
je 0x1402665c8
lea eax, [rdx - 9]
test al, 0xfa
jne 0x140266679
cmp dl, 0xe
je 0x140266679
mov r10b, 1
jmp 0x14026667c
xor r10b, r10b
test r15, r15
je 0x140266749
cmp dword [rsp + 0x44], 0
jne 0x140266749
lea eax, [rdx - 0xc]
test al, 0xfd
je 0x140266749
mov rcx, qword [r15]
or r10b, 0xc
mov r8d, dword [r15 + 8]
cmp r8d, dword [rcx]
jge 0x1402666fb
mov rdi, qword [rsp + 0xb8]
nop dword [rax]
nop word [rax + rax]
movsxd rax, r8d
inc rax
shl rax, 5
movzx r9d, word [rax + rcx]
test r9w, r9w
je 0x1402666f3
mov rax, qword [rdi + 0x20]
movzx edx, r8w
sub dx, word [r15 + 8]
mov ecx, r9d
inc dx
shl rcx, 5
mov word [rcx + rax], dx
mov rcx, qword [r15]
inc r8d
cmp r8d, dword [rcx]
jl 0x1402666c0
mov r13, qword [rsp + 0xb8]
mov rdx, qword [r13 + 0x20]
mov eax, dword [rdx]
test eax, eax
jle 0x140266751
add rdx, 0x20
mov r8d, eax
xor r9d, r9d
nop word [rax + rax]
movzx ecx, word [rdx]
lea rdx, [rdx + 0x20]
test cx, cx
mov eax, r9d
cmove eax, r12d
mov r12d, eax
lea eax, [rbp - 1]
cmove eax, ebp
mov ebp, eax
sub r8, 1
jne 0x140266720
mov dword [rsp + 0x48], r12d
jmp 0x140266754
mov r13, qword [rsp + 0xb8]
xor r9d, r9d
cmp dword [r13 + 8], 0
mov dword [rsp + 0x50], r14d
mov byte [rsp + 0x54], r10b
je 0x140266786
test r10b, 8
je 0x140266786
test r11d, r11d
jle 0x140266786
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], r9d
mov qword [r15 + 0x28], rax
mov r12d, r9d
jmp 0x1402665d0
mov rdx, qword [r13 + 0x20]
xor r9d, r9d
mov r8d, r14d
mov byte [rsp + 0x20], r10b
mov rcx, rbx
call fcn.140284230
jmp 0x1402665d0
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1402667b2
inc dword [rbx + 0x38]
mov edi, dword [rbx + 0x38]
jmp 0x1402667c1
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov edi, dword [rbx + rax*4 + 0xd8]
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, r14d
mov edx, 0x61
mov rcx, rsi
call fcn.1402b73f0
mov r8d, dword [rsp + 0xc0]
mov r9d, edi
mov edx, 0x8a
mov dword [rsp + 0x28], ebp
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.1402b7590
test edi, edi
je case.0x14026665d.4
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae case.0x14026665d.4
mov dword [rbx + rax*4 + 0xd8], edi
inc byte [rbx + 0x1f]
jmp case.0x14026665d.4
mov r8d, dword [rsp + 0xc0]
mov r9d, r14d
mov edx, 0x8c
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.1402b73f0
jmp case.0x14026665d.4
mov edx, dword [rsp + 0xc8]
lea r13d, [rdx + 1]
cmp r13d, 1
jne 0x140266871
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14026685f
inc dword [rbx + 0x38]
mov r12d, dword [rbx + 0x38]
jmp 0x140266899
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r12d, dword [rbx + rax*4 + 0xd8]
jmp 0x140266899
mov ecx, dword [rbx + 0x28]
mov r12d, dword [rbx + 0x2c]
cmp r13d, ecx
jg 0x14026688c
lea eax, [r12 + r13]
sub ecx, r13d
mov dword [rbx + 0x2c], eax
mov dword [rbx + 0x28], ecx
jmp 0x140266899
mov eax, dword [rbx + 0x38]
lea r12d, [rax + 1]
add eax, r13d
mov dword [rbx + 0x38], eax
movsxd rcx, dword [rsi + 0x90]
lea edi, [r12 + rdx]
mov dword [rsp + 0xd8], edi
cmp dword [rsi + 0x94], ecx
jg 0x1402668ce
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, r14d
mov edx, 0x61
mov rcx, rsi
call fcn.1402471f0
xor edx, edx
jmp 0x1402668fd
lea eax, [rcx + 1]
xor edx, edx
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x61
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdx
cmp byte [rsp + 0x40], 5
jne 0x140266954
mov r9d, dword [rsi + 0x90]
mov rcx, rsi
mov edi, dword [rsp + 0xc0]
add r9d, 4
mov dword [rsp + 0x28], edx
mov edx, 0x1c
mov dword [rsp + 0x20], r12d
lea r8d, [rdi + 1]
call fcn.1402b7590
mov r9d, r12d
mov dword [rsp + 0x28], ebp
lea r8d, [rdi + 1]
mov dword [rsp + 0x20], r14d
mov edx, 0x8a
mov rcx, rsi
call fcn.1402b7590
mov edi, dword [rsp + 0xd8]
test r15, r15
je 0x140266992
mov eax, dword [rsp + 0xc8]
mov r9d, edi
mov rdi, qword [rsp + 0xb8]
mov rdx, r15
mov dword [rsp + 0x30], eax
mov r8, rdi
mov eax, dword [rsp + 0x48]
mov rcx, rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
call fcn.14025a890
jmp 0x140266a23
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1402669a2
inc dword [rbx + 0x38]
mov edi, dword [rbx + 0x38]
jmp 0x1402669b1
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov edi, dword [rbx + rax*4 + 0xd8]
mov r8d, dword [rsp + 0xc0]
mov r9d, edi
mov edx, 0x7f
mov rcx, rsi
call fcn.1402b7380
mov r8d, dword [rsp + 0xc0]
mov r9d, r12d
mov edx, 0x80
mov dword [rsp + 0x20], edi
mov rcx, rsi
call fcn.1402b73f0
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x140266a05
lea rcx, [rax + rax*2]
mov edx, 8
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
test edi, edi
je 0x140266a1b
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140266a1b
mov dword [rbx + rax*4 + 0xd8], edi
inc byte [rbx + 0x1f]
mov rdi, qword [rsp + 0xb8]
cmp r13d, 1
jne 0x140266a4e
test r12d, r12d
je 0x140266fd9
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140266fd9
mov dword [rbx + rax*4 + 0xd8], r12d
inc byte [rbx + 0x1f]
jmp 0x140266fd9
cmp r13d, dword [rbx + 0x28]
jle 0x140266fd9
mov dword [rbx + 0x28], r13d
mov dword [rbx + 0x2c], r12d
jmp 0x140266fd9
test r15, r15
jne 0x140266bee
mov r12, qword [rsp + 0xd8]
movzx eax, byte [rbx + 0x1f]
mov edi, dword [r12 + 8]
test al, al
jne 0x140266a8b
inc dword [rbx + 0x38]
mov ebx, dword [rbx + 0x38]
jmp 0x140266a9a
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebx, dword [rbx + rax*4 + 0xd8]
mov r15d, dword [rsp + 0xe8]
mov r8d, r14d
mov r9d, r15d
mov edx, gethostbyname
mov rcx, rsi
call fcn.1402b7380
mov eax, edi
mov dword [rsp + 0x20], ebx
shr eax, 0x1f
mov edx, 0x61
sub ebp, eax
mov rcx, rsi
mov r9d, ebp
lea r8d, [rax + r14]
call fcn.1402b73f0
mov r8d, dword [rsp + 0xc0]
mov r9d, ebx
mov rcx, rsi
test edi, edi
jns 0x140266b02
mov edx, 0x80
mov dword [rsp + 0x20], r14d
call fcn.1402b73f0
mov rdi, qword [rsp + 0xb8]
jmp 0x140266c4b
mov dword [rsp + 0x28], edi
mov edx, 0x8a
mov dword [rsp + 0x20], r14d
call fcn.1402b7590
mov rdi, qword [rsp + 0xb8]
jmp 0x140266c4b
test r15, r15
jne 0x140266bee
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x140266b3b
inc dword [rbx + 0x38]
mov edi, dword [rbx + 0x38]
jmp 0x140266b4a
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov edi, dword [rbx + rax*4 + 0xd8]
mov r12, qword [rsp + 0xd8]
mov r9d, ebp
mov dword [rsp + 0x30], ebp
mov r8d, r14d
mov edx, 0x61
mov rcx, rsi
mov rax, qword [r12 + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call fcn.1402b7460
mov r8d, dword [rsp + 0xc0]
mov r9d, edi
mov edx, 0x8a
mov dword [rsp + 0x28], ebp
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.1402b7590
test edi, edi
je 0x140266c3b
movzx eax, byte [rbx + 0x1f]
mov r15d, dword [rsp + 0xe8]
cmp al, 8
jae 0x140266af5
mov dword [rbx + rax*4 + 0xd8], edi
inc byte [rbx + 0x1f]
mov rdi, qword [rsp + 0xb8]
jmp 0x140266c4b
mov r9d, dword [rsp + 0xc0]
mov edx, 0x47
mov rcx, rsi
lea r8d, [rdx - 0x46]
call fcn.1402b7380
jmp case.0x14026665d.4
test r15, r15
je 0x140266c3b
mov eax, dword [rsp + 0xc8]
mov r9d, r14d
mov dword [rsp + 0x30], eax
mov r8, r13
mov dword [rsp + 0x28], ebp
mov rdx, r15
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.14025a890
jmp 0x140267014
test r15, r15
jne 0x140266bee
mov rcx, rsi
cmp dl, 0xd
jne 0x140266c85
mov r12, qword [rsp + 0xd8]
lea edx, [r15 + 0xb]
mov r8d, dword [r12 + 4]
call fcn.1402b7310
mov rdi, qword [rsp + 0xb8]
mov r15d, dword [rsp + 0xe8]
mov edx, dword [rdi + 8]
test edx, edx
je 0x140267014
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x140266fe3
xor eax, eax
mov r8d, edx
mov r9d, r15d
mov dword [rsp + 0x20], eax
mov rcx, rsi
lea edx, [rax + 0x3c]
call fcn.1402471f0
jmp 0x140267014
mov r9d, ebp
mov r8d, r14d
mov edx, 0x54
call fcn.1402b7380
jmp 0x140266c3b
mov r12, qword [rsp + 0xd8]
movzx eax, byte [rbx + 0x1f]
mov dword [rsp + 0xc8], 0
mov r12, qword [r12 + 0x20]
mov qword [rsp + 0x58], r12
mov r11d, dword [r12]
mov dword [rsp + 0x48], r11d
test al, al
jne 0x140266cd6
inc dword [rbx + 0x38]
mov r10d, dword [rbx + 0x38]
mov dword [rsp + 0xd0], r10d
jmp 0x140266cec
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ecx, dword [rbx + rax*4 + 0xd8]
mov dword [rsp + 0xd0], ecx
lea edi, [r11 + 2]
mov rcx, rbx
mov edx, edi
mov dword [rsp + 0x44], edi
call fcn.140297e70
mov ecx, dword [rsp + 0xc0]
mov r13d, eax
add eax, r11d
mov dword [rsp + 0xd8], eax
inc eax
cmp byte [rsp + 0x40], 6
jne 0x140266e02
xor r9d, r9d
mov dword [rsp + 0x28], ebp
lea r8d, [rcx + 1]
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea edx, [r9 + 0x1c]
call fcn.1402b7590
mov r12d, eax
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0xd8]
mov r9d, ebp
inc eax
mov r8d, r14d
mov edx, 0x61
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.1402b73f0
mov r9d, dword [rsp + 0xd8]
mov edx, 0x8a
mov r8d, dword [rsp + 0xc0]
inc r9d
inc r8d
mov rcx, rsi
call fcn.1402b7380
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x140266db0
lea rcx, [rax + rax*2]
mov dword [rsp + 0xc8], r12d
mov rax, qword [rsi + 0x88]
mov edx, reloc.WS2_32.dll_recv
mov word [rax + rcx*8 - 0x16], dx
mov r12, qword [rsp + 0x58]
mov eax, dword [rsp + 0x48]
test eax, eax
jle 0x140266e63
lea rbp, [r12 + 0x20]
mov edi, r13d
mov r12d, eax
xor ebx, ebx
nop
movzx eax, word [rbp]
lea edx, [r14 - 1]
movsxd rcx, dword [rsi + 0x90]
add edx, eax
cmp dword [rsi + 0x94], ecx
jg 0x140266e1b
mov r8d, edx
mov dword [rsp + 0x20], ebx
mov edx, 0x51
mov r9d, edi
mov rcx, rsi
call fcn.1402471f0
jmp 0x140266e47
mov r9d, ebp
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, 0x61
mov rcx, rsi
call fcn.1402b73f0
jmp 0x140266db5
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x51
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
inc edi
add rbp, 0x20
sub r12, 1
jne 0x140266dd0
mov rbx, qword [rsp + 0xb0]
mov edi, dword [rsp + 0x44]
movsxd rcx, dword [rsi + 0x90]
mov r14d, dword [rsp + 0xc0]
cmp dword [rsi + 0x94], ecx
jg 0x140266e9b
mov r9d, dword [rsp + 0xd8]
xor eax, eax
mov r8d, r14d
mov dword [rsp + 0x20], eax
mov rcx, rsi
lea edx, [rax + 0x7e]
call fcn.1402471f0
xor r8d, r8d
jmp 0x140266ed3
mov edx, dword [rsp + 0xd8]
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
xor r8d, r8d
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rsi + 0x90]
mov ebp, dword [rsp + 0xd0]
cmp dword [rsi + 0x94], ecx
jg 0x140266f02
mov r9d, edi
mov dword [rsp + 0x20], ebp
mov r8d, r13d
mov edx, 0x61
mov rcx, rsi
call fcn.1402471f0
jmp 0x140266f2f
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x61
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r8
mov dword [rsp + 0x28], edi
mov r9d, ebp
mov r8d, r14d
mov dword [rsp + 0x20], r13d
mov edx, 0x8a
mov rcx, rsi
call fcn.1402b7590
mov ecx, dword [rsp + 0xc8]
test ecx, ecx
je 0x140266f88
mov edx, dword [rsi + 0x90]
jns 0x140266f61
lea ecx, [rdx - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
je 0x140266f73
lea rax, [0x140433b88]
jmp 0x140266f85
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
test ebp, ebp
je 0x140266f9e
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140266f9e
mov dword [rbx + rax*4 + 0xd8], ebp
inc byte [rbx + 0x1f]
cmp edi, 1
jne 0x140266fc5
test r13d, r13d
je case.0x14026665d.4
movzx eax, byte [rbx + 0x1f]
mov rdi, qword [rsp + 0xb8]
cmp al, 8
jae 0x140266fd9
mov dword [rbx + rax*4 + 0xd8], r13d
inc byte [rbx + 0x1f]
jmp 0x140266fd9
cmp edi, dword [rbx + 0x28]
jle case.0x14026665d.4
mov dword [rbx + 0x28], edi
mov dword [rbx + 0x2c], r13d
mov rdi, qword [rsp + 0xb8]
test r15, r15
jne 0x140267014
jmp 0x140266c43
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x3c
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret