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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rax, qword [rcx]
mov rdi, rcx
mov r12d, dword [rdx + 0x34]
mov rbp, rdx
mov esi, dword [rdx + 0x38]
mov ecx, 1
mov qword [rsp + 0x38], rax
add esi, r12d
movsx eax, word [rdx + 0x118]
mov word [rsp + 0xa0], ax
mov dword [rsp + 0xb0], eax
mov eax, dword [rdx + 0x80]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0xb8], r12d
test r12d, r12d
jne 0x1401038cd
test esi, esi
jle 0x1401038cd
add esi, ecx
mov eax, dword [rdi + 0x90]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
shl ecx, 3
lea rdx, [rsp + 0x30]
movsxd r13, ecx
sub eax, ecx
add r13, qword [rdi + 0x88]
mov rcx, rdi
movsxd r14, eax
mov qword [rsp + 0x48], r13
and r14, 0xfffffffffffffff8
call fcn.1400d2124
xor r9d, r9d
cmp byte [rbp + 0x20], r9b
je 0x140103914
lea eax, [r9 + 0x40]
cmp byte [rbp + 0x21], r9b
jne 0x140103917
mov eax, r9d
mov ecx, dword [rdi + 0xc8]
and ecx, 0xffffffbf
or ecx, eax
mov dword [rdi + 0xc8], ecx
movzx eax, byte [rbp + 0x11b]
test al, al
je 0x1401039db
mov edx, 0xa
cmp esi, edx
cmovl esi, edx
shl eax, 2
xor eax, ecx
and eax, 0xc
xor eax, ecx
lea ecx, [rdx - 2]
lea edx, [rcx - 4]
mov dword [rdi + 0xc8], eax
mov bl, byte [rbp + 0x11b]
mov r12d, ecx
cmp bl, 2
cmovne edx, ecx
cmovne r12d, r9d
mov rcx, rdi
call fcn.140105874
mov eax, 0xc
cmp bl, 2
mov r15d, r12d
lea ecx, [rax - 4]
cmovne eax, ecx
mov qword [rsp + 0x40], rax
cmp r12, rax
jae 0x1401039d0
mov ebx, r12d
lea r13d, [rcx - 7]
mov ebp, eax
and qword [rsp + 0x20], 0
lea r9, str.addr
mov r9, qword [r9 + rbx*8]
mov edx, r15d
sub edx, r12d
xor r8d, r8d
mov rcx, rdi
call fcn.140105834
add r15d, r13d
add rbx, r13
cmp rbx, rbp
jl 0x140103996
mov rbp, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x48]
mov r12d, dword [rsp + 0xb8]
xor r9d, r9d
and dword [rdi + 0xc8], 0xfffffffc
mov rdx, r9
movsxd rax, esi
imul r15, rax, 0x38
cmp r15, r14
jg 0x1401039ff
mov rdx, r13
mov rbx, r9
sub rdx, r15
add rdx, r14
jmp 0x140103a02
mov rbx, r15
movsxd r8, dword [rsp + 0xb0]
mov rcx, r14
sub rcx, r15
mov qword [rdi + 0x68], rdx
cmp r15, r14
mov rdx, r9
cmovg rcx, r14
imul rax, r8, 0x38
mov qword [rsp + 0xa8], rax
cmp rax, rcx
jg 0x140103a38
sub rcx, rax
lea rdx, [rcx + r13]
jmp 0x140103a3b
add rbx, rax
movsxd r14, dword [rsp + 0x30]
mov rax, r9
shl r14, 3
mov qword [rdi + 0x80], rdx
cmp r14, rcx
jg 0x140103a5e
mov rax, r13
sub rax, r14
add rax, rcx
jmp 0x140103a61
add rbx, r14
mov rdx, rcx
movsxd r12, r12d
sub rdx, r14
mov qword [rdi + 0x70], rax
cmp r14, rcx
mov rax, r9
cmovg rdx, rcx
shl r12, 3
cmp r12, rdx
jg 0x140103a8c
mov rax, rdx
sub rax, r12
add rax, r13
jmp 0x140103a8f
add rbx, r12
mov r13, qword [rsp + 0x38]
mov qword [rdi + 0x78], rax
test rbx, rbx
je 0x140103b3b
mov rdx, rbx
mov rcx, r13
call fcn.1400de430
xor r9d, r9d
mov qword [rdi + 0xf8], rax
mov rcx, rax
cmp byte [r13 + 0x61], r9b
jne 0x140103b33
mov rax, qword [rdi + 0x68]
test rax, rax
jne 0x140103ad4
cmp r15, rbx
jg 0x140103ad4
sub rbx, r15
lea rax, [rcx + rbx]
mov qword [rdi + 0x68], rax
mov rax, qword [rdi + 0x80]
test rax, rax
jne 0x140103af8
mov rdx, qword [rsp + 0xa8]
cmp rdx, rbx
jg 0x140103af8
sub rbx, rdx
lea rax, [rbx + rcx]
mov qword [rdi + 0x80], rax
mov rax, qword [rdi + 0x70]
test rax, rax
jne 0x140103b14
cmp r14, rbx
jg 0x140103b14
sub rbx, r14
lea rax, [rbx + rcx]
mov qword [rdi + 0x70], rax
mov rax, qword [rdi + 0x78]
test rax, rax
jne 0x140103b2f
cmp r12, rbx
jg 0x140103b2f
mov rax, rcx
sub rax, r12
add rax, rbx
mov qword [rdi + 0x78], rax
mov r8d, dword [rsp + 0xb0]
mov rax, qword [rbp + 0x130]
mov qword [rdi + 0xb0], rax
mov qword [rbp + 0x130], r9
cmp byte [r13 + 0x61], r9b
je 0x140103b62
and qword [rdi + 0x28], 0
mov word [rdi + 0x20], r9w
jmp 0x140103be0
mov eax, dword [rsp + 0xb8]
mov ecx, 1
mov dword [rdi + 0x2c], eax
movzx eax, word [rsp + 0xa0]
mov word [rdi + 0x20], ax
mov rax, qword [rdi + 0x80]
test r8d, r8d
jle 0x140103ba4
add rax, 8
sub r8d, ecx
mov qword [rax + 0x20], r13
mov word [rax], cx
mov dword [rax + 0x18], r9d
lea rax, [rax + 0x38]
test r8d, r8d
jg 0x140103b8d
mov rax, qword [rdi + 0x68]
mov dword [rdi + 0x28], esi
test esi, esi
jle 0x140103bcf
add rax, 8
sub esi, ecx
mov qword [rax + 0x20], r13
mov word [rax], 0x80
mov ecx, 1
mov dword [rax + 0x18], r9d
lea rax, [rax + 0x38]
test esi, esi
jg 0x140103bb3
mov rcx, qword [rdi + 0x78]
mov r8, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
or dword [rdi + 0x34], 0xffffffff
and qword [rdi + 0x38], 0
mov dword [rdi + 0x24], 0x2df20da3
mov word [rdi + 0xc2], 0xff02
mov dword [rdi + 0x30], 1
mov dword [rdi + 0x40], r9d
mov qword [rdi + 0x50], r9
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret