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

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rdi, rdx
mov ebp, r8d
mov rsi, rcx
xor edx, edx
mov r8d, 0xb8
mov rcx, rdi
mov ebx, r9d
call sub.msvcrt.dll_memset
mov dword [rdi], ebp
mov dword [rdi + 0x48], ebx
mov eax, dword [rsi + 0x84]
xor r8d, r8d
add eax, eax
sar eax, 0x1f
xor eax, dword [rdi + 0xb0]
and eax, 1
xor dword [rdi + 0xb0], eax
cmp dword [rsi + 0xc], r8d
jbe 0x10013b04a
xor edx, edx
mov rax, qword [rsi + 0x20]
mov rcx, qword [rdx + rax]
cmp ebp, dword [rcx + 4]
jne 0x10013b03d
cmp dword [rcx + 0x38], 0xffffffff
jne 0x10013b03d
mov eax, dword [rcx + 0xc]
cmp eax, dword [rdi + 0x44]
jb 0x10013b02b
inc eax
mov dword [rdi + 0x44], eax
mov eax, dword [rdi + 0x80]
mov dword [rcx + 0x80], eax
inc dword [rdi + 0x80]
inc r8d
add rdx, 8
cmp r8d, dword [rsi + 0xc]
jb 0x10013b00b
mov ecx, dword [rdi + 0x44]
mov r15d, 4
lea rbx, [0x100002840]
mov rax, r15
lea r12, [r15 - 5]
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x18], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x44]
mov rax, r15
shl ecx, 2
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x20], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x44]
mov rax, r15
shl ecx, 2
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x28], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x44]
mov rax, r15
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 8], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x44]
mov rax, r15
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x10], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x48]
mov rax, r15
shl ecx, 2
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x30], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x48]
mov rax, r15
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x38], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x44]
mov rax, r15
shl ecx, 2
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x50], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x44]
mov rax, r15
shl ecx, 2
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x58], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x44]
mov rax, r15
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x68], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x44]
mov rax, r15
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x70], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x80]
mov rax, r15
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x88], rax
test rax, rax
je 0x10013b90e
mov ecx, dword [rdi + 0x80]
mov rax, r15
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x90], rax
test rax, rax
je 0x10013b90e
xor r14d, r14d
mov r8d, dword [rdi + 0x44]
mov rcx, qword [rdi + 0x50]
xor edx, edx
shl r8d, 2
shl r8, 2
call sub.msvcrt.dll_memset
xor r8d, r8d
xor r11d, r11d
mov dword [rsp + 0x98], r11d
mov dword [rsp + 0x80], r8d
cmp dword [rsi + 0x10], r8d
jbe 0x10013b505
xor r15d, r15d
mov qword [rsp + 0x28], r15
mov rax, qword [rsi + 0x28]
mov r13, qword [r15 + rax]
mov rcx, r13
call fcn.100150100
test eax, eax
je 0x10013b4ce
mov rax, qword [r13 + 0x18]
mov ecx, dword [rax]
mov rax, qword [rsi + 0x20]
mov rcx, qword [rax + rcx*8]
cmp ebp, dword [rcx + 4]
jne 0x10013b4ce
mov ebp, dword [r13]
mov eax, dword [r13 + 4]
xor edx, edx
and ebp, 0xfffff
div ebp
mov dword [rsp + 0x88], ebp
test eax, eax
je 0x10013b4c7
mov ecx, eax
xor r15d, r15d
or r11d, 0xffffffff
mov qword [rsp + 0x20], rcx
mov rax, qword [r13 + 8]
lea r12, [rax + r15*4]
cmp dword [r12], r11d
je 0x10013b319
mov rax, qword [rsi + 0x20]
mov ecx, dword [r12]
mov rcx, qword [rax + rcx*8]
mov eax, dword [rcx + 0x38]
cmp eax, r11d
jne 0x10013b31d
mov eax, dword [r12]
mov r8, qword [rsi + 0x20]
mov rcx, qword [r8 + rax*8]
mov rax, qword [rsi + 0x18]
mov ecx, dword [rcx + 4]
mov rcx, qword [rax + rcx*8]
bt dword [rcx + 8], 0x11
jae 0x10013b364
cmp dword [r12], r11d
je 0x10013b34d
mov eax, dword [r12]
mov rcx, qword [r8 + rax*8]
mov eax, dword [rcx + 0x38]
cmp eax, r11d
jne 0x10013b351
mov eax, dword [r12]
mov rcx, qword [r8 + rax*8]
mov rax, qword [rsi + 0x28]
mov ecx, dword [rcx + 0x48]
mov rcx, qword [rax + rcx*8]
mov r12, qword [rcx + 8]
cmp dword [r12], r11d
je 0x10013b37a
mov eax, dword [r12]
mov rcx, qword [r8 + rax*8]
mov eax, dword [rcx + 0x38]
cmp eax, r11d
jne 0x10013b37e
mov eax, dword [r12]
mov rcx, qword [r8 + rax*8]
mov eax, dword [rsp + 0x90]
cmp eax, dword [rcx + 4]
jne 0x10013b4ab
xor r10d, r10d
xor edx, edx
test ebp, ebp
je 0x10013b4ab
mov r9, r12
cmp dword [r9], r11d
je 0x10013b3b6
mov eax, dword [r9]
mov rcx, qword [r8 + rax*8]
mov eax, dword [rcx + 0x38]
cmp eax, r11d
jne 0x10013b3b9
mov eax, dword [r9]
mov rcx, qword [r8 + rax*8]
mov eax, 1
mov ecx, dword [rcx + 0x10]
shl eax, cl
test r10d, eax
jne 0x10013b3d9
inc edx
or r10d, eax
add r9, 4
cmp edx, ebp
jb 0x10013b3a2
cmp edx, ebp
jb 0x10013b4ab
mov ebx, ebp
mov ebp, dword [rsp + 0x98]
xor r9d, r9d
mov rax, qword [r13 + 0x18]
mov rdx, qword [rsi + 0x20]
mov ecx, dword [r9 + rax]
mov r8, qword [rdx + rcx*8]
cmp dword [r9 + r12], r11d
je 0x10013b413
mov eax, dword [r9 + r12]
mov rcx, qword [rdx + rax*8]
mov eax, dword [rcx + 0x38]
cmp eax, r11d
jne 0x10013b417
mov eax, dword [r9 + r12]
mov rdx, qword [rdx + rax*8]
mov ecx, dword [r8 + 0xc]
mov eax, dword [r8 + 0x10]
lea r10d, [rax + rcx*4]
mov ecx, dword [rdx + 0xc]
mov eax, dword [rdx + 0x10]
lea r11d, [rax + rcx*4]
cmp r10d, r11d
je 0x10013b486
cmp dword [r8 + 0x3c], 0
jne 0x10013b486
cmp r14d, 1
jne 0x10013b473
mov rax, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x50]
mov edx, dword [rax + r10*4]
mov rax, qword [rdi + 0x60]
add edx, dword [rcx + r10*4]
mov dword [rax + rdx*4], r11d
mov rax, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x50]
mov edx, dword [rax + r11*4]
mov rax, qword [rdi + 0x60]
add edx, dword [rcx + r11*4]
mov dword [rax + rdx*4], r10d
mov rax, qword [rdi + 0x50]
inc dword [rax + r10*4]
mov rax, qword [rdi + 0x50]
inc dword [rax + r11*4]
add ebp, 2
add r9, 4
sub rbx, 1
mov r11d, 0xffffffff
jne 0x10013b3ed
mov dword [rsp + 0x98], ebp
mov ebp, dword [rsp + 0x88]
or r11d, r11d
add r15d, ebp
sub qword [rsp + 0x20], 1
jne 0x10013b2f7
mov r15, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x80]
mov ebp, dword [rsp + 0x90]
inc r8d
add r15, 8
mov dword [rsp + 0x80], r8d
mov qword [rsp + 0x28], r15
cmp r8d, dword [rsi + 0x10]
jb 0x10013b299
mov r11d, dword [rsp + 0x98]
mov r15d, 4
lea rbx, [0x100002840]
or r12, 0xffffffffffffffff
test r14d, r14d
jne 0x10013b55f
mov eax, dword [rdi + 0x44]
xor edx, edx
xor r8d, r8d
shl eax, 2
test eax, eax
je 0x10013b53a
xor ecx, ecx
mov rax, qword [rdi + 0x58]
inc r8d
mov dword [rcx + rax], edx
mov rax, qword [rdi + 0x50]
add edx, dword [rcx + rax]
mov eax, dword [rdi + 0x44]
add rcx, r15
shl eax, 2
cmp r8d, eax
jb 0x10013b51b
mov ecx, r11d
mov rax, r15
mul rcx
mov rdx, rbx
cmovo rax, r12
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x60], rax
test rax, rax
je 0x10013b90e
inc r14d
cmp r14d, 2
jb 0x10013b25a
xor ebx, ebx
mov r8d, dword [rdi + 0x44]
mov rcx, qword [rdi + 0x68]
xor edx, edx
shl r8, 2
call sub.msvcrt.dll_memset
xor r9d, r9d
mov dword [rsp + 0x98], r9d
cmp dword [rsi + 0x10], r9d
jbe 0x10013b716
xor r15d, r15d
mov qword [rsp + 0x80], r15
mov rax, qword [rsi + 0x28]
mov r14, qword [r15 + rax]
mov r11d, dword [r14]
mov eax, r11d
and eax, 0xfff00000
cmp eax, 0x70700000
ja 0x10013b5e0
je 0x10013b60c
cmp eax, 0x50300000
je 0x10013b60c
cmp eax, 0x70100000
je 0x10013b60c
cmp eax, 0x70200000
je 0x10013b60c
cmp eax, 0x70500000
je 0x10013b60c
cmp eax, 0x70600000
jmp 0x10013b5fa
cmp eax, 0x70b00000
je 0x10013b60c
cmp eax, 0x70c00000
je 0x10013b60c
cmp eax, 0x70d00000
je 0x10013b60c
cmp eax, 0x71000000
je 0x10013b60c
test dword [rsi + 0x84], 0x80000000
je 0x10013b6ee
mov rax, qword [r14 + 0x18]
mov ecx, dword [rax]
mov rax, qword [rsi + 0x20]
mov r8, qword [rax + rcx*8]
cmp ebp, dword [r8 + 4]
jne 0x10013b6ee
mov eax, dword [r14 + 4]
movsxd r13, dword [r8 + 0xc]
and r11d, 0xfffff
xor edx, edx
div r11d
test eax, eax
je 0x10013b6ee
mov r15d, dword [rsp + 0x90]
xor r10d, r10d
mov ebp, eax
mov rax, qword [r14 + 8]
mov edx, dword [rax + r10*4]
cmp edx, 0xffffffff
je 0x10013b66a
mov rax, qword [rsi + 0x20]
mov rcx, qword [rax + rdx*8]
mov eax, dword [rcx + 0x38]
cmp eax, 0xffffffff
jne 0x10013b66c
mov eax, edx
mov ecx, eax
mov rax, qword [rsi + 0x20]
mov r9, qword [rax + rcx*8]
cmp r15d, dword [r9 + 4]
jne 0x10013b6d1
cmp r13d, dword [r9 + 0xc]
je 0x10013b6d1
cmp ebx, 1
jne 0x10013b6be
mov rax, qword [rdi + 0x68]
mov rcx, qword [rdi + 0x70]
mov edx, dword [rax + r13*4]
mov eax, dword [r9 + 0xc]
add edx, dword [rcx + r13*4]
mov rcx, qword [rdi + 0x78]
mov dword [rcx + rdx*4], eax
mov r8d, dword [r9 + 0xc]
mov rax, qword [rdi + 0x68]
mov edx, dword [rax + r8*4]
mov rcx, qword [rdi + 0x70]
mov rax, qword [rdi + 0x78]
add edx, dword [rcx + r8*4]
mov dword [rax + rdx*4], r13d
mov rax, qword [rdi + 0x68]
inc dword [rax + r13*4]
mov ecx, dword [r9 + 0xc]
mov rax, qword [rdi + 0x68]
inc dword [rax + rcx*4]
add r10d, r11d
sub rbp, 1
jne 0x10013b64d
mov r15, qword [rsp + 0x80]
mov r9d, dword [rsp + 0x98]
mov ebp, dword [rsp + 0x90]
inc r9d
add r15, 8
mov dword [rsp + 0x98], r9d
mov qword [rsp + 0x80], r15
cmp r9d, dword [rsi + 0x10]
jb 0x10013b5a1
mov r15d, 4
test ebx, ebx
jne 0x10013b775
xor edx, edx
xor r8d, r8d
cmp dword [rdi + 0x44], edx
jbe 0x10013b746
xor ecx, ecx
mov rax, qword [rdi + 0x70]
inc r8d
mov dword [rcx + rax], edx
mov rax, qword [rdi + 0x68]
add edx, dword [rax + rcx]
add rcx, r15
cmp r8d, dword [rdi + 0x44]
jb 0x10013b72c
mov ecx, edx
mov rax, r15
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x100002840]
cmovo rax, rcx
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x78], rax
test rax, rax
je 0x10013b90e
inc ebx
cmp ebx, 2
jae 0x10013b788
mov ebp, dword [rsp + 0x90]
jmp 0x10013b56e
mov r8d, dword [rdi + 0x80]
mov rcx, qword [rdi + 0x88]
xor edx, edx
shl r8, 2
call sub.msvcrt.dll_memset
xor ebp, ebp
cmp dword [rsi + 0x10], ebp
jbe 0x10013b87a
xor r14d, r14d
mov rax, qword [rsi + 0x28]
mov rbx, qword [r14 + rax]
test dword [rbx], 0xfff00000
je 0x10013b86b
xor r12d, r12d
cmp dword [rbx + 0x10], r12d
jbe 0x10013b803
xor r13d, r13d
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax + r13]
mov rax, qword [rsi + 0x20]
mov rcx, qword [rax + rcx*8]
mov r8d, dword [rcx + 0x14]
cmp r8d, 0xffffffff
je 0x10013b7f7
mov r9d, ebp
mov rdx, rdi
mov rcx, rsi
call fcn.10013add0
inc r12d
add r13, r15
cmp r12d, dword [rbx + 0x10]
jb 0x10013b7cf
xor r13d, r13d
cmp dword [rbx + 4], r13d
jbe 0x10013b831
xor r12d, r12d
mov rax, qword [rbx + 8]
mov r9d, ebp
mov rdx, rdi
mov r8d, dword [rax + r12]
mov rcx, rsi
call fcn.10013add0
inc r13d
add r12, r15
cmp r13d, dword [rbx + 4]
jb 0x10013b80f
mov rcx, rbx
call fcn.100150084
test eax, eax
je 0x10013b86b
xor r13d, r13d
cmp dword [rbx + 0x10], r13d
jbe 0x10013b86b
xor r12d, r12d
mov rax, qword [rbx + 0x18]
mov r9d, ebp
mov rdx, rdi
mov r8d, dword [rax + r12]
mov rcx, rsi
call fcn.10013add0
inc r13d
add r12, r15
cmp r13d, dword [rbx + 0x10]
jb 0x10013b849
inc ebp
add r14, 8
cmp ebp, dword [rsi + 0x10]
jb 0x10013b7af
xor edx, edx
xor r9d, r9d
cmp dword [rdi + 0x80], edx
jbe 0x10013b8b7
xor r8d, r8d
mov rax, qword [rdi + 0x90]
mov dword [r8 + rax], edx
mov rax, qword [rdi + 0x88]
mov eax, dword [r8 + rax]
add eax, edx
cmp eax, edx
jb 0x10013b90e
inc r9d
add r8, r15
mov edx, eax
cmp r9d, dword [rdi + 0x80]
jb 0x10013b88a
mov ebx, edx
mov rax, r15
mov rsi, 0xffffffffffffffff
mul rbx
lea rdx, [0x100002840]
cmovo rax, rsi
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0x98], rax
test rax, rax
je 0x10013b90e
lea eax, [rsi + 0xd]
mul rbx
lea rdx, [0x100002840]
cmovo rax, rsi
mov rcx, rax
call fcn.10007b104
mov qword [rdi + 0xa0], rax
test rax, rax
je 0x10013b90e
xor eax, eax
jmp 0x10013b913
mov eax, 0x8007000e
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret