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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx]
mov rdi, rdx
movzx ebp, byte [rdx + 0x24]
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
xor edx, edx
mov r12d, dword [rsp + 0xb0]
not ebp
mov eax, dword [rax]
and ebp, 1
mov dword [rsp + 0x80], eax
mov r13d, r9d
mov dword [rsp + 0x30], edx
mov r15d, edx
lea ecx, [rax + rbp]
mov eax, dword [rdi + 8]
add ecx, dword [rsp + 0xa8]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x88], eax
test r12d, r12d
je 0x14008aa41
mov r14d, r9d
sub r14d, r12d
jmp 0x14008aa4d
mov eax, dword [rsi + 0x38]
lea r14d, [rax + 1]
add eax, ecx
mov dword [rsi + 0x38], eax
mov eax, dword [r8 + 0x14]
test eax, eax
je 0x14008aa59
inc eax
jmp 0x14008aa5d
mov eax, dword [r8 + 0x10]
dec dword [rsi + 0x44]
mov ecx, 5
mov r9d, dword [rsp + 0xa0]
mov r8d, r14d
mov rdx, qword [rdi]
test r9d, r9d
mov dword [rsp + 0x34], eax
mov eax, dword [rsi + 0x44]
mov dword [rdi + 0x1c], eax
mov eax, 1
cmovne eax, ecx
mov rcx, rsi
mov byte [rsp + 0x20], al
call fcn.14005ba70
test ebp, ebp
je 0x14008aafd
mov edx, dword [rsp + 0x80]
movsxd rcx, dword [rbx + 0x90]
add edx, r14d
mov r8d, dword [rdi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x14008aacc
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, Ordinal_122
mov rcx, rbx
call fcn.14003c8e0
jmp 0x14008aafd
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], Ordinal_122
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
test r12d, r12d
mov r12d, dword [rsp + 0x80]
jne 0x14008ab2a
mov eax, dword [rsp + 0xa8]
test eax, eax
jle 0x14008ab2a
lea r8d, [r14 + r12]
mov r9d, eax
add r8d, ebp
mov edx, r13d
mov rcx, rsi
call fcn.14005a050
lea r13, [0x1401b2bc0]
cmp dword [rsp + 0x88], r15d
jle 0x14008ae21
mov eax, dword [rsp + 0x38]
mov r9d, r14d
mov r8, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.14008a910
mov edx, dword [rsi + 0x38]
lea r8d, [r14 + r12]
mov dword [rsp + 0x30], eax
lea eax, [rdx + 1]
add edx, dword [rdi + 8]
mov dword [rsp + 0xb0], eax
mov eax, r12d
mov dword [rsi + 0x38], edx
sub eax, dword [rdi + 8]
add eax, ebp
mov dword [rsp + 0xa0], eax
test ebp, ebp
jne 0x14008ab8f
mov r8d, dword [rdi + 0xc]
mov edx, SQLAllocHandle
mov eax, 0x73
test ebp, ebp
mov rcx, rbx
cmove edx, eax
call fcn.14003ca20
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 8]
mov r8d, dword [rsp + 0xb0]
mov dword [rsp + 0x3c], eax
cmp dword [rbx + 0x94], ecx
jg 0x14008abda
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, Ordinal_88
mov rcx, rbx
call fcn.14003c8e0
jmp 0x14008ac0b
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], Ordinal_88
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
mov ecx, dword [rdi + 0x18]
test ecx, ecx
jns 0x14008ac1a
mov ecx, dword [rbx + 0x90]
dec ecx
mov rax, qword [rbx]
cmp byte [rax + 0x61], r15b
je 0x14008ac28
mov r12, r13
jmp 0x14008ac3a
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r12, [rax + rcx*8]
mov rax, qword [rsi]
cmp byte [rax + 0x61], r15b
jne 0x14008b00b
mov rbp, qword [r12 + 0x10]
xor edx, edx
mov eax, dword [rsp + 0xa0]
add eax, dword [rsp + 0xa8]
mov dword [r12 + 8], eax
movzx r8d, word [rbp + 6]
mov rcx, qword [rbp + 0x18]
call fcn.14011adb0
mov rax, qword [rbx]
cmp byte [rax + 0x61], r15b
je 0x14008ac8b
cmp qword [rax + 0x298], r15
jne 0x14008acc7
mov rcx, rbp
call fcn.14008c230
jmp 0x14008acc7
movsxd rax, dword [rbx + 0x90]
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], r15b
lea rdx, [rax + rdx*8]
je 0x14008acbf
mov r9d, 0xfffffff7
mov r8, rbp
mov rcx, rbx
call fcn.14003de00
jmp 0x14008acc7
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf7
movzx r9d, word [rbp + 8]
mov rcx, rsi
movzx eax, word [rbp + 6]
mov r8d, dword [rsp + 0x88]
sub r9d, eax
mov rdx, qword [rdi]
dec r9d
call fcn.14008c2d0
mov qword [r12 + 0x10], rax
movsxd rbp, dword [rbx + 0x90]
lea edx, [rbp + 1]
cmp dword [rbx + 0x94], ebp
jg 0x14008ad18
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x10]
call fcn.14003c8e0
jmp 0x14008ad4c
mov rax, qword [rbx + 0x88]
lea rcx, [rbp*2]
add rcx, rbp
mov dword [rbx + 0x90], edx
xor r8d, r8d
mov dword [rax + rcx*8], 0x10
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
dec dword [rsi + 0x44]
mov edx, reloc.WLDAP32.dll_Ordinal_12
mov eax, dword [rsi + 0x44]
mov rcx, rbx
mov dword [rdi + 0x14], eax
inc dword [rsi + 0x38]
mov r8d, dword [rsi + 0x38]
mov r9d, dword [rdi + 0x14]
mov dword [rdi + 0x10], r8d
call fcn.14003ca90
mov r8d, dword [rdi + 0xc]
mov edx, SQLDriverConnectW
mov rcx, rbx
call fcn.14003ca20
mov r12d, dword [rsp + 0x34]
test r12d, r12d
je 0x14008ada0
mov r9d, dword [rdi + 0x1c]
mov r8d, r12d
mov edx, SQLAllocHandle
mov rcx, rbx
call fcn.14003ca90
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rbx + 0x90]
test ecx, ecx
jns 0x14008adb1
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], r15b
je 0x14008adbf
mov rax, r13
jmp 0x14008add1
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xb0]
mov rcx, rsi
mov dword [rax + 8], edx
mov edx, r14d
mov r9d, dword [rdi + 8]
call fcn.14005a050
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x61], r15b
je 0x14008ae02
mov rax, r13
mov dword [rax + 8], edx
jmp 0x14008ae26
lea eax, [rdx - 1]
test ebp, ebp
cmovns eax, ebp
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x14008ae26
mov r12d, dword [rsp + 0x34]
test r12d, r12d
je 0x14008af6a
movsxd rcx, dword [rbx + 0x90]
mov ebp, dword [rdi + 0xc]
lea edx, [rcx + 4]
cmp dword [rbx + 0x94], ecx
jg 0x14008ae60
xor eax, eax
mov r9d, edx
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x30]
call fcn.14003c8e0
xor r8d, r8d
jmp 0x14008ae91
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x30
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14008aeb9
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x20]
call fcn.14003c8e0
jmp 0x14008aee2
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], Ordinal_36
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], r15
mov qword [rax + rcx*8 + 0x10], r8
mov r12d, dword [rsp + 0x88]
xor r9d, r9d
mov ecx, dword [rsp + 0x80]
mov r8d, ebp
sub ecx, r12d
mov dword [rsp + 0x28], ecx
mov rcx, rbx
lea eax, [r14 + r12]
lea edx, [r9 + 0x25]
mov dword [rsp + 0x20], eax
call fcn.14003d3a0
movsxd rcx, dword [rbx + 0x90]
mov r15d, eax
cmp dword [rbx + 0x94], ecx
jg 0x14008af3d
xor eax, eax
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x7b]
call fcn.14003c8e0
jmp 0x14008af72
lea eax, [rcx + 1]
xor edx, edx
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], Ordinal_127
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], rdx
jmp 0x14008af72
mov r12d, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x30]
test r9d, r9d
jne 0x14008af9d
mov eax, dword [rsp + 0x38]
mov r9d, r14d
mov r8, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.14008a910
mov r9d, eax
movzx edx, byte [rdi + 0x24]
lea eax, [r14 + r12]
mov ecx, dword [rsp + 0x38]
not dl
mov r8d, dword [rdi + 0xc]
sub ecx, r12d
mov dword [rsp + 0x28], ecx
and edx, 1
add edx, 0x83
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.14003d3a0
test r15d, r15d
je 0x14008b00b
mov edx, dword [rdi + 0x20]
test edx, edx
jne 0x14008afdd
mov edx, dword [rbx + 0x90]
test r15d, r15d
jns 0x14008afec
mov r15d, dword [rbx + 0x90]
dec r15d
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
jne 0x14008b007
movsxd rax, r15d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r13, [rax + rcx*8]
mov dword [r13 + 8], edx
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret