Function at 0x4aeaa0
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 0x4af18b
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 0x4af133
test eax, eax
je 0x4af133
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 0x4aec6a
xor ecx, ecx
test dword [edx], 0x400
mov dword [esp + 0x20], ecx
jne 0x4af154
cmp dword [edx + 8], ecx
jne 0x4af154
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x30], edi
cmp di, word [eax + 0x22]
jge 0x4aec58
xor edx, edx
mov dword [esp + 0x24], edx
jmp 0x4aeb54
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test byte [edx + eax + 0xe], 2
jne 0x4aec2a
mov eax, dword [edx + eax]
xor esi, esi
mov dword [esp + 0x3c], eax
test ebx, ebx
js 0x4aedc5
mov edi, dword [esp + 0x10]
add edi, 0x18
nop word [eax + eax]
mov ebx, dword [edi]
mov edx, eax
mov ecx, ebx
call fcn.004ae830
test eax, eax
js 0x4aeb9b
mov ecx, dword [ebx + 4]
add eax, eax
test byte [ecx + eax*8 + 0xe], 2
je 0x4aebb1
mov ebx, dword [esp + 0x18]
inc esi
add edi, 0x48
cmp esi, ebx
jg 0x4aedb8
mov eax, dword [esp + 0x3c]
jmp 0x4aeb80
mov esi, dword [esp + 0xc]
mov ecx, esi
mov edx, dword [esp + 0x20]
push 0
call fcn.004930a0
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4aec22
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jne 0x4aebdb
xor esi, esi
jmp 0x4aec19
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aebe0
sub ecx, edx
push 0
lea edi, [ecx + 1]
mov ecx, dword [esi]
push edi
test ecx, ecx
je 0x4aebfc
call fcn.0043b7c0
jmp 0x4aec01
call fcn.0043b050
mov esi, eax
add esp, 8
test esi, esi
je 0x4aec15
push edi
push ebx
push esi
call fcn.00570750
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 0x4aeb50
mov edx, dword [esp + 0x14]
test ecx, ecx
je 0x4aec58
or dword [edx], 0x1400
mov dword [edx + 8], ecx
cmp dword [esi + 0x24], 0
jne 0x4af164
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test dword [edx], 0x400
mov ecx, dword [edx + 8]
je 0x4af0f3
cmp dword [ecx], 0
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
jle 0x4af133
lea eax, [ecx + 8]
mov dword [esp + 0x44], eax
nop dword [eax + eax]
mov ebx, dword [eax]
mov edx, ebx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], ebx
call fcn.004ae830
mov dword [esp + 0x3c], eax
test eax, eax
js 0x4af170
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.004ae8d0
add esp, 0x14
test eax, eax
je 0x4af170
mov esi, dword [esp + 0x2c]
mov edx, edi
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push esi
push ebx
call fcn.00476450
mov edi, eax
lea ecx, [ebx + ebx*8]
mov eax, dword [esp + 0x18]
add esp, 8
test dword [eax + ecx*8 + 0x30], 0x2000
je 0x4aed2b
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 0x4aefae
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.004ae8d0
add esp, 0x14
test eax, eax
je 0x4aefae
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 + 0x48], eax
je 0x4aee82
mov ecx, dword [eax + 0x38]
mov edx, ebx
call fcn.00493250
test eax, eax
js 0x4aee82
test esi, esi
jne 0x4aedce
mov eax, dword [esp + 0xc]
mov edx, edi
mov ecx, dword [eax]
call fcn.0047a6e0
mov esi, eax
jmp 0x4aee0b
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
jmp 0x4aec26
mov esi, dword [esp + 0xc]
jmp 0x4aec2a
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x4aeded
mov eax, dword [esp + 0xc]
mov edx, esi
push edi
mov ecx, dword [eax]
call fcn.0047a750
add esp, 4
mov esi, eax
jmp 0x4aee0b
movups xmm0, xmmword [0x5b2030]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x5b2040]
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.00476450
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x48]
test dword [eax + 0x30], 0x2000
je 0x4aee41
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.004ae8d0
add esp, 0x14
test eax, eax
jne 0x4aed71
mov ebx, dword [esp + 0xc]
jmp 0x4aee95
push ebx
mov ebx, dword [esp + 0x10]
push str.ambiguous_reference_to__s_in_USING__
push ebx
call fcn.0043f000
add esp, 0xc
test esi, esi
je 0x4aefae
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x4aeeb8
mov ecx, dword [ebx]
mov edx, esi
push edi
call fcn.0047a750
add esp, 4
mov esi, eax
jmp 0x4aeed6
movups xmm0, xmmword [0x5b2030]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x5b2040]
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.0043b7c0
mov edi, eax
add esp, 8
test edi, edi
je 0x4aef9f
push 0x34
push 0
push edi
call fcn.00570cd0
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 + 0x5b2aa8], 0
jge 0x4aef47
cmp dl, 0x22
mov eax, 0x4000000
mov edx, 0x4000080
cmove eax, edx
or dword [edi + 4], eax
call fcn.0043f090
mov edx, dword [esp + 0xc]
mov eax, str.coalesce
mov dword [edi + 0x18], 1
sub eax, dword [edx + 0xec]
mov dword [edi + 0x24], eax
test esi, esi
je 0x4aef89
mov ecx, dword [edx]
mov eax, dword [esi]
cmp eax, dword [ecx + 0x90]
jle 0x4aef89
cmp byte [edx + 0x12], 0
jne 0x4aef89
push 0x5b7e4c
push str.too_many_arguments_on_function__T
push edx
call fcn.0043f000
add esp, 0xc
or dword [edi + 4], 8
mov edx, edi
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.00478c70
jmp 0x4aefb2
test esi, esi
je 0x4aefac
mov edx, esi
mov ecx, ebx
call fcn.0047ac20
xor edi, edi
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
push dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
inc eax
mov ecx, dword [esp + 0x28]
push eax
call fcn.00476450
mov ebx, eax
add esp, 8
mov eax, dword [esp + 0x14]
test dword [eax], 0x2000
je 0x4aefec
mov ecx, dword [eax - 0x14]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx + 0x1c]
lea ecx, [eax + eax*4]
or dword [edx + ecx*4 + 0x14], 0x40
mov ecx, dword [esi]
push 0
push 0x34
call fcn.0043b7c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4af088
push 0x34
push 0
push esi
call fcn.00570cd0
or eax, 0xffffffff
mov byte [esi], 0x35
add esp, 0xc
mov word [esi + 0x22], ax
test ebx, ebx
je 0x4af033
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 0x4af038
mov ecx, 1
mov dword [esi + 0x18], ecx
test edi, edi
je 0x4af05a
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 0x4af05a
lea ecx, [eax + 1]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov eax, dword [eax + 0x84]
cmp ecx, eax
jle 0x4af079
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push edx
call fcn.0043f000
add esp, 0xc
mov eax, dword [esp + 0x40]
or dword [esi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x24], eax
jmp 0x4af0ac
test edi, edi
je 0x4af09b
mov edx, edi
mov edi, dword [esp + 0xc]
mov ecx, dword [edi]
call fcn.004798d0
jmp 0x4af09f
mov edi, dword [esp + 0xc]
test ebx, ebx
je 0x4af0ac
mov ecx, dword [edi]
mov edx, ebx
call fcn.004798d0
mov ebx, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [ebx + 0x24]
call fcn.004791e0
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, dword [esp + 0x4c]
inc ecx
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x44]
add eax, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], eax
cmp ecx, dword [edx]
jl 0x4aeca0
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x4af133
test ecx, ecx
je 0x4af133
mov edx, dword [edx + 4]
push eax
call fcn.004ae970
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.004791e0
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 0x4af18b
mov ecx, dword [esp + 0x38]
jmp 0x4aeae0
push 0
push str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
push esi
call fcn.0043f000
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.0043f000
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