Function at 0x4aaa00
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 + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebx
mov eax, dword [edi]
dec eax
test eax, eax
jle 0x4ab0e6
lea edx, [edi + 0x78]
lea ecx, [edi + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], ecx
nop
cmp dword [ecx], 0
mov eax, dword [edx - 0x18]
mov dword [esp + 0x28], eax
je 0x4ab08e
test eax, eax
je 0x4ab08e
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 0x4aabca
xor ecx, ecx
test dword [edx], 0x400
mov dword [esp + 0x20], ecx
jne 0x4ab0af
cmp dword [edx + 8], ecx
jne 0x4ab0af
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x30], edi
cmp di, word [eax + 0x22]
jge 0x4aabb8
xor edx, edx
mov dword [esp + 0x24], edx
jmp 0x4aaab4
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test byte [edx + eax + 0xe], 2
jne 0x4aab8a
mov eax, dword [edx + eax]
xor esi, esi
mov dword [esp + 0x3c], eax
test ebx, ebx
js 0x4aad25
mov edi, dword [esp + 0x10]
add edi, 0x18
nop word [eax + eax]
mov ebx, dword [edi]
mov edx, eax
mov ecx, ebx
call fcn.004aa780
test eax, eax
js 0x4aaafb
mov ecx, dword [ebx + 4]
add eax, eax
test byte [ecx + eax*8 + 0xe], 2
je 0x4aab11
mov ebx, dword [esp + 0x18]
inc esi
add edi, 0x48
cmp esi, ebx
jg 0x4aad18
mov eax, dword [esp + 0x3c]
jmp 0x4aaae0
mov esi, dword [esp + 0xc]
mov ecx, esi
mov edx, dword [esp + 0x20]
push 0
call fcn.0048d1b0
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4aab82
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jne 0x4aab3b
xor esi, esi
jmp 0x4aab79
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aab40
sub ecx, edx
push 0
lea edi, [ecx + 1]
mov ecx, dword [esi]
push edi
test ecx, ecx
je 0x4aab5c
call fcn.0042f570
jmp 0x4aab61
call fcn.0042ee10
mov esi, eax
add esp, 8
test esi, esi
je 0x4aab75
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov dword [ecx + eax*8], esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add edx, 0x10
inc dword [esp + 0x30]
mov dword [esp + 0x24], edx
movsx eax, word [eax + 0x22]
cmp dword [esp + 0x30], eax
jl 0x4aaab0
mov edx, dword [esp + 0x14]
test ecx, ecx
je 0x4aabb8
or dword [edx], 0x1400
mov dword [edx + 8], ecx
cmp dword [esi + 0x28], 0
jne 0x4ab0bf
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test dword [edx], 0x400
mov ecx, dword [edx + 8]
je 0x4ab04e
cmp dword [ecx], 0
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], 0
jle 0x4ab08e
lea eax, [ecx + 8]
mov dword [esp + 0x20], eax
nop dword [eax + eax]
mov ebx, dword [eax]
mov edx, ebx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], ebx
call fcn.004aa780
mov dword [esp + 0x48], eax
test eax, eax
js 0x4ab0cb
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
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.004aa820
add esp, 0x14
test eax, eax
je 0x4ab0cb
mov esi, dword [esp + 0x2c]
mov edx, edi
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push esi
push ebx
call fcn.0046f130
mov edi, eax
lea ecx, [ebx + ebx*8]
mov eax, dword [esp + 0x18]
add esp, 8
test dword [eax + ecx*8 + 0x30], 0x2000
je 0x4aac8b
mov ecx, dword [eax + ecx*8 + 0x1c]
lea eax, [esi + esi*4]
mov ecx, dword [ecx + 0x1c]
or dword [ecx + eax*4 + 0x14], 0x40
mov eax, dword [esp + 0x10]
test byte [eax + 0x2c], 0x40
je 0x4aaf0a
mov eax, dword [esp + 0x14]
lea edx, [ebx + 1]
mov ecx, dword [esp + 0x10]
xor esi, esi
mov eax, dword [eax]
shr eax, 0xc
and eax, 1
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x28]
call fcn.004aa820
add esp, 0x14
test eax, eax
je 0x4aaf0a
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax*8]
test dword [ecx + eax*8 + 0x30], 0x400
lea eax, [ecx + eax*8]
mov dword [esp + 0x44], eax
je 0x4aade2
mov ecx, dword [eax + 0x38]
mov edx, ebx
call fcn.0048d360
test eax, eax
js 0x4aade2
test esi, esi
jne 0x4aad2e
mov eax, dword [esp + 0xc]
mov edx, edi
mov ecx, dword [eax]
call fcn.00473940
mov esi, eax
jmp 0x4aad6b
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
jmp 0x4aab86
mov esi, dword [esp + 0xc]
jmp 0x4aab8a
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x4aad4d
mov eax, dword [esp + 0xc]
mov edx, esi
push edi
mov ecx, dword [eax]
call fcn.004739b0
add esp, 4
mov esi, eax
jmp 0x4aad6b
movups xmm0, xmmword [0x505b68]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x505b78]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edi
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push ebx
push dword [esp + 0x20]
call fcn.0046f130
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x44]
test dword [eax + 0x30], 0x2000
je 0x4aada1
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
lea eax, [ebx + ebx*4]
or dword [ecx + eax*4 + 0x14], 0x40
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
shr eax, 0xc
lea edx, [edx + 1]
and eax, 1
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push dword [esp + 0x28]
call fcn.004aa820
add esp, 0x14
test eax, eax
jne 0x4aacd1
mov ebx, dword [esp + 0xc]
jmp 0x4aadf5
push ebx
mov ebx, dword [esp + 0x10]
push str.ambiguous_reference_to__s_in_USING__
push ebx
call fcn.00432d50
add esp, 0xc
test esi, esi
je 0x4aaf0a
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x4aae18
mov ecx, dword [ebx]
mov edx, esi
push edi
call fcn.004739b0
add esp, 4
mov esi, eax
jmp 0x4aae36
movups xmm0, xmmword [0x505b68]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x505b78]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edi
mov ebx, dword [ebx]
mov ecx, ebx
push 0
push 0x3d
call fcn.0042f570
mov edi, eax
add esp, 8
test edi, edi
je 0x4aaefb
push 0x34
push 0
push edi
call sub.VCRUNTIME140.dll_memset
or eax, 0xffffffff
mov byte [edi], 0xac
mov word [edi + 0x22], ax
add esp, 0xc
lea eax, [edi + 0x34]
mov dword [edi + 8], eax
mov dword [eax], 0x6c616f63
mov dword [eax + 4], 0x65637365
mov byte [eax + 8], 0
mov ecx, dword [edi + 8]
mov dl, byte [ecx]
movzx eax, dl
cmp byte [eax + 0x506118], 0
jge 0x4aaea7
cmp dl, 0x22
mov eax, 0x4000000
mov edx, 0x4000080
cmove eax, edx
or dword [edi + 4], eax
call fcn.00432de0
mov ebx, dword [esp + 0xc]
mov eax, str.coalesce
mov dword [edi + 0x18], 1
sub eax, dword [ebx + 0xf8]
mov dword [edi + 0x24], eax
test esi, esi
je 0x4aaee9
mov ecx, dword [ebx]
mov eax, dword [esi]
cmp eax, dword [ecx + 0x90]
jle 0x4aaee9
cmp byte [ebx + 0x12], 0
jne 0x4aaee9
push 0x50a660
push str.too_many_arguments_on_function__T
push ebx
call fcn.00432d50
add esp, 0xc
or dword [edi + 4], 8
mov edx, edi
mov ecx, ebx
mov dword [edi + 0x14], esi
call fcn.00471d90
jmp 0x4aaf0a
test esi, esi
je 0x4aaf08
mov edx, esi
mov ecx, ebx
call fcn.00473e80
xor edi, edi
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x48]
inc eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push esi
push eax
call fcn.0046f130
mov ebx, eax
add esp, 8
mov eax, dword [esp + 0x14]
test dword [eax], 0x2000
je 0x4aaf41
mov ecx, dword [eax - 0x14]
mov edx, dword [ecx + 0x1c]
lea ecx, [esi + esi*4]
or dword [edx + ecx*4 + 0x14], 0x40
mov eax, dword [esp + 0xc]
push 0
push 0x34
mov ecx, dword [eax]
call fcn.0042f570
mov esi, eax
add esp, 8
test esi, esi
je 0x4aafe3
push 0x34
push 0
push esi
call sub.VCRUNTIME140.dll_memset
or eax, 0xffffffff
mov byte [esi], 0x36
add esp, 0xc
mov word [esi + 0x22], ax
test ebx, ebx
je 0x4aaf8c
mov dword [esi + 0x10], ebx
mov eax, dword [ebx + 4]
and eax, 0x400208
or dword [esi + 4], eax
mov ecx, dword [ebx + 0x18]
inc ecx
jmp 0x4aaf91
mov ecx, 1
mov dword [esi + 0x18], ecx
mov edx, ecx
test edi, edi
je 0x4aafb5
mov dword [esi + 0xc], edi
mov eax, dword [edi + 4]
and eax, 0x400208
or dword [esi + 4], eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
jl 0x4aafb5
lea edx, [eax + 1]
mov dword [esi + 0x18], edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x84]
cmp edx, eax
jle 0x4aafd4
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.00432d50
add esp, 0xc
mov eax, dword [esp + 0x40]
or dword [esi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x24], eax
jmp 0x4ab007
test edi, edi
je 0x4aaff6
mov edx, edi
mov edi, dword [esp + 0xc]
mov ecx, dword [edi]
call fcn.00472a80
jmp 0x4aaffa
mov edi, dword [esp + 0xc]
test ebx, ebx
je 0x4ab007
mov ecx, dword [edi]
mov edx, ebx
call fcn.00472a80
mov ebx, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [ebx + 0x24]
call fcn.00472310
mov ecx, dword [esp + 0x40]
add esp, 4
mov edx, dword [esp + 0x4c]
inc ecx
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x20]
add eax, 8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], eax
cmp ecx, dword [edx]
jl 0x4aac00
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x4ab08e
test ecx, ecx
je 0x4ab08e
mov edx, dword [edx + 4]
push eax
call fcn.004aa8c0
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, esi
push dword [eax + 8]
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x24]
call fcn.00472310
mov ecx, dword [esp + 0x38]
add esp, 4
mov edx, dword [esp + 0x14]
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 + 0x14], edx
cmp ebx, eax
jge 0x4ab0e6
mov ecx, dword [esp + 0x38]
jmp 0x4aaa40
push 0
push str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
push esi
call fcn.00432d50
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.00432d50
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