Function at 0x49ea70
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 + 0x38], eax
mov esi, ecx
mov edi, dword [eax + 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ebx
mov eax, dword [edi]
dec eax
test eax, eax
jle 0x49f104
lea edx, [edi + 0x78]
lea ecx, [edi + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x3c], ecx
nop
cmp dword [ecx], 0
mov eax, dword [edx - 0x18]
mov dword [esp + 0x30], eax
je 0x49f0ac
test eax, eax
je 0x49f0ac
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 + 0x44], eax
je 0x49ec3a
xor ecx, ecx
test dword [edx], 0x400
mov dword [esp + 0x28], ecx
jne 0x49f0cd
cmp dword [edx + 8], ecx
jne 0x49f0cd
mov eax, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x34], edi
cmp di, word [eax + 0x22]
jge 0x49ec28
xor edx, edx
mov dword [esp + 0x2c], edx
jmp 0x49eb24
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
test byte [edx + eax + 0xe], 2
jne 0x49ebfa
mov eax, dword [edx + eax]
xor esi, esi
mov dword [esp + 0x40], eax
test ebx, ebx
js 0x49ed8e
mov edi, dword [esp + 0x14]
add edi, 0x18
nop word [eax + eax]
mov ebx, dword [edi]
mov edx, eax
mov ecx, ebx
call fcn.0049e7e0
test eax, eax
js 0x49eb6b
mov ecx, dword [ebx + 4]
add eax, eax
test byte [ecx + eax*8 + 0xe], 2
je 0x49eb81
mov ebx, dword [esp + 0x1c]
inc esi
add edi, 0x48
cmp esi, ebx
jg 0x49ed81
mov eax, dword [esp + 0x40]
jmp 0x49eb50
mov esi, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x28]
push 0
call fcn.004824e0
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x49ebf2
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x49ebab
xor esi, esi
jmp 0x49ebe9
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ebb0
sub ecx, edx
push 0
lea edi, [ecx + 1]
mov ecx, dword [esi]
push edi
test ecx, ecx
je 0x49ebcc
call fcn.00427e60
jmp 0x49ebd1
call fcn.00427700
mov esi, eax
add esp, 8
test esi, esi
je 0x49ebe5
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov dword [ecx + eax*8], esi
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add edx, 0x10
inc dword [esp + 0x34]
mov dword [esp + 0x2c], edx
movsx eax, word [eax + 0x22]
cmp dword [esp + 0x34], eax
jl 0x49eb20
mov edx, dword [esp + 0x18]
test ecx, ecx
je 0x49ec28
or dword [edx], 0x1400
mov dword [edx + 8], ecx
cmp dword [esi + 0x24], 0
jne 0x49f0dd
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
test dword [edx], 0x400
mov ecx, dword [edx + 8]
je 0x49f06c
cmp dword [ecx], 0
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], 0
jle 0x49f0ac
lea eax, [ecx + 8]
mov dword [esp + 0x28], eax
nop dword [eax + eax]
mov ebx, dword [eax]
mov edx, ebx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
call fcn.0049e7e0
mov dword [esp + 0x48], eax
test eax, eax
js 0x49f0e9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
xor edx, edx
mov ecx, dword [ecx]
shr ecx, 0xc
and ecx, 1
push ecx
push eax
lea eax, [esp + 0x28]
mov ecx, edi
push eax
push ebx
push dword [esp + 0x2c]
call fcn.0049e890
add esp, 0x14
test eax, eax
je 0x49f0e9
mov esi, dword [esp + 0x24]
mov edx, edi
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
push esi
push ebx
call fcn.00465150
mov edx, dword [esp + 0x1c]
lea ecx, [ebx + ebx*8]
add esp, 8
mov edi, eax
test dword [edx + ecx*8 + 0x30], 0x2000
je 0x49ecf7
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 0x49efa3
mov eax, dword [esp + 0x18]
lea edx, [ebx + 1]
mov ebx, dword [esp + 0x14]
xor esi, esi
mov ecx, ebx
mov eax, dword [eax]
shr eax, 0xc
and eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x38]
push dword [esp + 0x2c]
call fcn.0049e890
add esp, 0x14
test eax, eax
je 0x49eed3
nop dword [eax + eax]
mov eax, dword [esp + 0x20]
lea eax, [eax + eax*8]
test dword [ebx + eax*8 + 0x30], 0x400
lea ebx, [ebx + eax*8]
je 0x49ee4b
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x38]
call fcn.00482630
test eax, eax
js 0x49ee4b
test esi, esi
jne 0x49ed97
mov eax, dword [esp + 0x10]
mov edx, edi
mov ecx, dword [eax]
call fcn.004694e0
mov esi, eax
jmp 0x49edd4
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
jmp 0x49ebf6
mov esi, dword [esp + 0x10]
jmp 0x49ebfa
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x49edb6
mov eax, dword [esp + 0x10]
mov edx, esi
push edi
mov ecx, dword [eax]
call fcn.00469550
add esp, 4
mov esi, eax
jmp 0x49edd4
movups xmm0, xmmword [0x4f108c]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x4f109c]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edi
push dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
call fcn.00465150
add esp, 8
mov edi, eax
test dword [ebx + 0x30], 0x2000
je 0x49ee09
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x24]
lea eax, [eax + eax*4]
or dword [ecx + eax*4 + 0x14], 0x40
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov ecx, ebx
mov eax, dword [eax]
shr eax, 0xc
lea edx, [edx + 1]
and eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x38]
push dword [esp + 0x2c]
call fcn.0049e890
add esp, 0x14
test eax, eax
jne 0x49ed40
mov ebx, dword [esp + 0x10]
jmp 0x49ee61
push dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
push str.ambiguous_reference_to__s_in_USING__
push ebx
call fcn.0042b560
add esp, 0xc
test esi, esi
je 0x49eecf
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x49ee80
mov ecx, dword [ebx]
mov edx, esi
push edi
call fcn.00469550
add esp, 4
mov esi, eax
jmp 0x49ee9e
movups xmm0, xmmword [0x4f108c]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x4f109c]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edi
mov ebx, dword [ebx]
mov edx, 0xac
push 1
push 0x4f59c0
mov ecx, ebx
call fcn.00467c20
mov edi, eax
add esp, 8
test edi, edi
jne 0x49ef53
test esi, esi
je 0x49eecd
mov edx, esi
mov ecx, ebx
call fcn.00469a60
xor edi, edi
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, ebx
mov esi, dword [esp + 0x48]
inc eax
mov ecx, dword [esp + 0x34]
push esi
push eax
call fcn.00465150
mov ebx, eax
add esp, 8
mov eax, dword [esp + 0x18]
test dword [eax], 0x2000
je 0x49ef08
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 + 0x10]
push 0
push 0x34
mov ecx, dword [eax]
call fcn.00427e60
mov esi, eax
add esp, 8
test esi, esi
je 0x49f001
push 0x34
push 0
push esi
call sub.VCRUNTIME140.dll_memset
or eax, 0xffffffff
mov byte [esi], 0x35
add esp, 0xc
mov word [esi + 0x22], ax
test ebx, ebx
je 0x49efaa
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 0x49efaf
mov ebx, dword [esp + 0x10]
mov eax, str.coalesce
sub eax, dword [ebx + 0xf0]
mov dword [edi + 0x24], eax
test esi, esi
je 0x49ef8e
mov ecx, dword [ebx]
mov eax, dword [esi]
cmp eax, dword [ecx + 0x90]
jle 0x49ef8e
cmp byte [ebx + 0x12], 0
jne 0x49ef8e
push 0x4f59c0
push str.too_many_arguments_on_function__T
push ebx
call fcn.0042b560
add esp, 0xc
or dword [edi + 4], 8
mov edx, edi
mov ecx, ebx
mov dword [edi + 0x14], esi
call fcn.00467b40
jmp 0x49eecf
mov ebx, edx
jmp 0x49eed3
mov ecx, 1
mov dword [esi + 0x18], ecx
mov edx, ecx
test edi, edi
je 0x49efd3
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 0x49efd3
lea edx, [eax + 1]
mov dword [esi + 0x18], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x84]
cmp edx, eax
jle 0x49eff2
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.0042b560
add esp, 0xc
mov eax, dword [esp + 0x44]
or dword [esi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x24], eax
jmp 0x49f025
test edi, edi
je 0x49f014
mov edx, edi
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
call fcn.00468660
jmp 0x49f018
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x49f025
mov ecx, dword [edi]
mov edx, ebx
call fcn.00468660
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [ebx + 0x24]
call fcn.00468030
mov ecx, dword [esp + 0x44]
add esp, 4
mov edx, dword [esp + 0x4c]
inc ecx
mov edi, dword [esp + 0x14]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x28]
add eax, 8
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], eax
cmp ecx, dword [edx]
jl 0x49ec70
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x49f0ac
test ecx, ecx
je 0x49f0ac
mov edx, dword [edx + 4]
push eax
call fcn.0049e930
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, esi
push dword [eax + 8]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x24]
call fcn.00468030
mov ecx, dword [esp + 0x3c]
add esp, 4
mov edx, dword [esp + 0x18]
mov dword [ecx + 0x24], eax
or dword [edx], 0x800
mov dword [edx + 8], 0
mov eax, dword [edi]
inc ebx
add dword [esp + 0x3c], 0x48
add edx, 0x48
dec eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
cmp ebx, eax
jge 0x49f104
mov ecx, dword [esp + 0x3c]
jmp 0x49eab0
push 0
push str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
push esi
call fcn.0042b560
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.0042b560
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