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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r15, qword [rcx + 0x18]
xor r13d, r13d
xor r12d, r12d
mov qword [rbp + 0x58], r13
mov qword [rbp - 0x10], r15
mov esi, r8d
mov rbx, rdx
mov r14, rcx
cmp r8d, 2
jb 0x140030026
cmp r8d, dword [rcx + 0x3c]
ja 0x140030026
test rdx, rdx
je 0x14002fd68
mov rax, qword [rdx + 0x70]
lea ecx, [r13 + 1]
add word [rax + 0x36], cx
mov rax, qword [rax + 0x18]
add dword [rax + 0x18], ecx
jmp 0x14002fd72
mov edx, esi
call fcn.14002c650
mov rbx, rax
mov rcx, qword [r15 + 0x70]
mov qword [rbp + 0x40], rbx
call fcn.1400270fc
mov dword [rbp + 0x50], eax
mov edi, eax
test eax, eax
jne 0x140030004
mov rdx, qword [r15 + 0x50]
movzx eax, byte [rdx + 0x26]
movzx r15d, byte [rdx + 0x25]
shl r15d, 8
or r15d, eax
movzx eax, byte [rdx + 0x24]
shl eax, 0x18
shl r15d, 8
or r15d, eax
movzx eax, byte [rdx + 0x27]
or r15d, eax
lea ecx, [r15 + 1]
mov eax, ecx
mov byte [rdx + 0x27], cl
shr eax, 0x18
mov byte [rdx + 0x24], al
mov eax, ecx
shr eax, 0x10
mov byte [rdx + 0x25], al
mov eax, ecx
shr eax, 8
mov byte [rdx + 0x26], al
test byte [r14 + 0x26], 4
je 0x14002fe28
test rbx, rbx
jne 0x14002fdff
xor r9d, r9d
lea r8, [rbp + 0x40]
mov edx, esi
mov rcx, r14
call fcn.14002c600
mov edi, eax
test eax, eax
jne 0x140030020
mov rbx, qword [rbp + 0x40]
mov rcx, qword [rbx + 0x70]
call fcn.1400270fc
mov dword [rbp + 0x50], eax
mov edi, eax
test eax, eax
jne 0x140030004
mov rax, qword [rbx + 0x48]
xor edx, edx
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rax + 0x30]
call fcn.1400cb080
cmp byte [r14 + 0x21], r12b
je 0x14002fe52
lea rax, [rbp + 0x50]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, r14
call fcn.14002b290
mov edi, dword [rbp + 0x50]
test edi, edi
jne 0x140030004
test r15d, r15d
je 0x14002ff88
mov rcx, qword [rbp - 0x10]
lea r8, [rbp + 0x58]
xor r9d, r9d
mov rcx, qword [rcx + 0x50]
movzx eax, byte [rcx + 0x22]
movzx r12d, byte [rcx + 0x21]
shl r12d, 8
or r12d, eax
movzx eax, byte [rcx + 0x23]
shl r12d, 8
or r12d, eax
movzx eax, byte [rcx + 0x20]
shl eax, 0x18
mov rcx, r14
or r12d, eax
mov edx, r12d
call fcn.14002c600
mov r13, qword [rbp + 0x58]
mov edi, eax
test eax, eax
jne 0x140030004
mov rcx, qword [r13 + 0x50]
movzx eax, byte [rcx + 6]
movzx r15d, byte [rcx + 5]
shl r15d, 8
or r15d, eax
movzx eax, byte [rcx + 4]
shl eax, 0x18
shl r15d, 8
or r15d, eax
movzx eax, byte [rcx + 7]
mov ecx, dword [r14 + 0x34]
or r15d, eax
shr ecx, 2
lea eax, [rcx - 2]
cmp r15d, eax
jbe 0x14002fefb
lea r8, str.database_corruption
mov edx, 0x11010
lea ecx, [rdi + 0xb]
call fcn.140088ba4
mov edi, eax
jmp 0x140030004
lea eax, [rcx - 8]
cmp r15d, eax
jae 0x14002ff88
mov rcx, qword [r13 + 0x70]
call fcn.1400270fc
mov edi, eax
test eax, eax
jne 0x140030004
mov rcx, qword [r13 + 0x50]
lea edx, [r15 + 1]
mov eax, edx
shr eax, 0x18
mov byte [rcx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 5], al
mov eax, edx
shr eax, 8
mov byte [rcx + 6], al
mov eax, esi
mov byte [rcx + 7], dl
lea ecx, [r15*4 + 8]
add rcx, qword [r13 + 0x50]
shr eax, 0x18
mov byte [rcx], al
mov eax, esi
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, esi
shr eax, 8
mov byte [rcx + 2], al
mov byte [rcx + 3], sil
test rbx, rbx
je 0x14002ff79
test byte [r14 + 0x26], 4
jne 0x14002ff79
mov rcx, qword [rbx + 0x70]
call fcn.140027154
mov edx, esi
mov rcx, r14
call fcn.14002add0
jmp 0x14002fef4
test rbx, rbx
jne 0x14002ffa8
xor r9d, r9d
lea r8, [rbp + 0x40]
mov edx, esi
mov rcx, r14
call fcn.14002c600
mov edi, eax
test eax, eax
jne 0x140030020
mov rbx, qword [rbp + 0x40]
mov rcx, qword [rbx + 0x70]
call fcn.1400270fc
mov edi, eax
test eax, eax
jne 0x140030004
mov rcx, qword [rbx + 0x50]
mov eax, r12d
shr eax, 0x18
mov byte [rcx], al
mov eax, r12d
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, r12d
shr eax, 8
mov byte [rcx + 2], al
mov byte [rcx + 3], r12b
mov rax, qword [rbx + 0x50]
and dword [rax + 4], edi
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 0x50]
mov eax, esi
shr eax, 0x18
mov byte [rdx + 0x20], al
mov eax, esi
shr eax, 0x10
mov byte [rdx + 0x21], al
mov eax, esi
shr eax, 8
mov byte [rdx + 0x22], al
mov byte [rdx + 0x23], sil
test rbx, rbx
je 0x14003000c
mov byte [rbx], 0
mov rcx, rbx
call fcn.14002c79c
mov rcx, r13
call fcn.14002c79c
mov eax, edi
jmp 0x14003003c
mov rbx, qword [rbp + 0x40]
jmp 0x140030004
lea r8, str.database_corruption
mov edx, 0x10fda
mov ecx, reloc.Cabinet.dll_FCIAddFile
call fcn.140088ba4
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret