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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rsi
push r14
sub rsp, 0x90
cmp dword [rcx + 0x30], 0
mov rbx, rcx
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx]
jne 0x1400d9aa0
cmp byte [r14 + 0x55], 0
jne 0x1400d9aa0
mov qword [rax - 0x20], rbp
mov ebp, 0xfff0bdc0
mov qword [rax - 0x28], rdi
xor edi, edi
mov qword [rax - 0x30], r12
mov r12, qword [rcx + 0x200]
mov qword [rax - 0x38], r13
mov qword [rax - 0x40], r15
mov qword [rsp + 0xc8], r12
mov rcx, qword [r12 + 0x70]
test rcx, rcx
je 0x1400d9606
mov edx, dword [r14 + 0x28]
mov ebp, edi
test edx, edx
jle 0x1400d9606
mov rax, qword [r14 + 0x20]
add rax, 0x18
cmp qword [rax], rcx
je 0x1400d9606
inc ebp
add rax, 0x20
cmp ebp, edx
jl 0x1400d95f7
mov rax, qword [r14 + 0x20]
movsx r13, word [r12 + 0x46]
mov rdx, qword [r12]
add rdx, 0x10
movsxd rcx, ebp
shl rcx, 5
mov qword [rsp + 0x48], rcx
shl r13, 5
add r13, qword [r12 + 8]
mov r8, qword [rcx + rax]
mov rcx, r14
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0x40], rdx
mov r15, qword [r13 - 0x18]
call fcn.1400dde40
mov r8, qword [rsp + 0xc0]
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], rdi
mov r9, qword [rax]
call fcn.1400dd420
test eax, eax
jne 0x1400d9a81
test r15, r15
je 0x1400d9684
mov rcx, qword [r15 + 0x10]
cmp byte [rcx], 0x65
cmove r15, rdi
test byte [r13 - 5], 1
je 0x1400d969f
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.14009a710
jmp 0x1400d9a81
cmp qword [r12 + 0x10], rdi
je 0x1400d96ba
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.14009a710
jmp 0x1400d9a81
test dword [r14 + 0x2c], 0x80000
je 0x1400d96e4
cmp qword [r12 + 0x20], rdi
je 0x1400d96e4
test r15, r15
je 0x1400d96e4
lea rdx, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov rcx, rbx
call fcn.14009a710
jmp 0x1400d9a81
cmp byte [r13 - 8], dil
je 0x1400d9703
test r15, r15
jne 0x1400d9708
lea rdx, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov rcx, rbx
call fcn.14009a710
jmp 0x1400d9a81
test r15, r15
je 0x1400d9761
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rdi
mov r9b, 0x41
mov qword [rsp + 0x20], rax
mov r8b, 1
mov qword [rsp + 0xb0], rdi
mov rdx, r15
mov rcx, r14
call fcn.1400b8fe0
test eax, eax
jne 0x1400d9a81
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
jne 0x1400d975c
lea rdx, str.Cannot_add_a_column_with_non_constant_default
mov rcx, rbx
call fcn.14009a710
jmp 0x1400d9a81
call fcn.1400b9540
mov rax, qword [rsp + 0xb8]
mov r12, qword [rax]
test r12, r12
je 0x1400d9874
mov r13d, dword [rax + 8]
mov rcx, r14
lea rdx, [r13 + 1]
call fcn.140097cc0
mov r15, rax
test rax, rax
je 0x1400d9874
mov r8d, r13d
mov rdx, r12
mov rcx, rax
call fcn.1401756a0
mov rdx, qword [rsp + 0xb8]
mov byte [r15 + r13], dil
mov r12d, dword [r14 + 0x2c]
mov edx, dword [rdx + 8]
dec edx
add rdx, r15
cmp rdx, r15
jbe 0x1400d97db
lea rcx, [0x1401d81c0]
movzx eax, byte [rdx]
cmp al, 0x3b
je 0x1400d97d0
test byte [rax + rcx], 1
je 0x1400d97db
mov byte [rdx], dil
dec rdx
cmp rdx, r15
ja 0x1400d97c3
mov rax, qword [rsp + 0xc8]
lea r9, str.sqlite_master
or dword [r14 + 0x2c], 0x200000
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x50]
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], r15
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.1400ddbf0
cmp qword [r14 + 0x298], rdi
je 0x1400d983c
mov rdx, r15
mov rcx, r14
call fcn.140097930
jmp 0x1400d9870
cmp r15, qword [r14 + 0x180]
jb 0x1400d9868
cmp r15, qword [r14 + 0x188]
jae 0x1400d9868
mov rax, qword [r14 + 0x178]
mov qword [r15], rax
dec dword [r14 + 0x160]
mov qword [r14 + 0x178], r15
jmp 0x1400d9870
mov rcx, r15
call fcn.1400978c0
mov dword [r14 + 0x2c], r12d
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1400d9885
inc dword [rbx + 0x38]
mov r14d, dword [rbx + 0x38]
jmp 0x1400d9895
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0x18c]
mov rax, qword [rsi + 0x18]
movsxd rcx, dword [rsi + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400d98c2
mov r9d, r14d
mov dword [rsp + 0x20], 2
mov r8d, ebp
mov edx, 0x66
mov rcx, rsi
call fcn.1400b9830
jmp 0x1400d98f0
lea eax, [rcx + 1]
mov dword [rsi + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x68]
mov dword [rax + rcx*8], 0x66
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], 2
mov qword [rax + rcx*8 + 0x10], rdi
mov eax, dword [rsi + 0xc4]
bts eax, ebp
mov dword [rsi + 0xc4], eax
cmp ebp, 1
je 0x1400d992a
mov rax, qword [rsi]
mov rcx, qword [rax + 0x20]
mov rax, qword [rsp + 0x48]
mov rax, qword [rcx + rax + 8]
cmp byte [rax + 0x11], dil
je 0x1400d992a
mov eax, dword [rsi + 0xc8]
bts eax, ebp
mov dword [rsi + 0xc8], eax
mov rax, qword [rsi + 0x18]
movsxd rcx, dword [rsi + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400d9955
mov r9d, 0xfffffffe
mov dword [rsp + 0x20], edi
mov r8d, r14d
mov rcx, rsi
lea edx, [r9 + 0x5e]
call fcn.1400b9830
jmp 0x1400d9983
lea eax, [rcx + 1]
mov dword [rsi + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x68]
mov dword [rax + rcx*8], 0x5c
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], 0xfffffffe
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
movsxd rcx, dword [rsi + 0xb8]
mov rax, qword [rsi + 0x18]
lea edx, [rcx + 2]
cmp dword [rax + 0x3c], ecx
jg 0x1400d99af
mov r9d, edx
mov dword [rsp + 0x20], edi
mov edx, 0x43
mov r8d, r14d
mov rcx, rsi
call fcn.1400b9830
jmp 0x1400d99d9
lea eax, [rcx + 1]
mov dword [rsi + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x68]
mov dword [rax + rcx*8], 0x43
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov rax, qword [rsi + 0x18]
movsxd rcx, dword [rsi + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400d9a08
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, ebp
mov rcx, rsi
lea edx, [r9 + 0x65]
call fcn.1400b9830
jmp 0x1400d9a39
lea eax, [rcx + 1]
mov dword [rsi + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x68]
mov dword [rax + rcx*8], 0x67
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 r14d, r14d
je 0x1400d9a71
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x1400d9a71
movzx ecx, byte [rbx + 0x25]
lea rax, [rbx + 0xc4]
test ecx, ecx
je 0x1400d9a66
cmp dword [rax + 0xc], r14d
je 0x1400d9aac
inc edi
add rax, 0x14
cmp edi, ecx
jl 0x1400d9a56
mov dword [rbx + rdx*4 + 0x18c], r14d
inc byte [rbx + 0x1f]
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
mov r8, qword [rdx]
call fcn.1400d8b90
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov r15, qword [rsp + 0x68]
add rsp, 0x90
pop r14
pop rsi
pop rbx
ret
mov byte [rax + 6], 1
jmp 0x1400d9a71