Function at 0x78df00
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, 0x58
mov rbx, qword [rcx + 8]
cmp byte [rcx + 0x11], 0
mov rsi, rcx
mov edi, edx
mov r12, r8
mov rbp, qword [rbx]
je 0x78df2a
call fcn.00744870
movzx eax, byte [rsi + 0x10]
cmp al, 2
je 0x78e0f0
cmp al, 1
jne 0x78df42
test edi, edi
je 0x78e2fc
mov rdx, qword [rsi]
movzx eax, word [rbx + 0x28]
test byte [rdx + 0x33], 2
je 0x78dfa0
cmp byte [rbp + 0x12], 0
jne 0x78dfa0
and eax, 0xfffffffe
mov word [rbx + 0x28], ax
test edi, edi
je 0x78dfb2
cmp byte [rbx + 0x24], 2
je 0x78dfb6
test al, 0x80
jne 0x78dfb6
cmp edi, 1
jle 0x78dfcf
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x78dfcf
mov rcx, qword [rax]
cmp rsi, rcx
jne 0x78e5d1
mov rax, qword [rax + 0x10]
test rax, rax
je 0x78dfcf
mov rdx, qword [rax]
cmp rdx, rcx
je 0x78df84
mov rax, qword [rdx]
jmp 0x78dfc0
test al, 1
je 0x78df5c
test edi, edi
mov r15d, 8
jne 0x78e140
test al, 0x80
je 0x78dfcf
mov rax, qword [rbx + 0x80]
mov rax, qword [rax]
test rax, rax
mov r15d, 0x106
jne 0x78e140
mov r8d, 1
mov edx, 1
mov rcx, rsi
call fcn.0073a930
test eax, eax
mov r15d, eax
jne 0x78e140
movzx eax, word [rbx + 0x28]
mov r10d, dword [rbx + 0x40]
and eax, 0xffffffef
test r10d, r10d
mov word [rbx + 0x28], ax
je 0x78e310
movabs r13, 0x66206574694c5153
mov rcx, qword [rbx + 0x18]
jmp 0x78e06a
test edi, edi
je 0x78e078
test byte [rbx + 0x28], 1
je 0x78e2b1
mov r14d, 8
mov r15d, 8
cmp byte [rbx + 0x24], 0
jne 0x78e140
lea rcx, [rbx + 0x18]
call fcn.0078d3a0
cmp r14d, 5
jne 0x78e140
cmp byte [rbx + 0x24], 0
jne 0x78e140
mov rcx, rbx
call fcn.0073ae60
test eax, eax
je 0x78e140
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x78e1d3
test r15d, r15d
je 0x78e015
test r15d, r15d
jne 0x78e1c0
cmp byte [rsi + 0x10], 0
jne 0x78e095
add dword [rbx + 0x3c], 1
cmp byte [rsi + 0x11], 0
jne 0x78e490
test edi, edi
movzx eax, byte [rbx + 0x24]
je 0x78e2f0
cmp al, 1
mov byte [rsi + 0x10], 2
ja 0x78e0ad
mov byte [rbx + 0x24], 2
movzx eax, word [rbx + 0x28]
mov qword [rbx + 0x80], rsi
mov r13, qword [rbx + 0x18]
and eax, 0xffffffbf
mov edx, eax
or edx, 0x40
cmp edi, 2
cmovge eax, edx
mov word [rbx + 0x28], ax
mov rax, qword [r13 + 0x50]
mov eax, dword [rax + 0x1c]
bswap eax
cmp dword [rbx + 0x40], eax
jne 0x78e4b0
test r12, r12
jne 0x78e0f5
jmp 0x78e10e
test r12, r12
je 0x78e106
mov rax, qword [rbx + 0x18]
mov rax, qword [rax + 0x50]
mov eax, dword [rax + 0x28]
bswap eax
mov dword [r12], eax
test edi, edi
je 0x78e305
mov rax, qword [rsi]
mov edx, dword [rax + 0x2d8]
cmp edx, dword [rbp + 0x80]
jle 0x78e305
cmp byte [rbp + 0xa], 0
je 0x78e305
mov rcx, rbp
call fcn.0074bbd0
mov r15d, eax
nop dword [rax + rax]
cmp byte [rsi + 0x11], 0
je 0x78e155
mov eax, dword [rsi + 0x14]
sub eax, 1
mov dword [rsi + 0x14], eax
je 0x78e3e5
mov eax, r15d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x44]
mov rcx, rax
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x44], 0
call fcn.00751430
mov r10d, dword [rsp + 0x38]
test eax, eax
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x3c]
je 0x78e6f0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rdx + 0x70]
call fcn.0078d370
mov eax, dword [rsp + 0x34]
mov qword [rbx + 0x18], 0
mov r15d, eax
nop dword [rax + rax]
cmp byte [rbx + 0x24], 0
movzx r14d, r15b
jne 0x78e042
jmp 0x78e039
mov rcx, qword [rbx]
call fcn.0078d5f0
test eax, eax
mov r15d, eax
jne 0x78e1c0
xor r9d, r9d
mov edx, 1
mov rcx, rbx
lea r8, [rsp + 0x48]
call fcn.0073adf0
test eax, eax
mov r15d, eax
jne 0x78e1c0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rbx + 8]
mov rax, qword [rbx]
mov r14, qword [rcx + 0x50]
mov rdx, qword [rdx + 0x30]
mov r8d, dword [rax + 0x20]
mov r10d, dword [r14 + 0x1c]
and edx, 0x2000000
bswap r10d
test r10d, r10d
je 0x78e236
mov r9d, dword [r14 + 0x5c]
cmp dword [r14 + 0x18], r9d
je 0x78e450
test r8d, r8d
je 0x78e244
test rdx, rdx
je 0x78e4d5
mov r11d, dword [rbx + 0x38]
xor r10d, r10d
lea edx, [r11 + 0x3fffff4]
mov r9d, 0x80808081
mov qword [rbx + 0x18], rcx
shl edx, 6
mov dword [rbx + 0x40], r10d
mov eax, edx
mul r9d
shr edx, 7
lea r8d, [rdx - 0x17]
lea edx, [r11 + 0x7fffff4]
sub r11d, 0x23
mov word [rbx + 0x2a], r8w
shl edx, 5
mov word [rbx + 0x2e], r11w
mov eax, edx
mul r9d
shr edx, 7
cmp r8w, 0x7f
lea eax, [rdx - 0x17]
mov word [rbx + 0x2c], ax
mov word [rbx + 0x30], ax
mov eax, 0x7f
cmova r8d, eax
mov byte [rbx + 0x25], r8b
jmp 0x78e06a
mov r15d, dword [rbp + 0x30]
test r15d, r15d
jne 0x78e420
mov rax, qword [rsi]
cmp byte [rax + 0x66], 2
sete byte [rbp + 0x1a]
cmp byte [rbp + 0x15], 1
je 0x78e320
mov eax, dword [rbx + 0x40]
test eax, eax
jne 0x78e081
mov rcx, rbx
call fcn.0078de50
mov r15d, eax
jmp 0x78e078
test al, al
mov byte [rsi + 0x10], 1
jne 0x78e2fc
mov byte [rbx + 0x24], 1
test r12, r12
jne 0x78e0f5
xor r15d, r15d
jmp 0x78e140
or eax, 0x10
mov word [rbx + 0x28], ax
jmp 0x78e005
mov r14, qword [rbp + 0x128]
test r14, r14
je 0x78e3f2
cmp byte [rbp + 8], 0
je 0x78e37b
cmp byte [r14 + 0x3f], 0
jne 0x78e37b
movzx eax, byte [rbp + 0x16]
cmp al, 3
jbe 0x78e503
cmp al, 5
je 0x78e503
mov r15, r14
cmp byte [r15 + 0x3f], 0
mov r14, r15
jne 0x78e376
movsx edx, word [r15 + 0x3c]
mov rcx, qword [r15 + 8]
add edx, 3
call fcn.007445c0
mov r14, qword [rbp + 0x128]
mov byte [r15 + 0x3f], 1
cmp byte [r14 + 0x42], 0
jne 0x78e023
cmp byte [r14 + 0x3f], 0
jne 0x78e3a5
mov rcx, qword [r14 + 8]
xor edx, edx
mov r8d, 1
call fcn.007445e0
test eax, eax
mov r15d, eax
jne 0x78e420
mov rax, qword [r14 + 0x30]
mov byte [r14 + 0x40], 1
lea rcx, [r14 + 0x48]
mov r8d, 0x30
mov rdx, qword [rax]
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x78e5af
mov eax, dword [rbp + 0x20]
mov byte [rbp + 0x15], 2
mov qword [rbp + 0x60], 0
mov dword [rbp + 0x2c], eax
mov dword [rbp + 0x28], eax
mov dword [rbp + 0x24], eax
jmp 0x78e2cf
mov rcx, rsi
call fcn.00744900
jmp 0x78e155
movzx eax, byte [rbp + 0x16]
cmp al, 1
jbe 0x78e4dd
cmp al, 5
je 0x78e4dd
cmp edi, 1
jle 0x78e3c8
mov edx, 4
mov rcx, rbp
call fcn.007441b0
mov r15d, eax
test r15d, r15d
je 0x78e3c8
cmp r15d, 0x205
jne 0x78e1c0
cmp byte [rbx + 0x24], 0
jne 0x78e484
lea rcx, [rbx + 0x18]
mov r14d, 5
mov r15d, 5
jmp 0x78e03d
test rdx, rdx
jne 0x78e244
cmp qword [r14], r13
je 0x78e527
mov rcx, qword [rcx + 0x70]
mov r14d, 0x1a
mov r15d, 0x1a
call fcn.0078d370
mov qword [rbx + 0x18], 0
jmp 0x78e02f
mov r15d, 0x205
jmp 0x78e140
mov byte [rsi + 0x3c], 1
mov rax, qword [rbx + 0x78]
mov qword [rsi + 0x40], rax
lea rax, [rsi + 0x30]
mov qword [rbx + 0x78], rax
jmp 0x78e095
mov rcx, qword [r13 + 0x70]
call fcn.0078afd0
test eax, eax
mov r15d, eax
jne 0x78e140
mov eax, dword [rbx + 0x40]
mov rdx, qword [r13 + 0x50]
bswap eax
mov dword [rdx + 0x1c], eax
jmp 0x78e0e0
mov r10d, r8d
jmp 0x78e459
mov edx, 2
mov rcx, rbp
call fcn.00744080
cmp edi, 1
mov r15d, eax
jle 0x78e41b
test eax, eax
jne 0x78e41b
jmp 0x78e40b
mov edx, 4
mov rcx, rbp
call fcn.00744080
test eax, eax
mov r15d, eax
jne 0x78e420
mov r15, qword [rbp + 0x128]
jmp 0x78e354
movabs rdx, 0x332074616d726f
cmp qword [r14 + 8], rdx
jne 0x78e462
cmp byte [r14 + 0x12], 2
jbe 0x78e547
or word [rbx + 0x28], 1
cmp byte [r14 + 0x13], 2
ja 0x78e462
jne 0x78e55e
test byte [rbx + 0x28], 0x20
je 0x78e169
mov edx, 3
mov rcx, rbx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x34], r10d
call fcn.0073aec0
mov r8d, dword [rsp + 0x38]
mov r10d, dword [rsp + 0x34]
cmp word [r14 + 0x15], 0x2040
je 0x78e5d9
mov rax, qword [rsp + 0x48]
mov r14d, 0x1a
mov r15d, 0x1a
mov rcx, qword [rax + 0x70]
call fcn.0078d370
mov qword [rbx + 0x18], 0
jmp 0x78e02f
cmp byte [r14 + 0x3f], 0
jne 0x78e5c7
mov rcx, qword [r14 + 8]
mov r8d, 1
xor edx, edx
call fcn.00744660
mov byte [r14 + 0x40], 0
jmp 0x78e42d
mov rdx, rcx
jmp 0x78df95
cmp byte [r14 + 0x17], 0x20
jne 0x78e588
movzx edx, byte [r14 + 0x10]
movzx eax, byte [r14 + 0x11]
shl edx, 8
shl eax, 0x10
or edx, eax
lea eax, [rdx - 1]
test eax, edx
jne 0x78e588
lea eax, [rdx - 0x101]
cmp eax, 0xfeff
ja 0x78e588
or word [rbx + 0x28], 2
mov r11d, edx
movzx eax, byte [r14 + 0x14]
sub r11d, eax
cmp edx, dword [rbx + 0x34]
jne 0x78e66a
cmp r8d, r10d
jae 0x78e63a
mov rax, qword [rbx + 8]
mov r10d, r8d
mov rax, qword [rax + 0x30]
and eax, 0x10000001
cmp rax, 1
jne 0x78e739
cmp r11d, 0x1df
mov rcx, qword [rsp + 0x48]
jbe 0x78e462
mov dword [rbx + 0x38], r11d
mov edx, dword [r14 + 0x34]
test edx, edx
setne byte [rbx + 0x21]
mov r8d, dword [r14 + 0x40]
test r8d, r8d
setne byte [rbx + 0x22]
jmp 0x78e24b
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x34], edx
mov rcx, qword [rcx + 0x70]
call fcn.0078d370
mov rcx, qword [rbx + 0x88]
mov r11d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x3c]
test rcx, rcx
mov dword [rbx + 0x38], r11d
mov dword [rbx + 0x34], edx
je 0x78e6c8
sub rcx, 4
mov dword [rsp + 0x34], eax
mov qword [rbx + 0x88], rcx
call fcn.00743bc0
mov eax, dword [rsp + 0x34]
mov qword [rbx + 0x88], 0
mov rcx, qword [rbx]
lea rdx, [rbx + 0x34]
mov r8d, eax
call fcn.007514c0
test eax, eax
mov r15d, eax
je 0x78e066
jmp 0x78e1c0
mov edx, 2
mov rcx, rbx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x34], r10d
call fcn.0073aec0
mov r9d, dword [rsp + 0x44]
mov r10d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
test r9d, r9d
jne 0x78e57f
mov rax, qword [rsp + 0x48]
xor r15d, r15d
mov rcx, qword [rax + 0x70]
call fcn.0078d370
mov rcx, qword [rbx + 0x18]
jmp 0x78e06a
lea rax, [0x00b49bdc]
mov r9d, 0x111d5
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea r8, str.database_corruption
mov r14d, 0xb
mov r15d, 0xb
lea rdx, str._s_at_line__d_of___.10s_
call fcn.00761b10
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x70]
call fcn.0078d370
mov qword [rbx + 0x18], 0
jmp 0x78e02f