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

Disassembly:
push rbx
push rbp
push rdi
push r12
sub rsp, 0x108
mov rax, qword [rcx]
xor edi, edi
mov r10, qword [rcx + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
mov r12d, edi
movsxd rax, dword [rcx + 0x2c]
mov ebx, edi
movsxd r9, edx
imul rbp, r9, 0x898
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xc0], xmm0
lea r11, [r10 + rax*8]
mov dword [rsp + 0x44], edi
mov rax, qword [rcx + 0x1170]
add rbp, rcx
mov qword [rsp + 0x80], r10
mov qword [rsp + 0x88], r11
mov dword [rsp + 0xc0], 0x7d00
mov r8d, dword [rax + 0x38]
mov eax, 0x24924925
mul r8d
xor eax, eax
mov dword [rbp + 0x38], edi
sub r8d, edx
mov byte [rsp + 0x90], al
mov eax, dword [rbp + 0x58]
shr r8d, 1
add r8d, edx
cdq
shr r8d, 3
xor eax, edx
sub eax, edx
mov dword [rsp + 0x58], r8d
mov rdx, qword [rcx + 0x20]
movsxd rcx, dword [rcx + 0x1c]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x64], eax
lea r8, [rcx + rcx*2]
add r8, r8
lea rcx, [rdx + r8*8]
test r9d, r9d
jne 0x140070e39
cmp rdx, rcx
jae 0x140070e57
nop word [rax + rax]
movsx eax, word [rdx + 0xc]
mov dword [rdx + 0x18], eax
movsx eax, word [rdx + 0xe]
mov dword [rdx + 0x1c], eax
add rdx, 0x30
cmp rdx, rcx
jb 0x140070e20
jmp 0x140070e57
cmp rdx, rcx
jae 0x140070e57
nop
movsx eax, word [rdx + 0xe]
mov dword [rdx + 0x18], eax
movsx eax, word [rdx + 0xc]
mov dword [rdx + 0x1c], eax
add rdx, 0x30
cmp rdx, rcx
jb 0x140070e40
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0xf8], r13
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xe8], r15
cmp r10, r11
jae 0x1400715ae
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [r10]
mov r9d, 0x7d00
mov r15d, 0xffff8300
mov dword [rsp + 0x54], ecx
mov r10d, ecx
mov word [rsp + 0x140], cx
movzx r13d, cx
mov word [rsp + 0x148], cx
mov rax, qword [rdi + 0x28]
mov rsi, rcx
mov word [rsp + 0x30], cx
mov r11d, r9d
mov dword [rsp + 0x34], r9d
mov r8d, r15d
mov r14d, r9d
mov dword [rsp + 0x38], r9d
movsx ecx, byte [rax + 3]
mov r12d, r15d
mov eax, ecx
mov dword [rsp + 0x3c], r15d
neg eax
mov dword [rsp + 0x48], r9d
test cl, cl
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x5c], r9d
cmovns eax, ecx
mov dword [rsp + 0x60], r15d
cmp eax, dword [rsp + 0x50]
jne 0x140070f57
movsx ecx, byte [rdi + 3]
mov eax, ecx
neg eax
test cl, cl
cmovns eax, ecx
cmp eax, dword [rsp + 0x50]
jne 0x140070f57
mov qword [rsp + 0x130], rdi
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [rdi + 0x28]
movsx ecx, byte [rdi + 3]
mov eax, ecx
neg eax
test cl, cl
cmovns eax, ecx
cmp eax, dword [rsp + 0x50]
jne 0x140070f53
cmp rdi, qword [rsp + 0x130]
jne 0x140070f30
jmp 0x140070f57
mov rdi, qword [rdi + 0x20]
xor al, al
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x138], al
nop word [rax + rax]
mov word [rsp + 0x130], r13w
mov dword [rsp + 0x68], r11d
test r10d, r10d
je 0x14007132e
mov ecx, dword [rdi + 0x18]
mov eax, ecx
mov edx, dword [rdi + 0x1c]
cmp ecx, r9d
cmovge eax, r9d
cmp ecx, r15d
mov r9d, eax
mov dword [rsp + 0x34], eax
cmovle ecx, r15d
cmp edx, r11d
mov r15d, ecx
mov r10d, ecx
movzx ecx, word [rdi]
mov r11d, edx
cmovge r11d, dword [rsp + 0x68]
movzx eax, cx
movzx r13d, cx
cmovge r13w, word [rsp + 0x130]
cmp edx, r8d
cmovle ax, word [rsp + 0x140]
mov word [rsp + 0x140], ax
mov eax, edx
cmovle eax, r8d
mov r8d, eax
test cl, 3
jne 0x140071000
cmp edx, r14d
mov eax, edx
cmovge eax, r14d
mov r14d, eax
cmp edx, r12d
jle 0x140071000
mov r12d, edx
movsx eax, byte [rdi + 3]
cmp eax, dword [rsp + 0x64]
jne 0x140071015
cmp rdi, qword [rsp + 0x70]
jne 0x140071321
test rsi, rsi
je 0x14007127f
mov rcx, qword [rsi + 0x40]
cmp qword [rbx + 0x38], rcx
jne 0x14007127f
movzx eax, byte [rdi + 2]
cmp byte [rcx + 2], al
jne 0x14007111f
mov ecx, dword [rsp + 0x38]
cmp ecx, r9d
mov r15d, dword [rsp + 0x3c]
movzx eax, word [rsp + 0x148]
cmovge ecx, r9d
movzx edx, word [rsp + 0x30]
cmp r15d, r10d
mov dword [rsp + 0x34], ecx
cmovle r15d, r10d
mov qword [rsi + 0x40], rdi
cmp dword [rsp + 0x48], r11d
cmovge ax, r13w
movzx r13d, ax
mov eax, dword [rsp + 0x48]
cmovge eax, r11d
cmp dword [rsp + 0x4c], r8d
mov r11d, eax
mov eax, dword [rsp + 0x4c]
cmovle dx, word [rsp + 0x140]
cmovle eax, r8d
mov r8d, eax
mov word [rsp + 0x140], dx
mov eax, dword [rsp + 0x5c]
cmp eax, r14d
cmovge eax, r14d
mov r14d, eax
mov eax, dword [rsp + 0x60]
cmp eax, r12d
cmovle eax, r12d
mov r12d, eax
lea eax, [r15 + rcx]
sar eax, 1
mov word [rsi + 2], ax
mov eax, r15d
sub eax, ecx
sar eax, 1
mov word [rsi + 4], ax
movzx eax, dl
or al, r13b
test al, 3
je 0x1400710eb
mov eax, r12d
sub eax, r14d
cmp eax, dword [rsp + 0x58]
jge 0x1400710eb
or byte [rsi], 1
jmp 0x1400710ee
and byte [rsi], 0xfe
movzx eax, r8w
mov word [rsi + 6], r11w
sub ax, r11w
mov word [rsi + 8], r8w
mov word [rsi + 0xa], ax
dec dword [rbp + 0x38]
movzx eax, byte [rsp + 0x138]
xor ecx, ecx
mov r10d, ecx
mov dword [rsp + 0x54], ecx
mov ebx, ecx
jmp 0x140071330
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x48]
cdq
mov ecx, eax
mov eax, r8d
xor ecx, edx
sub eax, r11d
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
mov ecx, dword [rsp + 0x38]
jle 0x1400711a2
mov ebx, dword [rsp + 0x3c]
cmp r9d, ecx
mov qword [rsi + 0x40], rdi
cmovl ecx, r9d
mov dword [rsp + 0x34], r9d
cmp r10d, ebx
mov dword [rsp + 0x38], ecx
cmovg ebx, r10d
mov dword [rsp + 0x3c], ebx
lea eax, [rbx + rcx]
sar eax, 1
mov word [rsi + 2], ax
mov eax, ebx
sub eax, ecx
sar eax, 1
mov word [rsi + 4], ax
movzx eax, word [rsp + 0x140]
dec dword [rbp + 0x38]
xor ecx, ecx
mov word [rsp + 0x140], ax
movzx eax, byte [rsp + 0x138]
mov r10d, ecx
mov dword [rsp + 0x54], ecx
mov ebx, ecx
jmp 0x140071330
mov r15d, dword [rsp + 0x3c]
cmp ecx, r9d
movzx edx, word [rsp + 0x140]
cmovge ecx, r9d
mov qword [rbx + 0x40], rdi
cmp r15d, r10d
mov dword [rsp + 0x34], ecx
cmovle r15d, r10d
lea eax, [r15 + rcx]
sar eax, 1
mov word [rbx + 2], ax
mov eax, r15d
sub eax, ecx
sar eax, 1
mov word [rbx + 4], ax
movzx eax, dl
or al, r13b
test al, 3
je 0x1400711f3
mov eax, r12d
sub eax, r14d
cmp eax, dword [rsp + 0x58]
jge 0x1400711f3
or byte [rbx], 1
mov word [rbx + 6], r11w
movzx eax, r8w
mov word [rbx + 8], r8w
sub ax, r11w
mov word [rbx + 0xa], ax
movups xmm0, xmmword [rbx]
movzx eax, byte [rsp + 0x138]
mov dword [rsp + 0x38], ecx
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], r15d
movups xmm1, xmmword [rbx + 0x10]
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x4c], r8d
movups xmmword [rsi + 0x10], xmm1
mov word [rsp + 0x148], r13w
movups xmm0, xmmword [rbx + 0x20]
mov word [rsp + 0x30], dx
mov dword [rsp + 0x5c], r14d
movups xmmword [rsi + 0x20], xmm0
mov dword [rsp + 0x60], r12d
movups xmm1, xmmword [rbx + 0x30]
mov word [rsp + 0x140], dx
movups xmmword [rsi + 0x30], xmm1
movsd xmm0, qword [rbx + 0x40]
movsd qword [rsi + 0x40], xmm0
dec dword [rbp + 0x38]
xor ecx, ecx
mov r10d, ecx
mov dword [rsp + 0x54], ecx
mov ebx, ecx
jmp 0x140071330
movzx edx, word [rsp + 0x140]
lea eax, [r15 + r9]
sar eax, 1
mov word [rbx + 2], ax
mov eax, r10d
sub eax, r9d
mov qword [rbx + 0x40], rdi
sar eax, 1
mov word [rbx + 4], ax
movzx eax, dl
or al, r13b
test al, 3
je 0x1400712ba
mov eax, r12d
sub eax, r14d
cmp eax, dword [rsp + 0x58]
jge 0x1400712ba
or byte [rbx], 1
movzx eax, r8w
mov word [rbx + 6], r11w
sub ax, r11w
mov word [rbx + 8], r8w
xor ecx, ecx
mov word [rbx + 0xa], ax
movzx eax, byte [rsp + 0x138]
mov rsi, rbx
mov dword [rsp + 0x3c], r10d
mov ebx, ecx
mov r10d, ecx
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x4c], r8d
mov word [rsp + 0x148], r13w
mov word [rsp + 0x30], dx
mov dword [rsp + 0x5c], r14d
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x34], r9d
mov word [rsp + 0x140], dx
jmp 0x140071330
mov r10d, dword [rsp + 0x54]
movzx eax, byte [rsp + 0x138]
xor ecx, ecx
cmp rdi, qword [rsp + 0x70]
jne 0x140071348
test al, al
jne 0x140071587
mov al, 1
mov byte [rsp + 0x138], al
test r10d, r10d
jne 0x140071579
movsx edx, byte [rdi + 3]
mov eax, edx
mov byte [rsp + 0x130], dl
neg eax
test dl, dl
cmovns eax, edx
cmp eax, dword [rsp + 0x50]
je 0x140071375
cmp rdi, qword [rdi + 0x28]
jne 0x140071571
mov eax, dword [rbp + 0x38]
cmp eax, 0x3e8
ja 0x140071632
xor ecx, ecx
mov dword [rsp + 0x64], edx
mov dword [rsp + 0x44], ecx
mov r12d, ecx
mov dword [rsp + 0x40], ecx
mov ebx, ecx
cmp eax, 0x12
jae 0x1400713b9
cmp qword [rbp + 0x40], rcx
jne 0x140071497
lea rax, [rbp + 0x60]
mov dword [rbp + 0x3c], reloc.WS2_32.dll_select
mov qword [rbp + 0x40], rax
jmp 0x140071497
mov r8d, dword [rbp + 0x3c]
cmp eax, r8d
jb 0x140071497
cmp r8d, 0x1c71c71
jb 0x1400713e4
mov r12d, 0x40
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x40], r12d
jmp 0x1400714b6
mov r14d, r8d
shr r14d, 2
add r14d, 4
add r14d, r8d
cmp r14d, r8d
jb 0x140071400
cmp r14d, 0x1c71c71
jbe 0x140071406
mov r14d, 0x1c71c71
mov rax, qword [rbp + 0x40]
lea r15, [rbp + 0x60]
mov r9d, r14d
mov edx, 0x48
cmp rax, r15
jne 0x140071467
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x78]
call fcn.1400691e0
mov r12d, dword [rsp + 0x40]
mov qword [rbp + 0x40], rax
mov dword [rsp + 0x44], r12d
test r12d, r12d
jne 0x1400714ac
mov rcx, rax
mov rdx, r15
mov r8d, 0x510
call sub.VCRUNTIME140.dll_memcpy
mov r12d, dword [rsp + 0x40]
mov dword [rsp + 0x44], r12d
jmp 0x140071493
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.1400691e0
mov r12d, dword [rsp + 0x40]
mov qword [rbp + 0x40], rax
mov dword [rsp + 0x44], r12d
test r12d, r12d
jne 0x1400714ac
mov dword [rbp + 0x3c], r14d
mov edx, dword [rbp + 0x38]
mov rax, qword [rbp + 0x40]
lea rcx, [rdx + rdx*8]
lea rbx, [rax + rcx*8]
lea eax, [rdx + 1]
mov dword [rbp + 0x38], eax
movzx edx, byte [rsp + 0x130]
xor ecx, ecx
test r12d, r12d
jne 0x14007166a
movaps xmm0, xmmword [rsp + 0x90]
lea rax, [rbx - 0x48]
movups xmmword [rbx], xmm0
test rsi, rsi
movaps xmm0, xmmword [rsp + 0xc0]
xorps xmm1, xmm1
movups xmmword [rbx + 0x10], xmm1
cmove rax, rsi
movups xmmword [rbx + 0x20], xmm1
mov rsi, rax
movups xmmword [rbx + 0x30], xmm0
mov byte [rbx + 1], dl
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
movzx r9d, word [rdi]
mov r15d, dword [rdi + 0x18]
movzx r13d, r9w
mov r8d, dword [rdi + 0x1c]
mov r11d, r8d
mov dword [rsp + 0x34], r15d
mov word [rsp + 0x140], r9w
test r9b, 3
je 0x14007152f
mov r14d, 0x7d00
mov r12d, 0xffff8300
jmp 0x140071535
mov r12d, r8d
mov r14d, r8d
mov r10d, 1
mov dword [rsp + 0x54], r10d
cmp rdi, qword [rdi + 0x28]
jne 0x140071571
mov word [rbx + 2], r15w
test byte [rdi], 3
je 0x140071553
or byte [rbx], r10b
movzx eax, word [rdi + 0x1c]
mov r10d, ecx
mov word [rbx + 6], ax
movzx eax, word [rdi + 0x1c]
mov word [rbx + 8], ax
mov word [rbx + 0xa], cx
mov rbx, rcx
mov dword [rsp + 0x54], ecx
movzx eax, byte [rsp + 0x138]
mov rdi, qword [rdi + 0x20]
mov r9d, dword [rsp + 0x34]
jmp 0x140070f70
mov r10, qword [rsp + 0x80]
add r10, 8
mov qword [rsp + 0x80], r10
cmp r10, qword [rsp + 0x88]
jb 0x140070e90
mov r12d, dword [rsp + 0x44]
mov r8, qword [rbp + 0x40]
test r8, r8
je 0x14007166a
mov eax, dword [rbp + 0x38]
lea rcx, [rax + rax*8]
lea rdx, [r8 + rcx*8]
cmp r8, rdx
jae 0x14007166a
sub rdx, r8
lea rcx, [r8 + 0xa]
dec rdx
movabs rax, 0xe38e38e38e38e38f
mul rdx
mov rbx, rdx
shr rbx, 6
inc rbx
mov rax, qword [rcx + 0x2e]
mov r11, qword [rcx + 0x36]
mov r9d, dword [rax + 0x1c]
mov rax, qword [rax + 0x28]
mov r8d, dword [r11 + 0x1c]
mov r10d, dword [rax + 0x1c]
cmp r9d, r8d
jge 0x14007163b
cmp r10d, r9d
jge 0x14007161c
sub r9d, r10d
sar r9d, 1
add word [rcx], r9w
mov rax, qword [r11 + 0x20]
mov edx, dword [rax + 0x1c]
cmp edx, r8d
jle 0x140071660
sub edx, r8d
sar edx, 1
add word [rcx], dx
jmp 0x140071660
xor edi, edi
mov dword [rbp + 0x38], edi
xor eax, eax
jmp 0x14007166d
cmp r10d, r9d
jle 0x14007164a
sub r10d, r9d
sar r10d, 1
add word [rcx], r10w
mov rax, qword [r11 + 0x20]
mov edx, dword [rax + 0x1c]
cmp edx, r8d
jge 0x140071660
sub r8d, edx
sar r8d, 1
add word [rcx], r8w
add rcx, 0x48
sub rbx, 1
jne 0x1400715f0
mov eax, r12d
mov r15, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xf0]
mov r13, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0x100]
add rsp, 0x108
pop r12
pop rdi
pop rbp
pop rbx
ret