Function at 0x6d7cb0
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 0x6d81b2
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 0x6d815a
test eax, eax
je 0x6d815a
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 0x6d7e3d
xor ebx, ebx
test dword [edx], 0x400
mov dword [esp + 0x2c], ebx
jne 0x6d817b
cmp dword [edx + 8], ebx
jne 0x6d817b
mov eax, dword [esp + 0x24]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x30], edx
cmp cx, word [eax + 0x22]
jge 0x6d7e27
mov dword [esp + 0x20], ecx
jmp 0x6d7d64
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xe], 2
jne 0x6d7df7
mov eax, dword [eax + ecx]
xor esi, esi
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x18], esi
jl 0x6d7df3
add edi, 0x18
mov ebx, dword [edi]
mov edx, eax
mov ecx, ebx
call fcn.006d7a40
test eax, eax
js 0x6d7d9f
mov ecx, dword [ebx + 4]
add eax, eax
test byte [ecx + eax*8 + 0xe], 2
je 0x6d7daf
inc esi
add edi, 0x48
cmp esi, dword [esp + 0x18]
jg 0x6d7de7
mov eax, dword [esp + 0x3c]
jmp 0x6d7d84
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x2c]
push 0
call fcn.006c1d20
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x6d7ddd
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi]
call fcn.00671ab0
mov ecx, dword [ebx]
mov dword [ebx + ecx*8], eax
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
jmp 0x6d7df7
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 0x6d7d60
mov edx, dword [esp + 0xc]
test ebx, ebx
je 0x6d7e2b
or dword [edx], 0x1400
mov dword [edx + 8], ebx
jmp 0x6d7e2b
mov edx, dword [esp + 0xc]
cmp dword [esi + 0x24], 0
jne 0x6d818b
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
test dword [edx], 0x400
mov ecx, dword [edx + 8]
je 0x6d811a
cmp dword [ecx], 0
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], 0
jle 0x6d815a
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.006d7a40
mov dword [esp + 0x2c], eax
test eax, eax
js 0x6d8197
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.006d7ae0
add esp, 0x14
test eax, eax
je 0x6d8197
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.006aa9c0
mov edx, dword [esp + 0x18]
lea ecx, [edi + edi*8]
add esp, 8
mov ebx, eax
test dword [edx + ecx*8 + 0x30], 0x2000
je 0x6d7ef9
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 0x6d8079
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.006d7ae0
add esp, 0x14
test eax, eax
je 0x6d807b
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 0x6d8034
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 0x38]
call fcn.006c1e80
test eax, eax
js 0x6d8034
test esi, esi
jne 0x6d7f81
mov eax, dword [esp + 0x14]
mov edx, ebx
mov ecx, dword [eax]
call fcn.006ae9a0
mov esi, eax
jmp 0x6d7fbe
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x6d7fa0
mov eax, dword [esp + 0x14]
mov edx, esi
push ebx
mov ecx, dword [eax]
call fcn.006aea10
add esp, 4
mov esi, eax
jmp 0x6d7fbe
movups xmm0, xmmword [0x7cfe5c]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x7cfe6c]
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.006aa9c0
add esp, 8
mov dword [esp + 0x3c], eax
test dword [edi + 0x30], 0x2000
je 0x6d7ff2
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.006d7ae0
mov ebx, dword [esp + 0x50]
add esp, 0x14
test eax, eax
jne 0x6d7f40
jmp 0x6d804d
push dword [esp + 0x20]
push str.ambiguous_reference_to__s_in_USING__
push dword [esp + 0x1c]
call fcn.00674e90
mov edi, dword [esp + 0x1c]
add esp, 0xc
test esi, esi
je 0x6d807b
mov ecx, dword [esp + 0x14]
mov edx, esi
push ebx
call fcn.006aeaa0
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, eax
push 0
push 0x7d49a4
call fcn.006ad7c0
add esp, 8
mov ebx, eax
jmp 0x6d807b
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.006aa9c0
mov esi, eax
add esp, 8
mov eax, dword [esp + 0xc]
test dword [eax], 0x2000
je 0x6d80b3
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.006ad550
add esp, 8
test eax, eax
je 0x6d80d7
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.006ad710
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 0x6d7e70
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
jmp 0x6d815a
test ecx, ecx
je 0x6d815a
mov edx, dword [edx + 4]
push eax
call fcn.006d7b80
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.006ad710
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 0x6d81b2
mov ecx, dword [esp + 0x38]
jmp 0x6d7cf0
push 0
push str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
push esi
call fcn.00674e90
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.00674e90
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