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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov eax, edx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x34], eax
mov esi, ecx
mov edi, dword [eax + 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebx
mov eax, dword [edi]
dec eax
test eax, eax
jle 0x6d8ed2
lea edx, [edi + 0x78]
lea ecx, [edi + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ecx
nop
cmp dword [ecx], 0
mov eax, dword [edx - 0x18]
mov dword [esp + 0x24], eax
je 0x6d8e7a
test eax, eax
je 0x6d8e7a
mov al, byte [edx - 4]
and al, 0x20
movzx eax, al
neg eax
sbb eax, eax
add eax, 2
test byte [edx - 4], 4
mov dword [esp + 0x40], eax
je 0x6d8b5d
xor ebx, ebx
test dword [edx], 0x400
mov dword [esp + 0x2c], ebx
jne 0x6d8e9b
cmp dword [edx + 8], ebx
jne 0x6d8e9b
mov eax, dword [esp + 0x24]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x30], edx
cmp cx, word [eax + 0x22]
jge 0x6d8b47
mov dword [esp + 0x20], ecx
jmp 0x6d8a84
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xe], 2
jne 0x6d8b17
mov eax, dword [eax + ecx]
xor esi, esi
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x18], esi
jl 0x6d8b13
add edi, 0x18
mov ebx, dword [edi]
mov edx, eax
mov ecx, ebx
call fcn.006d8760
test eax, eax
js 0x6d8abf
mov ecx, dword [ebx + 4]
add eax, eax
test byte [ecx + eax*8 + 0xe], 2
je 0x6d8acf
inc esi
add edi, 0x48
cmp esi, dword [esp + 0x18]
jg 0x6d8b07
mov eax, dword [esp + 0x3c]
jmp 0x6d8aa4
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x2c]
push 0
call fcn.006c2a30
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x6d8afd
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi]
call fcn.006727b0
mov ecx, dword [ebx]
mov dword [ebx + ecx*8], eax
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
jmp 0x6d8b17
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add ecx, 0x10
inc dword [esp + 0x30]
mov dword [esp + 0x20], ecx
movsx eax, word [eax + 0x22]
cmp dword [esp + 0x30], eax
jl 0x6d8a80
mov edx, dword [esp + 0xc]
test ebx, ebx
je 0x6d8b4b
or dword [edx], 0x1400
mov dword [edx + 8], ebx
jmp 0x6d8b4b
mov edx, dword [esp + 0xc]
cmp dword [esi + 0x24], 0
jne 0x6d8eab
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
test dword [edx], 0x400
mov ecx, dword [edx + 8]
je 0x6d8e3a
cmp dword [ecx], 0
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], 0
jle 0x6d8e7a
lea eax, [ecx + 8]
mov dword [esp + 0x48], eax
nop
mov ebx, dword [eax]
mov edx, ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
call fcn.006d8760
mov dword [esp + 0x2c], eax
test eax, eax
js 0x6d8eb7
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x28]
xor edx, edx
mov ecx, dword [ecx]
shr ecx, 0xc
and ecx, 1
push ecx
push eax
lea eax, [esp + 0x24]
mov ecx, edi
push eax
push ebx
push dword [esp + 0x28]
call fcn.006d8800
add esp, 0x14
test eax, eax
je 0x6d8eb7
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push esi
push edi
call fcn.006ab6d0
mov edx, dword [esp + 0x18]
lea ecx, [edi + edi*8]
add esp, 8
mov ebx, eax
test dword [edx + ecx*8 + 0x30], 0x2000
je 0x6d8c19
mov ecx, dword [edx + ecx*8 + 0x1c]
lea eax, [esi + esi*4]
mov ecx, dword [ecx + 0x1c]
or dword [ecx + eax*4 + 0x14], 0x40
test byte [edx + 0x2c], 0x40
je 0x6d8d99
mov eax, dword [esp + 0xc]
lea edx, [edi + 1]
mov edi, dword [esp + 0x10]
xor esi, esi
mov ecx, edi
mov eax, dword [eax]
shr eax, 0xc
and eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.006d8800
add esp, 0x14
test eax, eax
je 0x6d8d9b
nop dword [eax]
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*8]
test dword [edi + eax*8 + 0x30], 0x400
lea edi, [edi + eax*8]
je 0x6d8d54
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 0x38]
call fcn.006c2b90
test eax, eax
js 0x6d8d54
test esi, esi
jne 0x6d8ca1
mov eax, dword [esp + 0x14]
mov edx, ebx
mov ecx, dword [eax]
call fcn.006af6b0
mov esi, eax
jmp 0x6d8cde
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x6d8cc0
mov eax, dword [esp + 0x14]
mov edx, esi
push ebx
mov ecx, dword [eax]
call fcn.006af720
add esp, 4
mov esi, eax
jmp 0x6d8cde
movups xmm0, xmmword [0x7d1ea4]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x7d1eb4]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ebx
push dword [esp + 0x20]
call fcn.006ab6d0
add esp, 8
mov dword [esp + 0x3c], eax
test dword [edi + 0x30], 0x2000
je 0x6d8d12
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x1c]
lea eax, [ebx + ebx*4]
or dword [ecx + eax*4 + 0x14], 0x40
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, edi
mov eax, dword [eax]
shr eax, 0xc
lea edx, [edx + 1]
and eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.006d8800
mov ebx, dword [esp + 0x50]
add esp, 0x14
test eax, eax
jne 0x6d8c60
jmp 0x6d8d6d
push dword [esp + 0x20]
push str.ambiguous_reference_to__s_in_USING__
push dword [esp + 0x1c]
call fcn.00675b90
mov edi, dword [esp + 0x1c]
add esp, 0xc
test esi, esi
je 0x6d8d9b
mov ecx, dword [esp + 0x14]
mov edx, esi
push ebx
call fcn.006af7b0
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, eax
push 0
push 0x7d6db8
call fcn.006ae4d0
add esp, 8
mov ebx, eax
jmp 0x6d8d9b
mov edi, edx
mov eax, dword [esp + 0x18]
mov edx, edi
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
inc eax
push eax
call fcn.006ab6d0
mov esi, eax
add esp, 8
mov eax, dword [esp + 0xc]
test dword [eax], 0x2000
je 0x6d8dd3
mov ecx, dword [eax - 0x14]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx + 0x1c]
lea ecx, [eax + eax*4]
or dword [edx + ecx*4 + 0x14], 0x40
mov ecx, dword [esp + 0x14]
mov edx, 0x35
push esi
push ebx
call fcn.006ae260
add esp, 8
test eax, eax
je 0x6d8df7
mov ecx, dword [esp + 0x40]
or dword [eax + 4], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x24], ecx
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov ecx, esi
push eax
mov edx, dword [ebx + 0x24]
call fcn.006ae420
mov ecx, dword [esp + 0x48]
add esp, 4
mov edx, dword [esp + 0x4c]
inc ecx
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x48]
add eax, 8
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
cmp ecx, dword [edx]
jl 0x6d8b90
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
jmp 0x6d8e7a
test ecx, ecx
je 0x6d8e7a
mov edx, dword [edx + 4]
push eax
call fcn.006d88a0
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, esi
push dword [eax + 8]
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x24]
call fcn.006ae420
mov ecx, dword [esp + 0x38]
add esp, 4
mov edx, dword [esp + 0xc]
mov dword [ecx + 0x24], eax
or dword [edx], 0x800
mov dword [edx + 8], 0
mov eax, dword [edi]
inc ebx
add dword [esp + 0x38], 0x48
add edx, 0x48
dec eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edx
cmp ebx, eax
jge 0x6d8ed2
mov ecx, dword [esp + 0x38]
jmp 0x6d8a10
push 0
push str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
push esi
call fcn.00675b90
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push str.cannot_join_using_column__s___column_not_present_in_both_tables
push esi
call fcn.00675b90
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret