Function at 0x1400f1300
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, 0x208
xor r15d, r15d
mov r14, qword [rcx + 0x20]
mov rsi, qword [r14 + 0xb8]
mov qword [rsp + 0x260], r8
mov r13, rcx
movsxd r12, edx
test rsi, rsi
je 0x1400f1337
mov r15d, dword [rsi]
cmp r12d, 1
je 0x1400f1738
mov rax, qword [rsp + 0x260]
mov ecx, dword [r13 + 0x80]
mov qword [rax], 0
test ecx, ecx
je 0x1400f1770
imul eax, r12d, 0x3c
mov edx, 1
lea rbx, [rsp + 0x70]
xor edi, edi
sub edx, r12d
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rbx
mov ebp, edx
mov dword [rsp + 0x3c], eax
lea eax, [r12 - 1]
mov dword [rsp + 0x34], eax
xor eax, eax
cmp dword [rsp + 0x34], r15d
jb 0x1400f15ef
nop dword [rax + rax]
test eax, eax
je 0x1400f1690
mov rcx, qword [rsp + 0x48]
mov eax, 8
add rcx, 1
mov qword [rsp + 0x48], rcx
cmp rcx, rdi
jb 0x1400f14b4
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x1400f1440
mov rbp, qword [r13 + 0x10]
movsxd rax, r12d
add rax, rbp
cmp rax, qword [r14 + 0x88]
jae 0x1400f16f0
mov eax, dword [r14 + 0x18]
mov ebx, eax
and ebx, 0x20000
jne 0x1400f17ec
mov ecx, dword [r14 + 0x1c]
and eax, 0x80000
mov r8d, 0x1000
mov rdx, rcx
imul rcx, rbp
add rcx, qword [r14 + 0x40]
cmp eax, 1
sbb eax, eax
imul edx, r12d
and eax, 0xfffffffe
lea r9d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400f1803
mov eax, dword [r14 + 0x18]
jmp 0x1400f162a
mov rdx, qword [r13 + 0x20]
mov rdi, qword [r13 + 0x18]
mov r8, qword [rdx + 0x48]
sub rdi, 1
test r8, r8
je 0x1400f149c
mov r9d, dword [r8 + 0x10]
test r9d, r9d
jle 0x1400f149c
movsxd rdx, r9d
mov r11d, r9d
sub r9d, 1
shl rdx, 6
shl r11, 6
add rdx, r8
shl r9, 6
lea r8, [r8 + r11 - 0x40]
sub r8, r9
nop
mov r9d, dword [rdx + 8]
test r9d, r9d
je 0x1400f1493
mov r9, qword [rdx]
cmp rdi, r9
cmova rdi, r9
sub rdx, 0x40
cmp rdx, r8
jne 0x1400f1480
mov qword [r14 + 0xb0], rdi
cmp rcx, rdi
jae 0x1400f13cc
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x28]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov r9d, eax
call sym.mdb_cursor_get
test eax, eax
jne 0x1400f17f3
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
mov qword [rsp + 0x48], rdx
cmp rdx, rdi
jb 0x1400f1562
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400f13cc
mov rax, qword [r13 + 0x18]
lea rdi, [rax - 1]
mov rax, qword [r13 + 0x20]
mov rcx, qword [rax + 0x48]
test rcx, rcx
je 0x1400f154a
mov r9d, dword [rcx + 0x10]
test r9d, r9d
jle 0x1400f154a
movsxd rax, r9d
mov r8d, r9d
shl rax, 6
shl r8, 6
lea r8, [rcx + r8 - 0x40]
add rax, rcx
lea ecx, [r9 - 1]
shl rcx, 6
sub r8, rcx
nop
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x1400f1541
mov rcx, qword [rax]
cmp rdi, rcx
cmova rdi, rcx
sub rax, 0x40
cmp r8, rax
jne 0x1400f1530
mov qword [r14 + 0xb0], rdi
cmp rdx, rdi
jae 0x1400f13cc
mov dword [rsp + 0x30], 1
movzx eax, word [rsp + 0xb2]
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + rax*8 + 0xb8]
movzx eax, word [rsp + rax*2 + 0x1b8]
movzx eax, word [rdx + rax*2 + 0x10]
add rdx, rax
call sym.mdb_node_read
test eax, eax
jne 0x1400f16f5
mov rbx, qword [rsp + 0x68]
mov rdx, qword [rbx]
test rsi, rsi
je 0x1400f1710
lea rcx, [r14 + 0xb8]
call sym.mdb_midl_need
test eax, eax
jne 0x1400f16f5
mov rsi, qword [r14 + 0xb8]
mov rax, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, rsi
mov qword [r14 + 0xc0], rax
call sym.mdb_midl_xmerge
mov r15d, dword [rsi]
mov eax, 8
cmp dword [rsp + 0x34], r15d
jae 0x1400f13a0
mov edx, r15d
mov r11d, dword [rsp + 0x34]
mov ebx, r15d
lea rcx, [rsi + rdx*8]
jmp 0x1400f1612
lea edx, [rbx - 1]
sub rcx, 8
cmp ebx, r12d
je 0x1400f1758
mov ebx, edx
mov r8, qword [rcx]
lea edx, [rbp + rbx]
lea r9, [r8 + r11]
cmp qword [rsi + rdx*8], r9
jne 0x1400f1600
mov eax, dword [r14 + 0x18]
mov rbp, r8
test eax, 0x80000
je 0x1400f17d0
mov edi, dword [r14 + 0x1c]
imul rdi, rbp
add rdi, qword [r14 + 0x40]
test ebx, ebx
je 0x1400f1780
mov eax, r15d
mov edx, ebx
sub eax, r12d
sub edx, r12d
mov ecx, eax
mov qword [rsi], rcx
cmp edx, eax
jae 0x1400f1787
lea eax, [rdx + 1]
lea rax, [rsi + rax*8]
nop dword [rax + rax]
lea edx, [rbx + 1]
add rax, 8
mov rbx, rdx
mov rdx, qword [rsi + rdx*8]
mov qword [rax - 8], rdx
cmp r15d, ebx
jne 0x1400f1670
jmp 0x1400f1787
mov rcx, qword [rsp + 0x28]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x38], eax
mov rdx, qword [r14 + 0xc0]
mov rdi, qword [r14 + 0xb0]
mov qword [rsp + 0x48], rdx
mov rdx, r13
call sym.mdb_cursor_init
mov rcx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x38]
test rcx, rcx
je 0x1400f13b2
mov qword [rsp + 0x50], 8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov eax, 0x11
jmp 0x1400f13b2
mov eax, 0xffff87b8
or dword [r13 + 0x7c], 2
add rsp, 0x208
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, edx
call sym.mdb_midl_alloc
mov qword [r14 + 0xb8], rax
mov rsi, rax
test rax, rax
jne 0x1400f15c5
mov eax, 0xc
jmp 0x1400f16f5
mov rdi, qword [r13 + 0x30]
test rdi, rdi
je 0x1400f1341
mov rax, qword [rdi + 0x30]
sub dword [r13 + 0x38], 1
mov qword [r13 + 0x30], rax
jmp 0x1400f17be
sub dword [rsp + 0x3c], 1
jns 0x1400f13a0
jmp 0x1400f13cc
mov eax, 0xffff87bc
jmp 0x1400f16f5
add r12, rbp
mov qword [r13 + 0x10], r12
test byte [r13 + 0x7e], 8
lea rdx, [sym.mdb_mid2l_append]
mov rcx, qword [r13 + 0x48]
mov qword [rdi], rbp
lea rax, [sym.mdb_mid2l_insert]
mov qword [rsp + 0x60], rbp
cmovne rax, rdx
mov qword [rsp + 0x68], rdi
lea rdx, [rsp + 0x60]
call rax
sub dword [r13 + 0x80], 1
mov rax, qword [rsp + 0x260]
mov qword [rax], rdi
xor eax, eax
jmp 0x1400f16fa
mov edx, r12d
mov rcx, r13
call sym.mdb_page_malloc
mov rdi, rax
test rax, rax
jne 0x1400f1641
jmp 0x1400f172a
xor ebx, ebx
jmp 0x1400f162a
cmp eax, 0xffff87b2
je 0x1400f13cc
jmp 0x1400f16f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400f16f5