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

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x70
mov eax, dword [rcx + 0x50]
mov rdi, qword [rdx + 0x18]
mov r10, qword [rcx]
mov dword [rsp + 0xa0], eax
inc eax
mov ebp, r8d
mov dword [rsp + 0xb8], eax
inc eax
mov r15, rdx
mov dword [rcx + 0x50], eax
mov r9, qword [rdx + 0x30]
mov rsi, rcx
mov qword [rsp + 0xa8], rdi
mov ebx, 0xfff0bdc0
test r9, r9
je 0x140082294
movsxd rdx, dword [r10 + 0x28]
xor ebx, ebx
test edx, edx
jle 0x140082294
mov rax, qword [r10 + 0x20]
xor ecx, ecx
add rax, 0x18
cmp qword [rax], r9
je 0x140082294
inc rcx
inc ebx
add rax, 0x20
cmp rcx, rdx
jl 0x140082281
mov rax, qword [r10 + 0x20]
mov r8, qword [r15]
xor r9d, r9d
movsxd rcx, ebx
lea edx, [r9 + 0x1b]
shl rcx, 5
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.14007d740
test eax, eax
jne 0x14008273a
mov rax, qword [rdi]
mov r8d, dword [rdi + 0x3c]
mov r9b, 1
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14007d800
mov rcx, rsi
call fcn.14009d090
mov rdi, rax
test rax, rax
je 0x14008273a
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
mov r12d, ebp
test ebp, ebp
jns 0x140082309
mov r12d, dword [r15 + 0x58]
mov rdx, r15
mov rcx, rsi
call fcn.140085150
mov r13d, dword [rsi + 0x50]
lea ecx, [r13 + 1]
mov rbp, rax
mov dword [rsi + 0x50], ecx
test rax, rax
je 0x140082329
inc dword [rax]
xor r9d, r9d
mov r8d, r13d
mov rcx, rdi
lea edx, [r9 + 0x38]
mov dword [rsp + 0x20], 0
call fcn.1400608a0
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x1400823a0
cmp byte [rcx + 0x50], 0
jne 0x1400823a0
test eax, eax
jns 0x14008235e
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea r14, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [r14 + 0x10]
call fcn.140060e70
xor eax, eax
mov qword [r14 + 0x10], rax
test rbp, rbp
jne 0x14008238c
mov qword [r14 + 0x10], rax
mov byte [r14 + 1], al
jmp 0x1400823ad
mov qword [r14 + 0x10], rbp
mov byte [r14 + 1], 0xfa
jmp 0x1400823ad
mov r8, rbp
mov edx, 0xfffffffa
call fcn.140060e70
mov r9, qword [rsp + 0xa8]
mov edx, dword [rsp + 0xa0]
mov r8d, ebx
mov rcx, rsi
mov dword [rsp + 0x20], 0x34
call fcn.14008eb90
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
lea edx, [r9 + 0x69]
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.1400608a0
movzx ecx, byte [rsi + 0x1f]
mov dword [rsp + 0xa8], eax
test cl, cl
jne 0x140082406
inc dword [rsi + 0x54]
mov r14d, dword [rsi + 0x54]
jmp 0x140082413
dec cl
movzx eax, cl
mov byte [rsi + 0x1f], al
mov r14d, dword [rsi + rax*4 + 0x24]
mov r8d, dword [rsp + 0xa0]
xor ecx, ecx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov r9d, r14d
mov rdx, r15
mov rcx, rsi
call fcn.1400877d0
mov r9d, r14d
mov r8d, r13d
mov edx, 0x6a
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.1400608a0
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.140087a50
mov r9d, dword [rsp + 0xa8]
mov r8d, dword [rsp + 0xa0]
inc r9d
mov edx, 9
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.1400608a0
mov edx, dword [rdi + 0x3c]
mov eax, dword [rsp + 0xa8]
cmp edx, eax
jbe 0x1400824ab
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
cmp dword [rsp + 0xb0], 0
mov dword [rax + 0x64], ecx
jge 0x1400824dc
mov r9d, ebx
mov r8d, r12d
mov edx, 0x73
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.1400608a0
mov r8d, dword [rsp + 0xb8]
mov r9d, r12d
mov edx, 0x35
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.1400608a0
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x140082550
cmp byte [rcx + 0x50], 0
jne 0x140082550
test eax, eax
jns 0x140082513
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.140060e70
xor r9d, r9d
mov qword [rbx + 0x10], r9
test rbp, rbp
jne 0x140082542
mov qword [rbx + 0x10], r9
mov byte [rbx + 1], r9b
jmp 0x140082560
mov qword [rbx + 0x10], rbp
mov byte [rbx + 1], 0xfa
jmp 0x140082560
mov r8, rbp
mov edx, 0xfffffffa
call fcn.140060e70
xor r9d, r9d
mov r8, qword [rdi + 8]
mov eax, 2
test r8, r8
je 0x14008258c
cmp dword [rsp + 0xb0], 0
mov edx, r9d
cmovge edx, eax
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
or dl, 1
mov byte [r8 + rcx*8 - 0x15], dl
mov dword [rsp + 0x20], r9d
xor r9d, r9d
mov r8d, r13d
lea edx, [r9 + 0x67]
mov rcx, rdi
call fcn.1400608a0
cmp byte [r15 + 0x62], 0
mov r12d, eax
je 0x14008261b
test rbp, rbp
je 0x14008261b
mov ebx, dword [rdi + 0x3c]
xor r8d, r8d
mov rcx, rdi
lea r9d, [rbx + 3]
lea edx, [r8 + 0x10]
mov dword [rsp + 0x20], 0
call fcn.1400608a0
mov eax, dword [rdi + 0x3c]
movzx ecx, word [rbp + 6]
mov dword [rsp + 0xa8], eax
movzx eax, word [r15 + 0x5e]
lea r9d, [rbx + 3]
sub ecx, eax
mov r8d, r13d
mov edx, 0x54
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov dword [rsp + 0x20], r14d
call fcn.140060a80
mov r8, r15
mov edx, 2
mov rcx, rsi
call fcn.1400846e0
mov ebx, dword [rsp + 0xa8]
jmp 0x14008261e
mov ebx, dword [rdi + 0x3c]
xor r15d, r15d
mov r9d, r14d
mov r8d, r13d
lea edx, [r15 + 0x5f]
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.1400608a0
mov ebp, dword [rsp + 0xb8]
lea edx, [r15 + 0x6b]
mov r8d, ebp
mov r9d, r14d
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.1400608a0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x14008266f
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x10
test r14d, r14d
je 0x1400826a9
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x1400826a9
mov ecx, r15d
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], r14d
je 0x1400826a5
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140082687
movzx eax, dl
mov dword [rsi + rax*4 + 0x24], r14d
inc byte [rsi + 0x1f]
jmp 0x1400826a9
mov byte [rax + 6], 1
mov r9d, ebx
mov r8d, r13d
mov edx, 5
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.1400608a0
mov edx, dword [rdi + 0x3c]
mov r14, qword [rsp + 0x58]
cmp edx, r12d
jbe 0x1400826da
mov rax, qword [rdi + 8]
lea rcx, [r12 + r12*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
mov r8d, dword [rsp + 0xa0]
dec ecx
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov dword [rax + 0x64], ecx
lea edx, [r9 + 0x3a]
mov rcx, rdi
call fcn.1400608a0
xor r9d, r9d
mov r8d, ebp
lea edx, [r9 + 0x3a]
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.1400608a0
xor r9d, r9d
mov r8d, r13d
lea edx, [r9 + 0x3a]
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.1400608a0
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x70
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret