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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe8
mov rax, qword [rcx]
mov r10, rdx
mov r9d, dword [rcx + 0x24]
mov r11, r8
movsx ecx, word [rdx + 2]
xor edx, edx
mov qword [rbp + 7], rax
mov rsi, qword [rax + 0xa0]
mov r12, qword [rax + 0x410]
lea r15d, [rcx + 4]
mov dword [rsp + 0x48], ecx
mov qword [rbp - 0x69], rdx
mov rdi, qword [rsi + 0x30]
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x61], rdx
mov qword [rbp - 0x49], rdx
mov qword [rbp - 0x41], rdx
mov qword [rbp - 1], r12
mov dword [rsp + 0x34], edx
mov qword [rbp - 0x19], rdx
mov qword [rbp - 0x29], rdx
mov qword [rbp - 0x79], rdx
cmp byte [rax + 0x409], dl
je 0x14013ecea
test r12, r12
je 0x14013ecea
test r15d, r15d
je 0x14013e3d2
mov r8d, r15d
mov rax, qword [r10 + 8]
mov ecx, dword [rdx + rax]
shl ecx, 6
mov dword [rdx + r11], ecx
lea rdx, [rdx + 8]
mov rax, qword [r10 + 8]
mov ecx, dword [rdx + rax - 4]
shl ecx, 6
mov dword [rdx + r11 - 4], ecx
sub r8, 1
jne 0x14013e3a8
xor edx, edx
cmp r9d, dword [r12 + 0x78]
jae 0x14013ece6
mov rcx, qword [r12 + 0x80]
lea eax, [r9 + 1]
mov ebx, eax
mov r13, r9
mov eax, dword [rcx + rax*4]
cmp dword [rcx + r9*4], eax
je 0x14013ece6
xor r8d, r8d
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov r9d, r15d
mov qword [rsp + 0x20], rdx
mov rcx, rdi
lea edx, [r8 + 8]
call fcn.1400fdab4
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x39], rax
test r14d, r14d
jne 0x14013ecab
lea rax, [rbp + 0x7f]
mov r9d, r15d
mov qword [rsp + 0x28], rax
lea edx, [r14 + 8]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.1400fdab4
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x69], rax
test r14d, r14d
jne 0x14013ecab
lea rax, [rbp + 0x7f]
mov r9d, r15d
mov qword [rsp + 0x28], rax
lea edx, [r14 + 1]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.1400fdab4
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x61], rax
test r14d, r14d
jne 0x14013ecab
mov rcx, qword [r12 + 0x80]
mov edx, dword [rcx + r13*4]
mov ebx, dword [rcx + rbx*4]
mov rcx, rsi
sub ebx, edx
call fcn.1400fcff8
mov r14d, eax
test eax, eax
jne 0x14013ecab
mov edx, ebx
mov rcx, rsi
call fcn.1400fd18c
mov dword [rbp + 0x7f], eax
mov r14d, eax
test eax, eax
jne 0x14013ecab
mov r13d, dword [rsi + 0x38]
lea rax, [rbp + 0x7f]
mov r9d, dword [r12]
lea edx, [r14 + 4]
sub r13d, dword [rsi]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rdi
and qword [rsp + 0x20], 0
call fcn.1400fdab4
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x71], rax
test r14d, r14d
jne 0x14013ec6d
mov r9d, dword [r12]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea edx, [r14 + 4]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.1400fdab4
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x49], rax
test r14d, r14d
jne 0x14013ec6d
mov r9d, dword [r12]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea edx, [r14 + 4]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.1400fdab4
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x41], rax
test r14d, r14d
jne 0x14013ec6d
mov rcx, rsi
call fcn.1400fd2ac
movzx r10d, ax
call fcn.1400fd2ac
movzx ecx, ax
cmp ecx, ebx
ja 0x14013ec67
mov eax, r10d
and eax, 0xfff
mov dword [rsp + 0x44], eax
shl eax, 2
cmp eax, ebx
ja 0x14013ec67
add ecx, r13d
mov dword [rsp + 0x30], ecx
bt r10d, 0xf
jae 0x14013e609
mov ebx, dword [rsi + 0x38]
mov eax, dword [rsi + 0x40]
sub ebx, dword [rsi]
sub eax, dword [rsi]
cmp ecx, eax
jae 0x14013e5c2
mov eax, ecx
add rax, qword [rsi]
jmp 0x14013e5c6
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x38], rax
lea r8, [rsp + 0x34]
mov edx, dword [r12 + 0x88]
mov rcx, rsi
call fcn.14013a960
mov ecx, dword [rsi + 0x40]
mov r13d, dword [rsi + 0x38]
sub r13d, dword [rsi]
sub ecx, dword [rsi]
mov qword [rbp - 0x19], rax
mov dword [rsp + 0x30], r13d
cmp ebx, ecx
jae 0x14013e5ff
mov ecx, ebx
add rcx, qword [rsi]
jmp 0x14013e603
mov rcx, qword [rsi + 0x40]
mov qword [rsi + 0x38], rcx
jmp 0x14013e60c
mov r13d, ecx
xor r8d, r8d
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov r9d, r15d
and qword [rsp + 0x20], 0
mov rcx, rdi
lea edx, [r8 + 4]
call fcn.1400fdab4
mov r14d, dword [rbp + 0x7f]
mov rbx, rax
mov qword [rbp - 0x51], rax
test r14d, r14d
jne 0x14013ec29
lea rax, [rbp + 0x7f]
mov r9d, r15d
mov qword [rsp + 0x28], rax
lea edx, [r14 + 4]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.1400fdab4
mov r14d, dword [rbp + 0x7f]
mov r10, rax
mov qword [rbp - 0x79], rax
test r14d, r14d
jne 0x14013ec29
test r15d, r15d
je 0x14013e6b0
mov r9, qword [rbp + 0x6f]
xor edx, edx
mov r11, qword [rbp - 0x39]
mov r8d, r15d
mov rax, qword [r9 + 8]
mov ecx, dword [rdx + rax]
shl ecx, 0x10
mov dword [rdx + r11], ecx
lea rdx, [rdx + 8]
mov rax, qword [r9 + 8]
mov ecx, dword [rdx + rax - 4]
shl ecx, 0x10
mov dword [rdx + r11 - 4], ecx
sub r8, 1
jne 0x14013e688
and dword [rsp + 0x40], 0
cmp dword [rsp + 0x44], 0
jbe 0x14013eabe
mov rcx, rsi
call fcn.1400fd2ac
mov word [rbp + 0x7f], ax
call fcn.1400fd2ac
movzx ebx, ax
bt ebx, 0xf
jae 0x14013e704
mov r11, qword [rbp - 0x71]
xor r10d, r10d
cmp dword [r12], r10d
jbe 0x14013e73b
mov rcx, rsi
call fcn.1400fd2ac
movsx ecx, ax
shl ecx, 2
mov dword [r11 + r10*4], ecx
inc r10d
cmp r10d, dword [r12]
jb 0x14013e6e7
jmp 0x14013e73b
mov ecx, ebx
and ecx, 0xfff
cmp ecx, dword [r12 + 0x68]
jae 0x14013eaea
mov eax, dword [r12]
imul ecx, eax
mov r8d, eax
mov rax, qword [r12 + 0x70]
shl r8, 2
lea rdx, [rax + rcx*4]
mov rcx, qword [rbp - 0x71]
call sub.VCRUNTIME140.dll_memcpy
mov r11, qword [rbp - 0x71]
bt ebx, 0xe
jae 0x14013e79c
mov eax, dword [r12]
xor r10d, r10d
test eax, eax
je 0x14013e772
mov rdi, qword [rbp - 0x49]
mov rcx, rsi
call fcn.1400fd2ac
movsx ecx, ax
shl ecx, 2
mov dword [rdi + r10*4], ecx
inc r10d
mov eax, dword [r12]
cmp r10d, eax
jb 0x14013e750
mov rdi, qword [rbp - 0x59]
xor r10d, r10d
test eax, eax
je 0x14013e79c
mov rdi, qword [rbp - 0x41]
mov rcx, rsi
call fcn.1400fd2ac
movsx ecx, ax
shl ecx, 2
mov dword [rdi + r10*4], ecx
inc r10d
cmp r10d, dword [r12]
jb 0x14013e77d
mov rdi, qword [rbp - 0x59]
mov rax, qword [rbp - 0x41]
mov r8, r11
mov r9, qword [rbp - 0x49]
movzx edx, bx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14013c67c
mov dword [rsp + 0x3c], eax
test eax, eax
je 0x14013ea92
mov eax, dword [rsi + 0x38]
sub eax, dword [rsi]
mov ecx, dword [rsi + 0x40]
sub ecx, dword [rsi]
mov dword [rbp - 0x31], eax
cmp r13d, ecx
jae 0x14013e7dd
mov eax, r13d
add rax, qword [rsi]
jmp 0x14013e7e1
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x38], rax
bt ebx, 0xd
jae 0x14013e80e
mov edx, dword [r12 + 0x88]
lea r8, [rsp + 0x38]
mov rcx, rsi
call fcn.14013a960
mov r13d, dword [rsp + 0x38]
mov rcx, rax
mov qword [rbp - 0x29], rax
jmp 0x14013e81c
mov r13d, dword [rsp + 0x34]
mov rcx, qword [rbp - 0x19]
mov dword [rsp + 0x38], r13d
mov edx, dword [r12 + 0x88]
test r13d, r13d
mov qword [rbp - 0x11], rcx
mov ebx, r13d
cmove ebx, r15d
mov rcx, rsi
mov r8d, ebx
call fcn.14013aaf8
mov edx, dword [r12 + 0x88]
mov r8d, ebx
mov rcx, rsi
mov qword [rbp - 0x21], rax
call fcn.14013aaf8
mov r9, qword [rbp - 0x11]
mov qword [rbp - 9], rax
test r9, r9
je 0x14013ea33
test rax, rax
je 0x14013ea33
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14013ea33
cmp r9, 0xffffffffffffffff
jne 0x14013e90e
test r15d, r15d
je 0x14013ea33
mov rdx, qword [rbp - 0x51]
mov r11, rcx
mov r9, qword [rbp - 0x79]
mov rbx, rax
movsxd r13, dword [rsp + 0x3c]
sub r11, rax
sub rbx, rdx
mov edi, r15d
sub r9, rdx
mov r10, rdx
mov r8d, dword [r9 + r10]
lea rax, [rbx + r10]
movsxd rcx, dword [rax + r11]
movsxd rdx, dword [rax]
imul rdx, r13
imul rcx, r13
mov rax, rcx
shr rax, 0x3f
sub rcx, rax
mov rax, rdx
shr rax, 0x3f
add rcx, 0x8000
sub rdx, rax
sar rcx, 0x10
add dword [r10], ecx
add rdx, 0x8000
sar rdx, 0x10
add edx, r8d
mov dword [r9 + r10], edx
lea r10, [r10 + 4]
sub rdi, 1
jne 0x14013e8b0
mov rdi, qword [rbp - 0x59]
jmp 0x14013ea33
test r15d, r15d
je 0x14013e944
mov rcx, qword [rbp - 0x69]
mov r8, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x61]
sub r8, rcx
mov r10d, r15d
mov byte [rdx], 0
inc rdx
mov rax, qword [r8 + rcx]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub r10, 1
jne 0x14013e925
mov rax, qword [rbp - 9]
mov rcx, qword [rbp - 0x21]
test r13d, r13d
je 0x14013e9d0
mov rdi, qword [rbp - 0x69]
mov r11, rcx
mov r12, qword [rbp - 0x61]
sub r11, rax
mov ebx, r13d
mov r10, rax
movsxd r13, dword [rsp + 0x3c]
movzx eax, word [r9]
cmp eax, r15d
jae 0x14013e9ba
movzx r8d, word [r9]
mov byte [r8 + r12], 1
movsxd rcx, dword [r10 + r11]
imul rcx, r13
mov rax, rcx
shr rax, 0x3f
sub rcx, rax
add rcx, 0x8000
sar rcx, 0x10
add dword [rdi + r8*8], ecx
movsxd rcx, dword [r10]
imul rcx, r13
mov rax, rcx
shr rax, 0x3f
sub rcx, rax
add rcx, 0x8000
sar rcx, 0x10
add dword [rdi + r8*8 + 4], ecx
add r9, 2
add r10, 4
sub rbx, 1
jne 0x14013e966
mov rdi, qword [rbp - 0x59]
mov r12, qword [rbp - 1]
mov rbx, qword [rbp - 0x39]
mov r13, qword [rbp - 0x69]
mov r8, rbx
mov r9, qword [rbp - 0x61]
mov rdx, r13
mov rcx, qword [rbp + 0x6f]
call fcn.14013e104
test r15d, r15d
je 0x14013ea33
mov r8, qword [rbp - 0x79]
lea r9, [rbx + 4]
mov r11, qword [rbp - 0x51]
mov r10, r13
sub r10, rbx
mov ebx, r15d
sub r11, r8
mov ecx, dword [r10 + r9]
sub ecx, dword [r9]
mov edx, dword [r8]
mov eax, dword [r10 + r9 - 4]
sub eax, dword [r9 - 4]
lea r9, [r9 + 8]
add dword [r11 + r8], eax
lea eax, [rcx + rdx]
mov dword [r8], eax
lea r8, [r8 + 4]
sub rbx, 1
jne 0x14013ea08
mov rcx, qword [rbp - 0x29]
cmp rcx, 0xffffffffffffffff
je 0x14013ea51
test rcx, rcx
je 0x14013ea4b
mov rdx, rcx
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
xor ecx, ecx
mov qword [rbp - 0x29], rcx
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x14013ea63
mov rdx, rax
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov rdx, qword [rbp - 9]
test rdx, rdx
je 0x14013ea72
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov eax, dword [rsi + 0x40]
sub eax, dword [rsi]
mov ecx, dword [rbp - 0x31]
cmp ecx, eax
jae 0x14013ea85
mov eax, ecx
add rax, qword [rsi]
jmp 0x14013ea89
mov rax, qword [rsi + 0x40]
mov r13d, dword [rsp + 0x30]
mov qword [rsi + 0x38], rax
mov r11d, dword [rsp + 0x40]
movzx eax, word [rbp + 0x7f]
inc r11d
add r13d, eax
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x30], r13d
cmp r11d, dword [rsp + 0x44]
jb 0x14013e6c0
mov rbx, qword [rbp - 0x51]
mov r10, qword [rbp - 0x79]
mov r13, qword [rbp + 7]
test byte [r13 + 0x418], 2
je 0x14013eaf5
mov r12d, dword [rsp + 0x48]
lea eax, [r15 - 3]
and dword [rbx + r12*4], 0
and dword [r10 + r12*4], 0
and dword [rbx + rax*4], 0
and dword [r10 + rax*4], 0
jmp 0x14013eafa
mov r14d, 8
jmp 0x14013ec29
mov r12d, dword [rsp + 0x48]
test byte [r13 + 0x418], 0x10
je 0x14013eb1e
lea eax, [r15 - 2]
and dword [rbx + rax*4], 0
and dword [r10 + rax*4], 0
lea eax, [r15 - 1]
and dword [rbx + rax*4], 0
and dword [r10 + rax*4], 0
mov r11, qword [rbp + 0x6f]
test r15d, r15d
je 0x14013eb8f
mov r9, rbx
xor edx, edx
mov rbx, qword [rbp + 0x77]
sub r9, r10
mov r8, r10
mov r10d, r15d
mov eax, dword [r9 + r8]
add eax, 0x200
sar eax, 0xa
add dword [rdx + rbx], eax
mov eax, dword [r8]
add eax, 0x200
sar eax, 0xa
add dword [rdx + rbx + 4], eax
mov eax, dword [r9 + r8]
mov rcx, qword [r11 + 8]
add eax, 0x8000
shr eax, 0x10
cwde
add dword [rdx + rcx], eax
lea rdx, [rdx + 8]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov rcx, qword [r11 + 8]
add eax, 0x8000
shr eax, 0x10
cwde
add dword [rdx + rcx - 4], eax
sub r10, 1
jne 0x14013eb39
jmp 0x14013eb93
mov rbx, qword [rbp + 0x77]
test byte [r13 + 0x418], 2
mov r9, qword [rbp + 0x67]
jne 0x14013ebda
mov rax, qword [r11 + 8]
lea edx, [r15 - 3]
mov r8d, r12d
mov rcx, qword [rax + r8*8]
mov qword [r9 + 0x58], rcx
mov rax, qword [r11 + 8]
mov rcx, qword [rax + rdx*8]
mov qword [r9 + 0x60], rcx
mov eax, dword [rbx + rdx*8]
sub eax, dword [rbx + r8*8]
add eax, 0x20
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov dword [r9 + 0x50], eax
test byte [r13 + 0x418], 0x10
jne 0x14013ec29
mov rax, qword [r11 + 8]
lea edx, [r15 - 1]
lea r8d, [r15 - 2]
mov rcx, qword [rax + r8*8]
mov qword [r9 + 0x110], rcx
mov rax, qword [r11 + 8]
mov rcx, qword [rax + rdx*8]
mov qword [r9 + 0x118], rcx
mov eax, dword [rbx + rdx*8 + 4]
sub eax, dword [rbx + r8*8 + 4]
add eax, 0x20
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov dword [r9 + 0x10c], eax
mov rax, qword [rbp - 0x51]
test rax, rax
je 0x14013ec3b
mov rdx, rax
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x14013ec4d
mov rdx, rax
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov rax, qword [rbp - 0x19]
cmp rax, 0xffffffffffffffff
je 0x14013ec6d
test rax, rax
je 0x14013ec6d
mov rdx, rax
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
jmp 0x14013ec6d
mov r14d, 8
mov rbx, qword [rbp - 0x71]
test rbx, rbx
je 0x14013ec7f
mov rdx, rbx
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x14013ec91
mov rdx, rax
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x14013eca3
mov rdx, rax
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov rcx, rsi
call fcn.1400fd274
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x14013ecbd
mov rdx, rbx
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov rax, qword [rbp - 0x69]
test rax, rax
je 0x14013eccf
mov rdx, rax
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x14013ece1
mov rdx, rax
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_recv]
mov eax, r14d
jmp 0x14013ecef
xor eax, eax
jmp 0x14013ecef
mov eax, 6
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret