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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x78
mov rsi, qword [rcx + 0x10]
lea r15, [rcx + 0x34]
xor r12d, r12d
mov qword [rsp + 0x50], r15
lea r14, [rcx + 0x10]
mov rbp, r8
mov r8d, edx
mov edx, r12d
mov rdi, rcx
mov dword [rsp + 0xb0], edx
mov dword [rsp + 0x40], r12d
cmp dword [r15], r12d
jne 0x140138936
mov r11, qword [rbp + 0x28]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x68], r13
mov byte [rbp], 1
mov dword [rsp + 0x34], r12d
cmp dword [rbp + 0x30], edx
jg 0x1401380d7
lea rax, [rbp + 0x24]
mov r13, rax
cmp dword [rax], r12d
je 0x14013882a
mov qword [rsp + 0x50], r15
mov ebx, r8d
test r8d, r8d
je 0x14013882a
movsxd rdx, dword [rsi + 0x90]
mov r13, rax
mov dword [rsp + 0x40], edx
cmp dword [rsi + 0x94], edx
jg 0x1401387f4
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, ebx
mov edx, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.1400bb2e0
mov dword [rsp + 0x40], eax
jmp 0x14013881d
mov edx, dword [rsp + 0xb0]
mov rax, qword [r11]
mov r14d, r12d
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0x38], r12d
test dword [rax + 4], 0x1000000
mov r10, qword [rax + 0x20]
mov qword [rsp + 0x50], r10
je 0x1401381a7
mov rax, qword [rax + 0x40]
mov rbx, qword [rax + 0x48]
cmp dword [rbp + 0x24], r12d
je 0x14013817f
mov rax, qword [r11 + 8]
test byte [rax + 4], 0x20
je 0x14013817f
test r8d, r8d
je 0x14013817f
test edx, edx
jne 0x14013812b
inc dword [rdi + 0x3c]
mov edx, dword [rdi + 0x3c]
mov dword [rsp + 0xb0], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x140138151
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x50
mov rcx, rsi
call fcn.1400bb2e0
jmp 0x14013817f
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x50
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
dec dword [rdi + 0x48]
mov r9d, reloc.WS2_32.dll_recv
mov ebp, dword [rdi + 0x48]
mov rdx, rbx
mov r8d, ebp
mov dword [rsp + 0x3c], ebp
mov rcx, rdi
call fcn.1400f2020
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
cmp dword [r11 + 0x18], r12d
jl 0x140138410
cmp byte [r11 + 0x1d], r12b
mov rax, qword [r11]
mov r13d, dword [r10]
mov rcx, qword [rax + 0x10]
mov rbp, qword [rcx + 0x20]
mov eax, dword [rbp]
lea ecx, [rax + 1]
cmovne ecx, eax
cmp byte [r11 + 0x1c], r12b
lea ebx, [rcx + r13]
cmove ebx, ecx
cmp byte [r11 + 0x1e], r12b
je 0x1401381e0
add ebx, r13d
inc ebx
mov dword [rsp + 0x38], ebx
cmp ebx, 1
jne 0x14013820e
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401381fc
inc dword [rdi + 0x3c]
mov r15d, dword [rdi + 0x3c]
jmp 0x140138233
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r15d, dword [rdi + rax*4 + 0xe8]
jmp 0x140138233
mov ecx, dword [rdi + 0x2c]
mov r15d, dword [rdi + 0x30]
cmp ebx, ecx
jg 0x140138227
lea eax, [r15 + rbx]
sub ecx, ebx
mov dword [rdi + 0x30], eax
mov dword [rdi + 0x2c], ecx
jmp 0x140138233
mov eax, dword [rdi + 0x3c]
lea r15d, [rax + 1]
add eax, ebx
mov dword [rdi + 0x3c], eax
xor r9d, r9d
mov dword [rsp + 0x30], r15d
mov r8d, r15d
mov byte [rsp + 0x20], 1
mov rdx, rbp
mov rcx, rdi
mov r14d, r15d
call fcn.1400ee2e0
mov r11, qword [rsp + 0x48]
mov ebp, dword [rbp]
cmp byte [r11 + 0x1d], r12b
jne 0x1401382c2
movsxd rcx, dword [rsi + 0x90]
lea edx, [r15 + rbp]
mov r8d, dword [r11 + 0x18]
cmp dword [rsi + 0x94], ecx
jg 0x140138292
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x7e
mov rcx, rsi
call fcn.1400bb2e0
mov r11, qword [rsp + 0x48]
jmp 0x1401382c0
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
inc ebp
cmp byte [r11 + 0x1c], r12b
je 0x1401382f1
mov rdx, qword [rsp + 0x50]
lea r14d, [r15 + rbp]
mov r8d, r14d
mov dword [rsp + 0x30], r14d
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rcx, rdi
call fcn.1400ee2e0
mov r11, qword [rsp + 0x48]
add ebp, r13d
cmp byte [r11 + 0x1e], r12b
je 0x14013837f
cmp byte [r11 + 0x1c], r12b
mov ebx, r15d
cmovne ebx, r14d
test r13d, r13d
jle 0x14013837b
add ebp, r15d
mov r14, r13
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x14013833a
mov r9d, ebp
mov dword [rsp + 0x20], r12d
mov r8d, ebx
mov edx, 0xb5
mov rcx, rsi
call fcn.1400bb2e0
jmp 0x140138367
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0xb5
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
inc ebp
inc ebx
sub r14, 1
jne 0x140138311
mov r14d, dword [rsp + 0x30]
mov r11, qword [rsp + 0x48]
mov ebx, dword [rsp + 0x38]
mov r10, qword [rsp + 0x50]
cmp dword [r11 + 0x10], r12d
jl 0x1401383ca
test r10, r10
je 0x1401383ca
mov eax, dword [rsp + 0x3c]
test eax, eax
jne 0x1401383a1
dec dword [rdi + 0x48]
mov eax, dword [rdi + 0x48]
mov dword [rsp + 0x3c], eax
mov r8d, dword [r11 + 0x10]
mov r9d, eax
mov edx, dword [rsp + 0xc8]
mov rcx, rdi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r10
call fcn.1400a6830
mov r11, qword [rsp + 0x48]
mov dword [r11 + 0x10], eax
cmp dword [r11 + 0x18], r12d
jl 0x140138566
movsxd rcx, dword [rsi + 0x90]
lea ebp, [rbx - 1]
add ebp, r15d
dec ebx
cmp dword [rsi + 0x94], ecx
jg 0x1401384aa
mov r9d, ebx
mov dword [rsp + 0x20], ebp
mov r8d, r15d
mov edx, 0x61
mov rcx, rsi
call fcn.1400bb2e0
mov r11, qword [rsp + 0x48]
jmp 0x1401384d7
test r10, r10
je 0x14013849c
mov r13d, dword [r10]
cmp r13d, 1
jne 0x140138443
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x140138432
inc dword [rdi + 0x3c]
mov edx, dword [rdi + 0x3c]
jmp 0x14013846d
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov edx, dword [rdi + rax*4 + 0xe8]
jmp 0x14013846d
mov ecx, dword [rdi + 0x2c]
mov edx, dword [rdi + 0x30]
mov dword [rsp + 0x30], edx
cmp r13d, ecx
jg 0x140138461
lea eax, [rdx + r13]
sub ecx, r13d
mov dword [rdi + 0x30], eax
mov dword [rdi + 0x2c], ecx
jmp 0x140138471
mov eax, dword [rdi + 0x3c]
lea edx, [rax + 1]
add eax, r13d
mov dword [rdi + 0x3c], eax
mov dword [rsp + 0x30], edx
mov r14d, dword [rsp + 0x30]
xor r9d, r9d
mov r8d, r14d
mov byte [rsp + 0x20], 1
mov rdx, r10
mov rcx, rdi
mov r15d, r14d
call fcn.1400ee2e0
mov r11, qword [rsp + 0x48]
mov ebx, r12d
jmp 0x14013837f
mov r13d, r12d
mov r15d, r12d
mov ebx, r12d
jmp 0x140138384
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], r15d
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r12
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [r11 + 0x18]
cmp dword [rsi + 0x94], ecx
jg 0x140138508
mov r8d, edx
mov dword [rsp + 0x28], ebx
mov edx, 0x8a
mov dword [rsp + 0x20], r15d
mov r9d, ebp
mov rcx, rsi
call fcn.14009bbb0
jmp 0x140138534
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0xfd8a
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r15d
mov dword [rax + rcx*8 + 0x10], ebx
mov eax, dword [rsp + 0x38]
mov ebx, dword [rsp + 0xb0]
mov rbp, qword [rsp + 0xc0]
mov r14d, dword [rsp + 0x34]
cmp eax, 1
je 0x140138748
cmp eax, dword [rdi + 0x2c]
jle 0x140138770
mov dword [rdi + 0x2c], eax
jmp 0x14013876c
mov rax, qword [r11 + 8]
test byte [rax + 4], 0x20
je 0x140138679
mov r14, qword [rsp + 0x50]
mov rbp, r12
add r14, 8
mov ebx, r12d
cmp ebx, r13d
jge 0x1401385a3
mov rdx, qword [r14]
mov rcx, rdi
call fcn.1400f15a0
inc ebx
add r14, 0x20
mov rbp, rax
test rax, rax
je 0x140138583
jmp 0x1401385af
test rbp, rbp
jne 0x1401385af
mov rax, qword [rdi]
mov rbp, qword [rax + 0x10]
mov ebx, dword [rsp + 0xb0]
test ebx, ebx
jne 0x1401385d5
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x24], r12d
je 0x1401385d5
inc dword [rdi + 0x3c]
mov ebx, dword [rdi + 0x3c]
mov dword [rsp + 0xb0], ebx
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x140138600
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, ebx
mov edx, 0x55
mov rcx, rsi
call fcn.1400bb2e0
mov edx, eax
jmp 0x140138629
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x55
mov dword [rax + rcx*8 + 4], ebx
mov qword [rax + rcx*8 + 8], r12
mov qword [rax + rcx*8 + 0x10], r12
mov rax, qword [rsi]
cmp byte [rax + 0x67], r12b
jne 0x140138680
test edx, edx
jns 0x14013863e
mov edx, dword [rsi + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
cmp byte [rax + rcx*8 + 1], r12b
lea rdx, [rax + rcx*8]
je 0x14013866a
mov r9d, 0xfffffffe
mov r8, rbp
mov rcx, rsi
call fcn.14013a520
jmp 0x140138680
test rbp, rbp
je 0x140138680
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xfe
jmp 0x140138680
mov ebx, dword [rsp + 0xb0]
mov rbp, qword [rsp + 0xc0]
mov r14d, dword [rsp + 0x34]
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [rbp + 0x20]
add edx, dword [rbp + 0xc]
add edx, r14d
cmp dword [rsi + 0x94], ecx
jg 0x1401386be
mov dword [rsp + 0x20], edx
mov r9d, r15d
mov edx, 0xa2
xor r8d, r8d
mov rcx, rsi
call fcn.1400bb2e0
jmp 0x1401386e8
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov qword [rax + rcx*8], 0xa2
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r12
mov rcx, qword [rsi]
mov rdx, qword [rsp + 0x48]
mov rdx, qword [rdx + 8]
cmp byte [rcx + 0x67], r12b
je 0x140138707
test byte [rdx + 4], 0x10
je 0x140138723
call fcn.1400ea6d0
jmp 0x140138723
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf9
mov qword [rax + rcx*8 - 8], rdx
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x140138742
lea rcx, [rax + rax*2]
movzx edx, r13b
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
cmp r13d, 1
jne 0x140138762
test r15d, r15d
je 0x140138770
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x140138770
mov dword [rdi + rax*4 + 0xe8], r15d
inc byte [rdi + 0x1f]
jmp 0x140138770
cmp r13d, dword [rdi + 0x2c]
jle 0x140138770
mov dword [rdi + 0x2c], r13d
mov dword [rdi + 0x30], r15d
mov edx, dword [rsp + 0x3c]
test edx, edx
je 0x1401387a3
mov rcx, qword [rsi + 0x18]
not edx
mov eax, dword [rcx + 0x4c]
add eax, dword [rcx + 0x48]
jns 0x140138793
mov r8d, edx
mov rdx, rsi
call fcn.1400d4fb0
jmp 0x1401387a3
mov rcx, qword [rcx + 0x50]
mov eax, dword [rsi + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
cmp dword [rdi + 0x34], r12d
jne 0x14013892c
mov r11, qword [rsp + 0x48]
inc r14d
mov r8d, dword [rsp + 0xb8]
add r11, 0x20
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x48], r11
cmp r14d, dword [rbp + 0x30]
jl 0x1401380d0
test ebx, ebx
jne 0x1401387eb
lea r15, [rdi + 0x34]
mov qword [rsp + 0x50], r15
lea r14, [rdi + 0x10]
jmp 0x140138071
lea rax, [rbp + 0x24]
jmp 0x140138092
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], reloc.WS2_32.dll_recv
mov dword [rax + rcx*8 + 4], ebx
mov qword [rax + rcx*8 + 8], r12
mov qword [rax + rcx*8 + 0x10], r12
lea rax, [rdi + 0x34]
mov qword [rsp + 0x50], rax
lea r14, [rdi + 0x10]
mov r15, qword [rbp + 0x18]
cmp dword [r13], r12d
jle 0x1401388e6
add r15, 8
nop dword [rax]
mov ebp, dword [rbp + 0xc]
add ebp, r12d
cmp qword [r14], 0
je 0x1401388c3
mov rbx, qword [r15]
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1400efeb0
mov r8d, eax
cmp eax, ebp
je 0x1401388c3
test rbx, rbx
je 0x1401388b3
nop dword [rax]
mov ecx, dword [rbx + 4]
test ecx, 0x82000
je 0x14013889e
bt ecx, 0x13
jae 0x14013888b
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
jmp 0x140138894
cmp byte [rbx], 0x72
jne 0x140138899
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140138870
test rbx, rbx
je 0x1401388b3
test dword [rbx + 4], 0x400000
jne 0x1401388ac
cmp byte [rbx], 0xb0
jne 0x1401388b3
mov edx, 0x50
jmp 0x1401388b8
mov edx, 0x51
mov rcx, qword [r14]
mov r9d, ebp
call fcn.14011a580
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0
jne 0x14013892c
mov rbp, qword [rsp + 0xc0]
inc r12d
add r15, 0x18
cmp r12d, dword [r13]
jl 0x140138840
movsxd rcx, dword [rsp + 0x40]
mov byte [rbp], 0
test ecx, ecx
je 0x14013892c
mov edx, dword [rsi + 0x90]
lea eax, [rdx - 1]
cmp ecx, eax
jne 0x140138908
mov dword [rsi + 0x90], eax
jmp 0x14013892c
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
je 0x14013891a
lea rax, [0x14019e058]
jmp 0x140138929
mov rax, qword [rsi + 0x88]
lea rcx, [rcx + rcx*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rbx, qword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret