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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, qword [rcx + 0x18]
xor r12d, r12d
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x80], r13
mov r14, r12
mov r15d, r12d
cmp r8d, 2
jae 0x14007e433
lea rax, [0x140141744]
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
lea ecx, [r12 + 0xb]
mov r9d, 0x10cb2
mov qword [rsp + 0x20], rax
call fcn.140065b40
lea eax, [r12 + 0xb]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x88], rbx
test rdx, rdx
je 0x14007e451
mov rax, qword [rdx + 0x70]
inc word [rax + 0x36]
mov rax, qword [rax + 0x18]
inc dword [rax + 0x18]
jmp 0x14007e45c
mov edx, r8d
call fcn.140079910
mov rdi, rax
mov rcx, qword [r13 + 0x70]
test byte [rcx + 0x34], 4
mov r8, qword [rcx + 0x28]
je 0x14007e48a
mov edx, dword [rcx + 0x30]
cmp dword [r8 + 0x1c], edx
jb 0x14007e48a
cmp dword [r8 + 0x80], r12d
je 0x14007e485
call fcn.140071da0
mov ebx, eax
jmp 0x14007e4b2
mov ebx, r12d
jmp 0x14007e4b2
mov ebx, dword [r8 + 0x2c]
test ebx, ebx
jne 0x14007e4b2
mov eax, dword [r8 + 0xbc]
cmp dword [r8 + 0xb8], eax
jbe 0x14007e4ab
call fcn.1400734e0
mov ebx, eax
jmp 0x14007e4b2
call fcn.140073430
mov ebx, eax
mov dword [rsp + 0x90], ebx
test ebx, ebx
jne 0x14007e78a
mov rcx, qword [r13 + 0x50]
mov r13d, dword [rcx + 0x24]
bswap r13d
lea eax, [r13 + 1]
bswap eax
mov dword [rcx + 0x24], eax
test byte [rsi + 0x26], 4
je 0x14007e570
test rdi, rdi
jne 0x14007e543
mov rax, qword [rsi]
lea r8, [rsp + 0x98]
xor r9d, r9d
mov rcx, rax
mov edx, ebp
call qword [rax + delete[]]
mov ebx, eax
test eax, eax
jne 0x14007e53b
mov rcx, qword [rsp + 0x98]
mov rdi, qword [rcx + 0x10]
cmp ebp, dword [rdi + 4]
je 0x14007e538
mov rax, qword [rcx + 8]
mov qword [rdi + 0x70], rcx
cmp ebp, 1
mov qword [rdi + 0x50], rax
mov ecx, 0x64
mov eax, r12d
cmove eax, ecx
mov qword [rdi + 0x48], rsi
mov dword [rdi + 4], ebp
mov byte [rdi + 9], al
mov ebx, r12d
test ebx, ebx
jne 0x14007e78a
mov rcx, qword [rdi + 0x70]
call fcn.1400737c0
mov ebx, eax
mov dword [rsp + 0x90], eax
test eax, eax
jne 0x14007e78a
mov rax, qword [rdi + 0x48]
mov rcx, qword [rdi + 0x50]
xor edx, edx
mov r8d, dword [rax + 0x30]
call sub.MSVCR90.dll_memset
cmp byte [rsi + 0x21], r12b
je 0x14007e5a2
lea rax, [rsp + 0x90]
xor r9d, r9d
mov r8b, 2
mov edx, ebp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140078430
mov ebx, dword [rsp + 0x90]
test ebx, ebx
jne 0x14007e78a
test r13d, r13d
je 0x14007e6fb
mov rax, qword [rsp + 0x80]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov rax, qword [rax + 0x50]
mov r15d, dword [rax + 0x20]
mov rax, qword [rsi]
bswap r15d
mov rcx, rax
mov edx, r15d
call qword [rax + delete[]]
mov ebx, eax
test eax, eax
jne 0x14007e614
mov rcx, qword [rsp + 0x30]
mov r14, qword [rcx + 0x10]
cmp r15d, dword [r14 + 4]
je 0x14007e611
mov rax, qword [rcx + 8]
mov qword [r14 + 0x70], rcx
cmp r15d, 1
mov qword [r14 + 0x50], rax
mov ecx, 0x64
mov eax, r12d
cmove eax, ecx
mov qword [r14 + 0x48], rsi
mov dword [r14 + 4], r15d
mov byte [r14 + 9], al
mov ebx, r12d
test ebx, ebx
jne 0x14007e78a
mov rax, qword [r14 + 0x50]
mov ecx, dword [rsi + 0x34]
mov r13d, dword [rax + 4]
shr ecx, 2
lea eax, [rcx - 2]
bswap r13d
cmp r13d, eax
jbe 0x14007e646
mov ecx, 0x10ce7
call fcn.140108de0
mov ebx, eax
jmp 0x14007e78a
lea eax, [rcx - 8]
cmp r13d, eax
jae 0x14007e6fb
mov rcx, qword [r14 + 0x70]
call fcn.1400737c0
mov ebx, eax
test eax, eax
jne 0x14007e78a
mov rax, qword [r14 + 0x50]
lea ecx, [r13 + 1]
mov edx, ebp
bswap ecx
bswap edx
mov dword [rax + 4], ecx
mov rax, qword [r14 + 0x50]
lea ecx, [r13*4 + 8]
mov dword [rcx + rax], edx
test rdi, rdi
je 0x14007e6bf
test byte [rsi + 0x26], 4
jne 0x14007e6bf
mov rcx, qword [rdi + 0x70]
mov rdx, qword [rcx + 0x28]
cmp byte [rdx + 0x10], r12b
jne 0x14007e6bf
movzx eax, word [rcx + 0x34]
test al, 2
je 0x14007e6bf
cmp dword [rdx + 0x80], r12d
jne 0x14007e6bf
mov edx, 0xfffb
and ax, dx
or ax, 0x10
mov word [rcx + 0x34], ax
mov ebx, r12d
cmp qword [rsi + 0x58], rbx
jne 0x14007e6e1
mov ecx, dword [rsi + 0x3c]
call fcn.14006c100
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x14007e6e1
lea ebx, [rax + 7]
jmp 0x14007e78a
mov rcx, qword [rsi + 0x58]
cmp ebp, dword [rcx]
ja 0x14007e78a
mov edx, ebp
call fcn.14006c270
mov ebx, eax
jmp 0x14007e78a
test rdi, rdi
jne 0x14007e755
mov rax, qword [rsi]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov rcx, rax
mov edx, ebp
call qword [rax + delete[]]
mov ebx, eax
test eax, eax
jne 0x14007e751
mov rcx, qword [rsp + 0x38]
mov rdi, qword [rcx + 0x10]
cmp ebp, dword [rdi + 4]
je 0x14007e74e
mov rax, qword [rcx + 8]
mov qword [rdi + 0x70], rcx
cmp ebp, 1
mov qword [rdi + 0x50], rax
mov ecx, 0x64
mov eax, r12d
cmove eax, ecx
mov qword [rdi + 0x48], rsi
mov dword [rdi + 4], ebp
mov byte [rdi + 9], al
mov ebx, r12d
test ebx, ebx
jne 0x14007e78a
mov rcx, qword [rdi + 0x70]
call fcn.1400737c0
mov ebx, eax
test eax, eax
jne 0x14007e78a
mov rax, qword [rdi + 0x50]
bswap r15d
bswap r12d
mov dword [rax], r15d
mov rax, qword [rdi + 0x50]
bswap ebp
mov dword [rax + 4], r12d
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x50]
mov dword [rax + 0x20], ebp
test rdi, rdi
je 0x14007e792
mov byte [rdi], 0
mov rcx, rdi
call fcn.140079b00
mov rcx, r14
call fcn.140079b00
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret