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

Disassembly:
mov r11, rsp
push rbx
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140123080]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx + 0x30], 0
mov rbx, rcx
mov r14, qword [rcx + 0x10]
mov r15, qword [rcx]
mov qword [rsp + 0x40], rdx
jne 0x14004f045
cmp byte [r15 + 0x55], 0
jne 0x14004f045
mov qword [r11 + 0x18], rbp
mov ebp, 0xfff0bdc0
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rdi
xor edi, edi
mov qword [r11 - 0x30], r12
mov r12, qword [rcx + 0x208]
mov qword [r11 - 0x38], r13
mov qword [rsp + 0x50], r12
mov rcx, qword [r12 + 0x68]
test rcx, rcx
je 0x14004ea84
mov edx, dword [r15 + 0x28]
mov ebp, edi
test edx, edx
jle 0x14004ea84
mov rax, qword [r15 + 0x20]
add rax, 0x18
cmp qword [rax], rcx
je 0x14004ea84
inc ebp
add rax, 0x20
cmp ebp, edx
jl 0x14004ea75
mov rax, qword [r15 + 0x20]
movsx r13, word [r12 + 0x3e]
mov rdx, qword [r12]
add rdx, 0x10
movsxd rcx, ebp
shl rcx, 5
mov qword [rsp + 0x60], rcx
shl r13, 5
add r13, qword [r12 + 8]
mov r8, qword [rcx + rax]
mov rcx, r15
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x58], rdx
mov rsi, qword [r13 - 0x18]
call fcn.140053c10
mov r8, qword [rsp + 0x48]
mov edx, 0x1a
mov rcx, rbx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rdi
mov r9, qword [rax]
call fcn.1400530a0
test eax, eax
jne 0x14004f01d
test rsi, rsi
je 0x14004eafc
mov rdx, qword [rsi + 0x10]
cmp byte [rdx], 0x65
cmove rsi, rdi
test byte [r13 - 5], 1
je 0x14004eb17
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.140009c50
jmp 0x14004f01d
cmp qword [r12 + 0x10], rdi
je 0x14004eb32
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.140009c50
jmp 0x14004f01d
test dword [r15 + 0x2c], 0x80000
je 0x14004eb5c
cmp qword [r12 + 0x20], rdi
je 0x14004eb5c
test rsi, rsi
je 0x14004eb5c
lea rdx, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov rcx, rbx
call fcn.140009c50
jmp 0x14004f01d
cmp byte [r13 - 8], dil
je 0x14004eb7b
test rsi, rsi
jne 0x14004eb84
lea rdx, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov rcx, rbx
call fcn.140009c50
jmp 0x14004f01d
test rsi, rsi
je 0x14004ec8b
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rdi
mov r9b, 0x41
mov qword [rsp + 0x20], rax
mov r8b, 1
mov qword [rsp + 0x70], rdi
mov rdx, rsi
mov rcx, r15
call fcn.14002b250
test eax, eax
jne 0x14004f01d
mov rsi, qword [rsp + 0x70]
test rsi, rsi
jne 0x14004ebcf
lea rdx, str.Cannot_add_a_column_with_non_constant_default
mov rcx, rbx
call fcn.140009c50
jmp 0x14004f01d
mov eax, 0x2460
test word [rsi + 8], ax
jne 0x14004ebdf
cmp dword [rsi + 0x20], edi
je 0x14004ebe7
mov rcx, rsi
call fcn.14002a4e0
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14004ec31
cmp qword [rcx + 0x298], rdi
je 0x14004ec06
mov rdx, rsi
call fcn.140006920
jmp 0x14004ec8b
cmp rsi, qword [rcx + 0x180]
jb 0x14004ec31
cmp rsi, qword [rcx + 0x188]
jae 0x14004ec31
mov rax, qword [rcx + 0x178]
mov qword [rsi], rax
dec dword [rcx + 0x160]
mov qword [rcx + 0x178], rsi
jmp 0x14004ec8b
cmp dword [0x140124d50], edi
je 0x14004ec82
mov rcx, qword [0x140128b48]
test rcx, rcx
je 0x14004ec4b
call qword [0x140124dd8]
mov rcx, rsi
call qword [0x140124d90]
dec qword [0x1401288f8]
movsxd rcx, eax
sub qword [0x1401288b0], rcx
mov rcx, rsi
call qword [0x140124d80]
mov rcx, qword [0x140128b48]
test rcx, rcx
je 0x14004ec8b
call qword [0x140124de8]
jmp 0x14004ec8b
mov rcx, rsi
call qword [0x140124d80]
mov rax, qword [rsp + 0x40]
mov r12, qword [rax]
test r12, r12
je 0x14004edfe
mov r13d, dword [rax + 8]
mov rcx, r15
lea rdx, [r13 + 1]
call fcn.140006d80
mov rsi, rax
test rax, rax
je 0x14004ecc6
mov r8d, r13d
mov rdx, r12
mov rcx, rax
call fcn.1400f3c40
mov byte [rsi + r13], dil
test rsi, rsi
je 0x14004edfe
mov rdx, qword [rsp + 0x40]
mov r12d, dword [r15 + 0x2c]
mov ecx, dword [rdx + 8]
dec ecx
add rcx, rsi
cmp rcx, rsi
jbe 0x14004ed08
lea rdx, [0x14010a2d0]
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x14004ecfd
test byte [rax + rdx], 1
je 0x14004ed08
mov byte [rcx], dil
dec rcx
cmp rcx, rsi
ja 0x14004ecf0
or dword [r15 + 0x2c], 0x200000
lea rdx, str.sqlite_master
mov rcx, qword [rsp + 0x50]
lea r9, str.sqlite_temp_master
mov r8, qword [rsp + 0x48]
cmp ebp, 1
cmovne r9, rdx
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x48]
mov qword [rsp + 0x38], rdx
lea rdx, str.UPDATE___w_._s_SET_sql__substr_sql_1__d________Q__substr_sql__d__WHERE_type__table_AND_name___Q
lea eax, [rcx + 1]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.1400538b0
cmp qword [r15 + 0x298], rdi
je 0x14004ed74
mov rdx, rsi
mov rcx, r15
call fcn.140006920
jmp 0x14004edfa
cmp rsi, qword [r15 + 0x180]
jb 0x14004eda0
cmp rsi, qword [r15 + 0x188]
jae 0x14004eda0
mov rax, qword [r15 + 0x178]
mov qword [rsi], rax
dec dword [r15 + 0x160]
mov qword [r15 + 0x178], rsi
jmp 0x14004edfa
cmp dword [0x140124d50], edi
je 0x14004edf1
mov rcx, qword [0x140128b48]
test rcx, rcx
je 0x14004edba
call qword [0x140124dd8]
mov rcx, rsi
call qword [0x140124d90]
dec qword [0x1401288f8]
movsxd rcx, eax
sub qword [0x1401288b0], rcx
mov rcx, rsi
call qword [0x140124d80]
mov rcx, qword [0x140128b48]
test rcx, rcx
je 0x14004edfa
call qword [0x140124de8]
jmp 0x14004edfa
mov rcx, rsi
call qword [0x140124d80]
mov dword [r15 + 0x2c], r12d
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14004ee0e
inc dword [rbx + 0x38]
mov esi, dword [rbx + 0x38]
jmp 0x14004ee1d
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0x18c]
mov rax, qword [r14 + 0x18]
movsxd rcx, dword [r14 + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14004ee4a
mov r9d, esi
mov dword [rsp + 0x20], 2
mov r8d, ebp
mov edx, 0x65
mov rcx, r14
call fcn.14002bbb0
jmp 0x14004ee7c
lea eax, [rcx + 1]
mov dword [r14 + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14 + 0x68]
mov word [rax + rcx*8], 0x65
mov byte [rax + rcx*8 + 3], dil
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], 2
mov qword [rax + rcx*8 + 0x10], rdi
mov eax, dword [r14 + 0xc4]
bts eax, ebp
mov dword [r14 + 0xc4], eax
cmp ebp, 1
je 0x14004eeba
mov rax, qword [r14]
mov rcx, qword [rax + 0x20]
mov rax, qword [rsp + 0x60]
mov rax, qword [rcx + rax + 8]
cmp byte [rax + 0x11], dil
je 0x14004eeba
mov eax, dword [r14 + 0xc8]
bts eax, ebp
mov dword [r14 + 0xc8], eax
mov rax, qword [r14 + 0x18]
movsxd rcx, dword [r14 + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14004eee6
mov r9d, 0xfffffffe
mov dword [rsp + 0x20], edi
mov r8d, esi
mov edx, 0x5b
mov rcx, r14
call fcn.14002bbb0
jmp 0x14004ef18
lea eax, [rcx + 1]
mov dword [r14 + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14 + 0x68]
mov word [rax + rcx*8], 0x5b
mov byte [rax + rcx*8 + 3], dil
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], 0xfffffffe
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
movsxd rcx, dword [r14 + 0xb8]
mov rax, qword [r14 + 0x18]
lea edx, [rcx + 2]
cmp dword [rax + 0x3c], ecx
jg 0x14004ef44
mov r9d, edx
mov dword [rsp + 0x20], edi
mov edx, 0x42
mov r8d, esi
mov rcx, r14
call fcn.14002bbb0
jmp 0x14004ef72
lea eax, [rcx + 1]
mov dword [r14 + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14 + 0x68]
mov word [rax + rcx*8], 0x42
mov byte [rax + rcx*8 + 3], dil
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov rax, qword [r14 + 0x18]
movsxd rcx, dword [r14 + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x14004efa2
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, ebp
mov edx, 0x66
mov rcx, r14
call fcn.14002bbb0
jmp 0x14004efd8
lea eax, [rcx + 1]
mov dword [r14 + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14 + 0x68]
mov word [rax + rcx*8], 0x66
mov byte [rax + rcx*8 + 3], dil
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], 2
mov dword [rax + rcx*8 + 0xc], 3
mov qword [rax + rcx*8 + 0x10], rdi
test esi, esi
je 0x14004f00d
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x14004f00d
movzx ecx, byte [rbx + 0x25]
lea rax, [rbx + 0xc4]
test ecx, ecx
je 0x14004f003
cmp dword [rax + 0xc], esi
je 0x14004f05f
inc edi
add rax, 0x14
cmp edi, ecx
jl 0x14004eff4
mov dword [rbx + rdx*4 + 0x18c], esi
inc byte [rbx + 0x1f]
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
mov r8, qword [rdx]
call fcn.14004dc70
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xd0]
mov r13, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d12d0
add rsp, 0xa0
pop r15
pop r14
pop rbx
ret
mov byte [rax + 6], 1
jmp 0x14004f00d