Function at 0x140073440
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.140031f40
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 0x140073639
jmp 0x140073508
mov r14, qword [rsp + 0x48]
cmp qword [rdx], 0
mov rbp, qword [rbx]
jne 0x140073553
test byte [rbx + 0x12], 2
jne 0x140073553
test byte [rbp + 4], r10b
jne 0x140073553
mov r8d, dword [r8 + 0x44]
mov edx, ecx
mov rcx, rbp
call fcn.140044598
test eax, eax
je 0x140073553
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
call fcn.140043748
mov rdx, r14
mov rcx, rdi
mov r8, rax
call fcn.14004329c
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
call fcn.1400733d4
test eax, eax
je 0x140073605
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 0x1400735c4
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.140018430
mov r12b, r14b
mov rdx, qword [rsp + 0x40]
test r15, rbp
jne 0x14007360a
mov rcx, qword [rdi]
lea r14d, [r13 + 1]
mov r8d, r14d
call fcn.140073ee8
test eax, eax
jne 0x140073b03
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 0x14007360a
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 0x140073503
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 0x140073670
movsx r12d, word [r9 + 0x46]
xor ecx, ecx
mov dword [rsp + 0x58], r12d
test r12d, r12d
jle 0x140073697
mov eax, ecx
bt r15, rax
jae 0x140073687
add r13d, r10d
add ecx, r10d
cmp ecx, r12d
jl 0x14007367c
mov dword [rsp + 0xe0], r13d
test qword [r8 + 0x58], r11
je 0x1400736b1
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.140051328
mov r14, rax
test rax, rax
je 0x140073b03
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, [0x1400e3298]
cmp rbx, qword [rsp + 0x70]
jae 0x1400737d8
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.1400733d4
test eax, eax
je 0x1400737a5
mov ecx, dword [rbx + 0x28]
mov eax, 1
shl rax, cl
cmp ecx, 0x40
movabs rcx, 0x8000000000000000
cmovge rax, rcx
test rbp, rax
jne 0x1400737a5
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.140042aec
test rax, rax
je 0x14007378b
mov rcx, qword [rax]
jmp 0x140073792
lea rcx, [0x1400e3298]
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 0x140073722
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, [0x1400e3298]
xor ecx, ecx
movsxd rax, r13d
lea r10d, [rcx + 1]
test r12d, r12d
jle 0x14007381d
mov rdx, rax
lea r8, [rax + rax]
shl rdx, 3
mov eax, ecx
bt r15, rax
jae 0x140073815
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 0x1400737f1
mov rax, qword [rsp + 0xf0]
movabs rcx, 0x8000000000000000
test qword [rax + 0x58], rcx
je 0x140073870
movsxd rdx, r13d
cmp bp, word [r9 + 0x46]
jge 0x140073870
mov rcx, rdx
shl rcx, 3
add rdx, rdx
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 0x140073849
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.140031f40
mov rdx, r14
mov rcx, rdi
call fcn.1400328d0
mov rax, qword [rsp + 0xe8]
movzx ebp, byte [rbx + 0x2c]
imul rbp, rbp, 0x70
mov rax, qword [rax]
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r12, qword [rax + 8]
mov eax, 0x10
mov rcx, rsi
test byte [r12 + rbp + 0x48], al
je 0x140073935
mov ebx, dword [r12 + rbp + 0x3c]
lea edx, [rax + 0x36]
xor r8d, r8d
call fcn.140031f40
mov ecx, dword [r12 + rbp + 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.140031f40
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
lea edx, [r9 + 0xe]
jmp 0x14007393e
mov r8d, dword [rbx + 4]
mov edx, reloc.WLDAP32.dll_Ordinal_36
call fcn.140031f40
mov r15d, eax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140073978
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.140047bd4
mov rax, qword [rsp + 0x40]
bts dword [rax + 0x28], 0x11
mov al, byte [rdi + 0x1f]
test al, al
jne 0x140073987
inc dword [rdi + 0x38]
mov ebx, dword [rdi + 0x38]
jmp 0x140073996
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.140055198
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.140031f40
movsxd rcx, dword [rsi + 0x90]
test ecx, ecx
jle 0x140073a0b
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 0x140073a21
mov edx, dword [rsp + 0x50]
mov rcx, rsi
call fcn.14003233c
mov eax, 0x10
mov rcx, rsi
test byte [r12 + rbp + 0x48], al
je 0x140073a83
mov edx, dword [rsp + 0x54]
lea r9d, [r14 + r13]
call fcn.1400328fc
mov rcx, qword [rsp + 0x100]
mov edx, r15d
mov dword [rax + 8], r9d
mov eax, dword [rcx + 8]
mov r8d, dword [rcx + 4]
mov r9d, dword [r12 + rbp + 0x40]
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140073330
and dword [rsp + 0x20], 0
xor r8d, r8d
lea edx, [r8 + 0xb]
mov r9d, r15d
mov rcx, rsi
call fcn.140031f40
and dword [r12 + rbp + 0x48], 0xffffffef
jmp 0x140073aa2
mov rax, qword [rsp + 0x100]
and dword [rsp + 0x20], 0
lea r9d, [r15 + 1]
mov r8d, dword [rax + 4]
mov edx, 5
call fcn.140031f40
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x140073ac2
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov edx, 3
mov word [rax + rcx*8 - 0x16], dx
mov edx, r15d
mov rcx, rsi
call fcn.1400328fc
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
test ebx, ebx
je 0x140073aee
cmp byte [rdi + 0x1f], 8
jae 0x140073aee
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.1400328fc
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140073b18
mov rcx, qword [rdi]
mov rdx, rax
call fcn.140043584
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret