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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor ebx, ebx
xor r15d, r15d
mov rbp, qword [rcx]
mov rsi, qword [rcx + 0x10]
mov rax, qword [rbp]
mov rdi, qword [rbp + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 8]
mov r12, rdx
mov r13, rcx
mov dword [rsp + 0x8c], 0
mov qword [rsp + 0x50], rax
movzx eax, byte [rsi + 0x10]
mov r10, rax
mov dword [rsp + 0x68], eax
movzx eax, al
imul rax, rax, 0x68
imul r10, r10, 0x68
lea rdx, [rdi + rax + 8]
mov rax, qword [rbp + 0x10]
add r10, rdi
mov qword [rsp + 0x60], rax
mov rax, qword [r10 + 0x28]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x50]
mov r11, qword [rax + 0x20]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x58], eax
cmp r15d, dword [rsp + 0x58]
jge 0x140217b09
mov ax, word [r11 + 0x12]
mov ecx, dword [r10 + 0x4c]
mov r14d, eax
and r14d, 0xffffffbf
mov word [r11 + 0x12], r14w
cmp dword [r11 + 0x1c], ecx
jne 0x140217b00
mov rcx, r8
and rcx, qword [r11 + 0x28]
jne 0x140217b00
movzx ecx, word [r11 + 0x14]
and ecx, 0xf7ff
je 0x140217b00
test al, 0x80
jne 0x140217b00
test byte [r10 + 0x44], 0x58
je 0x140217af5
mov rcx, qword [r11]
mov qword [rsp + 0xf0], r8
call fcn.14017a860
mov r8, qword [rsp + 0xf0]
test eax, eax
je 0x140217b00
or r14d, 0x40
inc ebx
mov word [r11 + 0x12], r14w
inc r15d
add r11, 0x38
jmp 0x140217a96
cmp qword [rsp + 0x60], 0
jne 0x140217b20
mov dword [rsp + 0x58], 0
xor edi, edi
jmp 0x140217c12
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x58], 0
mov eax, dword [rax]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x60]
lea r14, [rax + 8]
movsxd rax, dword [rsp + 0x68]
imul rax, rax, 0x68
add rdi, rax
mov edx, dword [rsp + 0x58]
cmp dword [rsp + 0x7c], edx
jle 0x140217bec
mov r15, qword [r14]
mov rcx, r15
call fcn.1401cbbd0
test eax, eax
je 0x140217b6f
inc dword [rsp + 0x58]
add r14, 0x20
jmp 0x140217b48
test byte [r14 + 0x10], 2
jne 0x140217b11
mov al, byte [r15]
cmp al, 0xa7
jne 0x140217b86
mov eax, dword [rdi + 0x4c]
cmp dword [r15 + 0x2c], eax
jmp 0x140217be1
cmp al, 0x71
jne 0x140217b11
mov rax, qword [r15 + 0x10]
cmp byte [rax], 0xa7
jne 0x140217b11
mov ecx, dword [rdi + 0x4c]
cmp dword [rax + 0x2c], ecx
jne 0x140217b11
movsx rcx, word [rax + 0x30]
mov word [r15 + 0x30], cx
test cx, cx
js 0x140217b65
mov rax, qword [rsp + 0x70]
imul rcx, rcx, 0x18
add rcx, qword [rax + 8]
call fcn.1401c3c30
mov r8, rax
test rax, rax
jne 0x140217bd3
lea r8, str.BINARY
mov rcx, qword [r15 + 8]
mov rdx, r8
call fcn.14020af40
test eax, eax
jne 0x140217b11
jmp 0x140217b65
jne 0x140217b11
mov edi, dword [rbp + 0x3c]
test dil, 0x80
je 0x140217c0b
and di, 0x200
cmp di, 1
sbb edi, edi
add edi, 3
jmp 0x140217c12
shr di, 6
and edi, 1
movsxd rbx, ebx
movsxd r15, dword [rsp + 0x58]
imul rax, rbx, 0x1c
shl r15, 3
lea rdx, [r15 + rax + 0x88]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call fcn.1401c5ef0
mov r14, rax
test rax, rax
jne 0x140217c55
mov rcx, qword [rsp + 0x48]
lea rdx, [0x14029b930]
call fcn.1401c84b0
jmp 0x140217e2c
lea rbp, [rax + rbx*8 + 0x80]
mov word [rsp + 0x68], 0
xor r10d, r10d
imul rbx, rbx, 0xc
mov qword [rax + 8], rbp
add rbx, rbp
add r15, rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r15
mov rax, qword [rsp + 0x50]
mov r15d, 1
mov dword [r14 + 0x74], 0
mov qword [r14 + 0x60], rax
mov rax, qword [rsp + 0x48]
mov dword [r14 + 0x70], edi
xor edi, edi
mov qword [r14 + 0x68], rax
mov rax, qword [rsp + 0x50]
mov r11, qword [rax + 0x20]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x70], eax
cmp edi, dword [rsp + 0x70]
jge 0x140217d8f
mov ax, word [r11 + 0x12]
test al, 0x40
je 0x140217d84
movsxd r9, r10d
mov edx, dword [r11 + 0x20]
imul r9, r9, 0xc
add r9, rbp
mov dword [r9], edx
mov edx, dword [r11 + 0x14]
mov dword [r9 + 8], edi
and dx, 0x3fff
cmp dx, 1
jne 0x140217d19
mov edx, 2
test ax, ax
js 0x140217d25
mov eax, dword [r14 + 0x74]
xor edx, edx
cmp r10d, 0x1f
jg 0x140217d0c
mov edx, r15d
mov ecx, r10d
shl edx, cl
or eax, edx
mov edx, 2
mov dword [r14 + 0x74], eax
jmp 0x140217d25
cmp dx, 0x40
jne 0x140217d25
mov al, byte [r11 + 0x17]
jmp 0x140217d37
test dx, 0x180
je 0x140217d3d
cmp dx, 0x100
setne al
add eax, 0x47
mov byte [r9 + 4], al
jmp 0x140217d81
mov byte [r9 + 4], dl
test dl, 0x3c
je 0x140217d81
mov rax, qword [r11]
mov rcx, qword [rax + 0x18]
call fcn.1401cbc80
test eax, eax
je 0x140217d81
cmp r10d, 0xf
jg 0x140217d69
mov eax, r15d
mov ecx, r10d
shl eax, cl
or word [rsp + 0x68], ax
cmp dx, 0x10
jne 0x140217d76
mov byte [r9 + 4], 8
jmp 0x140217d81
cmp dx, 4
jne 0x140217d81
mov byte [r9 + 4], 0x20
inc r10d
inc edi
add r11, 0x38
jmp 0x140217cb3
movsxd rdi, dword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov dword [r14], r10d
xor r15d, r15d
shl rdi, 5
lea rax, [rbp + rdi]
mov qword [rsp + 0x58], rax
cmp rbp, qword [rsp + 0x58]
je 0x140217de3
mov rdi, qword [rbp + 8]
mov rcx, rdi
call fcn.1401cbbd0
test eax, eax
jne 0x140217ddd
movsxd rax, r15d
inc r15d
lea rdx, [rbx + rax*8]
movsx eax, word [rdi + 0x30]
mov dword [rdx], eax
mov al, byte [rbp + 0x18]
and eax, 1
mov byte [rdx + 4], al
add rbp, 0x20
jmp 0x140217dad
mov dword [r14 + 0x10], r15d
mov rdx, rsi
and byte [rsi + 0x1c], 0xfe
mov eax, dword [r14]
mov word [rsi + 0x12], 0
mov dword [rsp + 0x58], eax
mov r8d, eax
mov rax, qword [rsp + 0x48]
mov dword [rsi + 0x38], 0x400
mov word [rsi + 0x3c], 0
mov rcx, qword [rax]
call fcn.140218b10
test eax, eax
je 0x140217e36
mov rax, qword [rsp + 0x48]
mov rdx, r14
mov rcx, qword [rax]
call fcn.140181680
mov eax, 7
jmp 0x14021809c
movzx edi, word [rsp + 0x68]
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, r12
lea rax, [rsp + 0x8c]
lea rbx, [rsp + 0x88]
or r8, 0xffffffffffffffff
mov rcx, r13
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edi
call fcn.1402180b0
cmp dword [rsp + 0x8c], 0
je 0x140217ea3
mov qword [rsp + 0x30], rbx
xor r9d, r9d
or r8, 0xffffffffffffffff
mov rdx, r12
mov qword [rsp + 0x38], 0
mov rcx, r13
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
call fcn.1402180b0
test eax, eax
jne 0x14021806c
mov rbp, r12
mov eax, dword [rsp + 0x88]
not rbp
mov rcx, rbp
and rcx, qword [rsi]
mov qword [rsp + 0x68], rcx
jne 0x140217ece
test eax, eax
jne 0x140217ede
jmp 0x14021806c
mov qword [rsp + 0x60], 0
xor r11d, r11d
test eax, eax
je 0x140217f1d
mov qword [rsp + 0x30], rbx
or r8, 0xffffffffffffffff
mov rdx, r12
mov rcx, r13
mov dword [rsp + 0x28], edi
mov r9d, 1
mov rbx, rbp
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], r14
call fcn.1402180b0
and rbx, qword [rsi]
mov qword [rsp + 0x60], rbx
sete r11b
movzx r11d, r11b
lea rbx, [rsp + 0x88]
mov r15d, r11d
xor r8d, r8d
mov qword [rsp + 0x70], rbx
test eax, eax
jne 0x140217fee
xor ecx, ecx
or rbx, 0xffffffffffffffff
cmp dword [rsp + 0x58], ecx
jle 0x140217f7c
imul rdx, rcx, 0xc
add rdx, qword [r14 + 8]
mov r10, qword [rsp + 0x50]
movsxd rdx, dword [rdx + 8]
imul rdx, rdx, 0x38
add rdx, qword [r10 + 0x20]
mov r9, qword [rdx + 0x28]
and r9, rbp
mov rdx, r9
cmp r8, r9
jae 0x140217f71
cmp rbx, r9
ja 0x140217f74
mov rdx, rbx
inc rcx
mov rbx, rdx
jmp 0x140217f3e
cmp rbx, 0xffffffffffffffff
je 0x140217fee
cmp rbx, qword [rsp + 0x68]
je 0x140217fe6
cmp rbx, qword [rsp + 0x60]
je 0x140217fe6
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x28], edi
mov r8, rbx
xor r9d, r9d
mov qword [rsp + 0x20], r14
or r8, r12
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x7c], r11d
call fcn.1402180b0
cmp qword [rsi], r12
mov r11d, dword [rsp + 0x7c]
jne 0x140217fe6
cmp dword [rsp + 0x88], 0
mov edx, 1
mov r11d, 1
cmove r15d, edx
mov r8, rbx
jmp 0x140217f30
or r11d, eax
jne 0x140218034
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov rdx, r12
mov r8, r12
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], r14
mov rcx, r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
call fcn.1402180b0
cmp dword [rsp + 0x88], 0
mov edx, 1
cmove r15d, edx
or r15d, eax
jne 0x14021806c
mov dword [rsp + 0x28], edi
mov r9d, 1
mov r8, r12
mov rdx, r12
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], r14
mov rcx, r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
call fcn.1402180b0
cmp dword [r14 + 0x38], 0
je 0x140218084
mov rcx, qword [r14 + 0x30]
mov dword [rsp + 0x50], eax
call fcn.1402067c0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x48]
mov rdx, r14
mov rcx, qword [rax]
call fcn.140181680
mov eax, dword [rsp + 0x50]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret