Function at 0x1402d6850
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, 0x88
xor r11d, r11d
xor esi, esi
xor ebp, ebp
mov r12, qword [rcx]
mov rbx, qword [rcx + 0x10]
mov rdi, qword [rcx + 8]
mov rax, qword [r12]
mov qword [rsp + 0xd8], rdx
mov r14, r8
mov r13, qword [r12 + 8]
mov dword [rsp + 0x7c], r11d
mov r15d, dword [rdi + 0x14]
mov qword [rsp + 0xd0], rcx
mov r11, qword [rdi + 0x20]
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x40], rax
movzx eax, byte [rbx + 0x10]
mov r10, rax
mov dword [rsp + 0x50], eax
movzx eax, al
imul rax, rax, 0x68
imul r10, r10, 0x68
lea rdx, [r13 + rax + 8]
mov rax, qword [r12 + 0x10]
add r10, r13
mov qword [rsp + 0x48], rax
mov rax, qword [r10 + 0x28]
mov qword [rsp + 0x60], rax
cmp ebp, r15d
jge 0x1402d6937
mov ax, word [r11 + 0x12]
mov ecx, dword [r10 + 0x4c]
mov esi, eax
and esi, 0xffffffbf
cmp dword [r11 + 0x1c], ecx
mov word [r11 + 0x12], si
jne 0x1402d692f
mov rcx, r14
and rcx, qword [r11 + 0x28]
jne 0x1402d692f
movzx ecx, word [r11 + 0x14]
and ecx, 0xf7ff
je 0x1402d692f
test al, 0x80
jne 0x1402d692f
test byte [r10 + 0x44], 0x58
je 0x1402d6923
mov rcx, qword [r11]
call fcn.140233730
test eax, eax
je 0x1402d692f
inc dword [rsp + 0x58]
or esi, 0x40
mov word [r11 + 0x12], si
inc ebp
add r11, 0x38
jmp 0x1402d68d8
cmp qword [rsp + 0x48], 0
jne 0x1402d6949
xor r12d, r12d
xor esi, esi
jmp 0x1402d6a37
mov rax, qword [rsp + 0x48]
xor esi, esi
movsxd rbp, dword [rsp + 0x50]
mov eax, dword [rax]
imul rbp, rbp, 0x68
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x48]
add rbp, r13
lea r14, [rax + 8]
cmp dword [rsp + 0x6c], esi
jle 0x1402d6991
mov r15, qword [r14]
mov rcx, r15
call fcn.14028b310
test eax, eax
je 0x1402d6988
inc esi
add r14, 0x20
jmp 0x1402d696b
test byte [r14 + 0x10], 2
je 0x1402d6995
jmp 0x1402d693f
je 0x1402d6a0f
jmp 0x1402d693f
mov al, byte [r15]
cmp al, 0xa7
jne 0x1402d69b0
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x68
mov eax, dword [r13 + rax + 0x4c]
cmp dword [r15 + 0x2c], eax
jmp 0x1402d6a04
cmp al, 0x71
jne 0x1402d693f
mov rax, qword [r15 + 0x10]
cmp byte [rax], 0xa7
jne 0x1402d693f
mov edx, dword [rbp + 0x4c]
cmp dword [rax + 0x2c], edx
jne 0x1402d693f
movsx rcx, word [rax + 0x30]
test cx, cx
mov word [r15 + 0x30], cx
js 0x1402d6980
mov rax, qword [rsp + 0x60]
imul rcx, rcx, 0x18
add rcx, qword [rax + 8]
call fcn.140282d70
test rax, rax
mov rdx, rax
jne 0x1402d69f9
lea rdx, str.BINARY
mov rcx, qword [r15 + 8]
call fcn.1402c9100
test eax, eax
jne 0x1402d693f
jmp 0x1402d6980
mov r12d, dword [r12 + 0x3c]
test r12b, 0x80
je 0x1402d6a2e
and r12w, 0x200
cmp r12w, 1
sbb r12d, r12d
add r12d, 3
jmp 0x1402d6a37
shr r12w, 6
and r12d, 1
movsxd r13, dword [rsp + 0x58]
movsxd r14, esi
shl r14, 3
imul rax, r13, 0x1c
lea rdx, [r14 + rax + 0x88]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.1402850a0
test rax, rax
mov rbp, rax
jne 0x1402d6a7a
mov rcx, qword [rsp + 0x40]
lea rdx, [0x1403e98c0]
call fcn.140287890
jmp 0x1402d6c4d
mov qword [rax + 0x60], rdi
mov r11, qword [rdi + 0x20]
xor r10d, r10d
xor r9d, r9d
lea r15, [rax + r13*8 + 0x80]
imul r13, r13, 0xc
mov qword [rax + 8], r15
add r13, r15
add r14, r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r14
mov rax, qword [rsp + 0x40]
xor r14d, r14d
mov dword [rbp + 0x70], r12d
xor r12d, r12d
mov dword [rbp + 0x74], r10d
mov qword [rbp + 0x68], rax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
cmp r14d, eax
jge 0x1402d6bad
mov ax, word [r11 + 0x12]
test al, 0x40
je 0x1402d6ba1
movsxd r8, r9d
mov edx, dword [r11 + 0x20]
imul r8, r8, 0xc
add r8, r15
mov dword [r8], edx
mov edx, dword [r11 + 0x14]
mov dword [r8 + 8], r14d
mov r10d, edx
and r10w, 0x3fff
cmp r10w, 1
jne 0x1402d6b2e
test ax, ax
js 0x1402d6b26
xor eax, eax
cmp r9d, 0x1f
mov edx, dword [rbp + 0x74]
jg 0x1402d6b21
mov eax, 1
mov ecx, r9d
shl eax, cl
or edx, eax
mov dword [rbp + 0x74], edx
mov r10d, 2
jmp 0x1402d6b54
cmp r10w, 0x40
jne 0x1402d6b3b
mov al, byte [r11 + 0x17]
jmp 0x1402d6b4e
test dx, 0x180
je 0x1402d6b54
cmp r10w, 0x100
setne al
add eax, 0x47
mov byte [r8 + 4], al
jmp 0x1402d6b9e
test r10d, 0x3c
mov byte [r8 + 4], r10b
je 0x1402d6b9e
mov rax, qword [r11]
mov rcx, qword [rax + 0x18]
call fcn.14028b410
test eax, eax
je 0x1402d6b9e
cmp r9d, 0xf
jg 0x1402d6b84
mov eax, 1
mov ecx, r9d
shl eax, cl
or r12d, eax
cmp r10w, 0x10
jne 0x1402d6b92
mov byte [r8 + 4], 8
jmp 0x1402d6b9e
cmp r10w, 4
jne 0x1402d6b9e
mov byte [r8 + 4], 0x20
inc r9d
inc r14d
add r11, 0x38
jmp 0x1402d6ac4
mov r14, qword [rsp + 0x48]
movsxd rsi, esi
mov dword [rbp], r9d
xor r15d, r15d
shl rsi, 5
lea rax, [r14 + rsi]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp r14, rax
je 0x1402d6c04
mov rsi, qword [r14 + 8]
mov rcx, rsi
call fcn.14028b310
test eax, eax
jne 0x1402d6bfe
movsxd rax, r15d
inc r15d
lea rdx, [r13 + rax*8]
movsx eax, word [rsi + 0x30]
mov dword [rdx], eax
mov al, byte [r14 + 0x18]
and eax, 1
mov byte [rdx + 4], al
add r14, 0x20
jmp 0x1402d6bc9
mov dword [rbp + 0x10], r15d
mov rdx, rbx
and byte [rbx + 0x1c], 0xfe
mov word [rbx + 0x12], 0
mov eax, dword [rbp]
mov dword [rbx + 0x38], 0x400
mov word [rbx + 0x3c], 0
mov dword [rsp + 0x48], eax
mov r8d, eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.1402d79b0
test eax, eax
je 0x1402d6c57
mov rax, qword [rsp + 0x40]
mov rdx, rbp
mov rcx, qword [rax]
call fcn.14023a7b0
mov eax, 7
jmp 0x1402d6ee0
movzx r12d, r12w
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rbp
mov rdx, qword [rsp + 0xd8]
lea rax, [rsp + 0x7c]
mov dword [rsp + 0x28], r12d
mov rcx, qword [rsp + 0xd0]
lea rsi, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
call fcn.1402d6f00
cmp dword [rsp + 0x7c], 0
je 0x1402d6ccf
mov rdx, qword [rsp + 0xd8]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
or r8, 0xffffffffffffffff
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x38], r9
xor r9d, r9d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rbp
call fcn.1402d6f00
test eax, eax
jne 0x1402d6eb1
mov r14, qword [rsp + 0xd8]
mov eax, dword [rsp + 0x78]
not r14
mov rcx, r14
and rcx, qword [rbx]
mov qword [rsp + 0x50], rcx
jne 0x1402d6cfc
test eax, eax
jne 0x1402d6d06
jmp 0x1402d6eb1
xor r15d, r15d
xor r10d, r10d
test eax, eax
je 0x1402d6d49
mov rdx, qword [rsp + 0xd8]
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor r15d, r15d
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x38], r8
or r8, 0xffffffffffffffff
mov r9d, 1
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rbp
call fcn.1402d6f00
mov r10, r14
and r10, qword [rbx]
sete r15b
lea r11, [rsp + 0x78]
mov r13d, r15d
xor r8d, r8d
test eax, eax
jne 0x1402d6e73
xor ecx, ecx
or rsi, 0xffffffffffffffff
cmp dword [rsp + 0x48], ecx
jle 0x1402d6d9b
imul rdx, rcx, 0xc
add rdx, qword [rbp + 8]
movsxd rdx, dword [rdx + 8]
imul rdx, rdx, 0x38
add rdx, qword [rdi + 0x20]
mov r9, qword [rdx + 0x28]
and r9, r14
cmp r8, r9
mov rdx, r9
jae 0x1402d6d90
cmp r9, rsi
jb 0x1402d6d93
mov rdx, rsi
inc rcx
mov rsi, rdx
jmp 0x1402d6d62
cmp rsi, 0xffffffffffffffff
je 0x1402d6e2a
mov rcx, qword [rsp + 0x50]
cmp rsi, rcx
je 0x1402d6e22
cmp rsi, r10
je 0x1402d6e22
xor ecx, ecx
mov r8, qword [rsp + 0xd8]
mov qword [rsp + 0x30], r11
xor r9d, r9d
mov rdx, qword [rsp + 0xd8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0xd0]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rbp
or r8, rsi
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x58], r11
call fcn.1402d6f00
mov rdx, qword [rsp + 0xd8]
cmp qword [rbx], rdx
mov r11, qword [rsp + 0x58]
mov r10, qword [rsp + 0x60]
jne 0x1402d6e22
cmp dword [rsp + 0x78], 0
mov ecx, 1
mov r15d, 1
cmove r13d, ecx
mov r8, rsi
jmp 0x1402d6d54
test r15d, r15d
jne 0x1402d6e73
lea rax, [rsp + 0x78]
xor edx, edx
xor r9d, r9d
mov dword [rsp + 0x28], r12d
mov r8, qword [rsp + 0xd8]
mov qword [rsp + 0x38], rdx
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbp
mov rdx, r8
call fcn.1402d6f00
cmp dword [rsp + 0x78], 0
mov edx, 1
cmove r13d, edx
or r13d, eax
jne 0x1402d6eb1
mov r8, qword [rsp + 0xd8]
xor eax, eax
mov dword [rsp + 0x28], r12d
mov r9d, 1
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbp
mov rdx, r8
call fcn.1402d6f00
cmp dword [rbp + 0x38], 0
je 0x1402d6ec8
mov rcx, qword [rbp + 0x30]
mov dword [rsp + 0x48], eax
call fcn.1402c4500
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x40]
mov rdx, rbp
mov rcx, qword [rax]
call fcn.14023a7b0
mov eax, dword [rsp + 0x48]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret