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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rsi, qword [rcx + 0x10]
xor eax, eax
mov r15, rdx
mov rdi, rcx
lea edx, [rax + 0x11]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov r12b, al
mov r14d, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x80], rsi
mov dword [rsp + 0x20], eax
call fcn.140031350
mov rbx, qword [r15 + 0x20]
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rcx + 0x48]
mov r8, qword [rsp + 0xf0]
mov dword [rsp + 0x68], eax
movsxd rax, dword [r15 + 0x14]
mov r9, qword [r8 + 0x20]
xor r13d, r13d
shl rax, 6
xor r15d, r15d
mov dword [rsp + 0xe0], r13d
add rax, rbx
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x40], rdx
lea ecx, [r14 + 3]
lea r10d, [r14 + 1]
movabs r11, 0x8000000000000000
mov qword [rsp + 0x70], rax
cmp rbx, rax
jae 0x140072391
jmp 0x140072260
mov r14, qword [rsp + 0x48]
cmp qword [rdx], 0
mov rbp, qword [rbx]
jne 0x1400722ab
test byte [rbx + 0x12], 2
jne 0x1400722ab
test byte [rbp + 4], r10b
jne 0x1400722ab
mov r8d, dword [r8 + 0x44]
mov edx, ecx
mov rcx, rbp
call fcn.140043990
test eax, eax
je 0x1400722ab
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
call fcn.140042b40
mov rdx, r14
mov rcx, rdi
mov r8, rax
call fcn.140042694
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
call fcn.14007212c
test eax, eax
je 0x14007235d
movsxd rcx, dword [rbx + 0x28]
mov r14d, 1
movabs rax, 0x8000000000000000
mov ebp, r14d
shl rbp, cl
cmp ecx, 0x40
cmovge rbp, rax
test r12b, r12b
jne 0x14007231c
mov rax, rcx
mov rcx, qword [rsp + 0x60]
lea rdx, str.automatic_index_on__s__s_
mov r9, qword [rcx + 8]
mov r8, qword [rcx]
shl rax, 5
mov r9, qword [rax + r9]
mov ecx, 0x11c
call fcn.140018170
mov r12b, r14b
mov rdx, qword [rsp + 0x40]
test r15, rbp
jne 0x140072362
mov rcx, qword [rdi]
lea r14d, [r13 + 1]
mov r8d, r14d
call fcn.140072c3c
test eax, eax
jne 0x140072859
mov rdx, qword [rsp + 0x40]
movsxd rcx, r13d
mov dword [rsp + 0xe0], r14d
mov rax, qword [rdx + 0x38]
mov r13d, r14d
or r15, rbp
mov qword [rax + rcx*8], rbx
jmp 0x140072362
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0xf0]
add rbx, 0x40
mov ecx, 3
lea r10d, [rcx - 2]
cmp rbx, qword [rsp + 0x70]
jb 0x14007225b
mov r9, qword [rsp + 0x60]
movabs r11, 0x8000000000000000
not r15
mov word [rdx + 0x2c], r13w
mov word [rdx + 0x18], r13w
or r15, r11
mov dword [rdx + 0x28], 0x4241
mov ebp, 0x3f
and r15, qword [r8 + 0x58]
mov r12d, ebp
mov qword [rsp + 0x88], r15
cmp bp, word [r9 + 0x46]
jl 0x1400723c8
movsx r12d, word [r9 + 0x46]
xor ecx, ecx
mov dword [rsp + 0x58], r12d
test r12d, r12d
jle 0x1400723ef
mov eax, ecx
bt r15, rax
jae 0x1400723df
add r13d, r10d
add ecx, r10d
cmp ecx, r12d
jl 0x1400723d4
mov dword [rsp + 0xe0], r13d
test qword [r8 + 0x58], r11
je 0x140072409
movsx eax, word [r9 + 0x46]
add r13d, 0xffffffc1
add r13d, eax
mov dword [rsp + 0xe0], r13d
mov rcx, qword [rdi]
lea edx, [r10 + r13]
lea r9, [rsp + 0x78]
xor r8d, r8d
call fcn.140050394
mov r14, rax
test rax, rax
je 0x140072859
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xe8]
mov qword [rax + 0x20], r14
xor r13d, r13d
lea rax, str.auto_index
and qword [rsp + 0x78], r13
mov qword [r14 + 0x18], r9
mov qword [r14], rax
mov rbx, qword [rbx + 0x20]
lea r11, [0x1400e4c88]
cmp rbx, qword [rsp + 0x70]
jae 0x140072530
mov rbp, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
xor r12d, r12d
xor esi, esi
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
call fcn.14007212c
test eax, eax
je 0x1400724fd
mov ecx, dword [rbx + 0x28]
mov eax, 1
shl rax, cl
cmp ecx, 0x40
movabs rcx, 0x8000000000000000
cmovge rax, rcx
test rbp, rax
jne 0x1400724fd
mov rdx, qword [rbx]
mov rcx, qword [r14 + 8]
or rbp, rax
movzx eax, word [rbx + 0x28]
mov word [rsi + rcx], ax
mov r8, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x10]
mov rcx, rdi
call fcn.140041ee4
test rax, rax
je 0x1400724e3
mov rcx, qword [rax]
jmp 0x1400724ea
lea rcx, [0x1400e4c88]
mov rax, qword [r14 + 0x40]
inc r13d
add rsi, 2
mov qword [r12 + rax], rcx
add r12, 8
add rbx, 0x40
cmp rbx, r15
jb 0x14007247a
mov rsi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov r12d, dword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
mov ebp, 0x3f
lea r11, [0x1400e4c88]
xor ecx, ecx
lea r10d, [rcx + 1]
test r12d, r12d
jle 0x140072575
movsxd rax, r13d
mov rdx, rax
shl rdx, 3
lea r8, [rax + rax]
mov eax, ecx
bt r15, rax
jae 0x14007256d
mov rax, qword [r14 + 8]
add r13d, r10d
mov word [r8 + rax], cx
mov rax, qword [r14 + 0x40]
add r8, 2
mov qword [rdx + rax], r11
add rdx, 8
add ecx, r10d
cmp ecx, r12d
jl 0x140072549
mov rax, qword [rsp + 0xf0]
movabs rcx, 0x8000000000000000
test qword [rax + 0x58], rcx
je 0x1400725c9
cmp bp, word [r9 + 0x46]
jge 0x1400725c9
movsxd rax, r13d
mov rcx, rax
shl rcx, 3
lea rdx, [rax + rax]
mov rax, qword [r14 + 8]
add r13d, r10d
mov word [rdx + rax], bp
mov rax, qword [r14 + 0x40]
add ebp, r10d
mov qword [rcx + rax], r11
movsx eax, word [r9 + 0x46]
lea rdx, [rdx + 2]
lea rcx, [rcx + 8]
cmp ebp, eax
jl 0x1400725a2
mov rax, qword [r14 + 8]
mov rbx, qword [rsp + 0x100]
mov r9d, dword [rsp + 0xe0]
and dword [rsp + 0x20], 0
or edx, 0xffffffff
movsxd rcx, r13d
mov word [rax + rcx*2], dx
mov rax, qword [r14 + 0x40]
mov edx, reloc.ODBC32.dll_SQLExecDirectW
mov qword [rax + rcx*8], r11
mov eax, dword [rdi + 0x34]
mov rcx, rsi
mov dword [rbx + 8], eax
add dword [rdi + 0x34], r10d
mov r8d, dword [rbx + 8]
inc r9d
call fcn.140031350
mov rdx, r14
mov rcx, rdi
call fcn.140031cd4
movzx eax, byte [rbx + 0x2c]
and dword [rsp + 0x20], 0
imul r15, rax, 0x70
mov rax, qword [rsp + 0xe8]
xor r9d, r9d
mov rcx, rsi
mov rax, qword [rax]
mov r12, qword [rax + 8]
mov eax, 0x10
test byte [r15 + r12 + 0x48], al
je 0x14007268e
mov ebx, dword [r15 + r12 + 0x3c]
lea edx, [rax + 0x36]
xor r8d, r8d
call fcn.140031350
mov ecx, dword [r15 + r12 + 0x38]
xor r9d, r9d
mov dword [rsp + 0x20], ecx
lea edx, [r9 + 0xd]
mov r8d, ebx
mov rcx, rsi
mov dword [rsp + 0x54], eax
call fcn.140031350
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
lea edx, [r9 + 0xe]
jmp 0x140072697
mov r8d, dword [rbx + 4]
mov edx, reloc.WLDAP32.dll_Ordinal_36
call fcn.140031350
mov ebp, eax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400726d0
dec dword [rdi + 0x44]
mov ecx, dword [rdi + 0x44]
mov r9d, 0x10
mov dword [rsp + 0x50], ecx
mov r8d, ecx
mov rcx, rdi
mov rdx, rax
call fcn.140046fc8
mov rax, qword [rsp + 0x40]
bts dword [rax + 0x28], 0x11
mov al, byte [rdi + 0x1f]
test al, al
jne 0x1400726df
inc dword [rdi + 0x38]
mov ebx, dword [rdi + 0x38]
jmp 0x1400726ee
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0xbc]
and dword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x100]
and qword [rsp + 0x30], 0
mov r8d, dword [rcx + 4]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9d, ebx
mov rdx, r14
mov rcx, rdi
call fcn.14005419c
and dword [rsp + 0x20], 0
mov r9d, ebx
mov r14d, eax
mov rax, qword [rsp + 0x100]
mov edx, Ordinal_133
mov r8d, dword [rax + 8]
mov rcx, rsi
call fcn.140031350
movsxd rcx, dword [rsi + 0x90]
test ecx, ecx
jle 0x140072763
lea r8, [rcx + rcx*2]
mov rcx, qword [rsi + 0x88]
mov eax, 0x10
mov word [rcx + r8*8 - 0x16], ax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140072779
mov edx, dword [rsp + 0x50]
mov rcx, rsi
call fcn.14003174c
mov eax, 0x10
mov rcx, rsi
test byte [r15 + r12 + 0x48], al
je 0x1400727da
mov edx, dword [rsp + 0x54]
lea r9d, [r14 + r13]
call fcn.140031d00
mov rcx, qword [rsp + 0x100]
mov edx, ebp
mov dword [rax + 8], r9d
mov eax, dword [rcx + 8]
mov r8d, dword [rcx + 4]
mov r9d, dword [r15 + r12 + 0x40]
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140072088
and dword [rsp + 0x20], 0
xor r8d, r8d
lea edx, [r8 + 0xb]
mov r9d, ebp
mov rcx, rsi
call fcn.140031350
and dword [r15 + r12 + 0x48], 0xffffffef
jmp 0x1400727f9
mov rax, qword [rsp + 0x100]
and dword [rsp + 0x20], 0
lea r9d, [rbp + 1]
mov r8d, dword [rax + 4]
mov edx, 5
call fcn.140031350
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x140072819
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov edx, 3
mov word [rax + rcx*8 - 0x16], dx
mov edx, ebp
mov rcx, rsi
call fcn.140031d00
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
test ebx, ebx
je 0x140072844
cmp byte [rdi + 0x1f], 8
jae 0x140072844
movzx eax, byte [rdi + 0x1f]
mov dword [rdi + rax*4 + 0xbc], ebx
inc byte [rdi + 0x1f]
mov edx, dword [rsp + 0x68]
mov rcx, rsi
call fcn.140031d00
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14007286e
mov rcx, qword [rdi]
mov rdx, rax
call fcn.14004297c
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret