Function at 0x1406cb880
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, 0x48
xor r14d, r14d
mov r8d, dword [rdx + 0x30]
mov r13, qword [rcx + 0x10]
mov r12, qword [rdx + 0x28]
mov qword [rsp + 0x90], rcx
mov rbx, rdx
test r8d, r8d
jle 0x1406cb94d
mov r15, r12
jmp 0x1406cb8ed
movsxd rax, dword [r13 + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [r13 + 0x88]
lea rax, [rax + rcx*8 - 0x18]
mov byte [rax + 1], 0xf9
mov qword [rax + 0x10], rdx
add r14d, 1
add r15, 0x20
cmp dword [rbx + 0x30], r14d
jle 0x1406cb94d
mov rax, qword [r15]
mov ecx, dword [r15 + 0x18]
mov rsi, qword [rax + 0x20]
test ecx, ecx
jns 0x1406cb960
xor r9d, r9d
test rsi, rsi
je 0x1406cb907
mov r9d, dword [rsi]
mov dword [rsp + 0x20], 0
mov eax, dword [rbx + 0x20]
mov edx, 0xa5
mov rcx, r13
add eax, dword [rbx + 0xc]
lea r8d, [rax + r14]
call fcn.1406c9b90
mov rcx, qword [r13]
mov rdx, qword [r15 + 8]
cmp byte [rcx + 0x67], 0
je 0x1406cb8c0
test byte [rdx + 4], 0x10
je 0x1406cb8df
call fcn.1406ac8c0
add r14d, 1
add r15, 0x20
cmp dword [rbx + 0x30], r14d
jg 0x1406cb8ed
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rsi]
mov rcx, qword [rsp + 0x90]
xor edi, edi
mov edx, eax
mov dword [rsp + 0x30], eax
call fcn.1406a57e0
cmp byte [r15 + 0x1c], 0
mov dword [rsp + 0x34], eax
je 0x1406cb997
mov rax, qword [r15]
cmp byte [r15 + 0x1d], 1
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
mov edi, dword [rax]
adc edi, 0
mov eax, dword [r13 + 0x90]
mov r8d, dword [r15 + 0x18]
mov dword [rsp + 0x38], eax
cmp eax, dword [r13 + 0x94]
jge 0x1406cbb80
mov edx, dword [rsp + 0x38]
lea eax, [rdx + 1]
mov dword [r13 + 0x90], eax
mov dword [rsp + 0x3c], eax
movsxd rax, edx
lea rdx, [rax + rax*2]
mov rax, qword [r13 + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], r8d
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x24
mov eax, dword [rsp + 0x30]
mov ebp, dword [rsp + 0x34]
sub eax, 1
sub ebp, edi
lea r12d, [rdi + rax]
test eax, eax
js 0x1406cba38
nop word cs:[rax + rax]
lea eax, [rbp + r12]
mov r8d, dword [r15 + 0x18]
mov r9d, r12d
mov rcx, r13
mov dword [rsp + 0x20], eax
mov edx, 0x5e
call fcn.1406c9b90
mov eax, r12d
sub r12d, 1
cmp edi, eax
jne 0x1406cba10
mov eax, dword [rbx + 0x20]
add eax, dword [rbx + 0xc]
xor r8d, r8d
mov edx, 0xa2
add eax, r14d
mov r9d, dword [rsp + 0x34]
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.1406c9b90
mov rcx, qword [r13]
mov rdx, qword [r15 + 8]
cmp byte [rcx + 0x67], 0
jne 0x1406cbb28
movsxd rcx, dword [r13 + 0x90]
lea r8, [rcx + rcx*2]
mov rax, rcx
mov rcx, qword [r13 + 0x88]
lea rcx, [rcx + r8*8 - 0x18]
mov byte [rcx + 1], 0xf9
mov qword [rcx + 0x10], rdx
test eax, eax
jle 0x1406cbaaa
mov rdx, qword [r13 + 0x88]
lea rax, [rax + rax*2]
lea rax, [rdx + rax*8]
movzx edx, byte [rsp + 0x30]
mov word [rax - 0x16], dx
mov r8d, dword [r15 + 0x18]
mov r9d, dword [rsp + 0x3c]
mov edx, 0x27
mov rcx, r13
mov dword [rsp + 0x20], 0
call fcn.1406c9b90
mov rcx, qword [r13]
mov edx, dword [r13 + 0x90]
lea rax, [0x140c43220]
cmp byte [rcx + 0x67], 0
jne 0x1406cbaf4
movsxd rax, dword [rsp + 0x38]
lea rcx, [rax + rax*2]
mov rax, qword [r13 + 0x88]
lea rax, [rax + rcx*8]
cmp dword [rsp + 0x30], 1
mov dword [rax + 8], edx
je 0x1406cbb40
mov rdi, qword [rsp + 0x90]
mov eax, dword [rsp + 0x30]
cmp eax, dword [rdi + 0x28]
jle 0x1406cb904
mov dword [rdi + 0x28], eax
mov rax, rdi
mov edi, dword [rsp + 0x34]
mov dword [rax + 0x2c], edi
jmp 0x1406cb904
test byte [rdx + 4], 0x10
jne 0x1406cbbb0
movsxd rax, dword [r13 + 0x90]
jmp 0x1406cba8e
mov edi, dword [rsp + 0x34]
test edi, edi
je 0x1406cb904
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x1f]
cmp al, 7
ja 0x1406cb904
mov rcx, qword [rsp + 0x90]
lea edx, [rax + 1]
mov byte [rcx + 0x1f], dl
mov dword [rcx + rax*4 + 0xe8], edi
jmp 0x1406cb904
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x24
mov rcx, r13
call fcn.1406c9b00
mov dword [rsp + 0x38], eax
add eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x1406cb9f1
call fcn.1406ac8c0
movsxd rax, dword [r13 + 0x90]
jmp 0x1406cba8e