Function at 0x494150
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 0x49483e
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 0x4947e6
test eax, eax
je 0x4947e6
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 0x49431a
xor ecx, ecx
test dword [edx], 0x400
mov dword [esp + 0x28], ecx
jne 0x494807
cmp dword [edx + 8], ecx
jne 0x494807
mov eax, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x34], edi
cmp di, word [eax + 0x22]
jge 0x494308
xor edx, edx
mov dword [esp + 0x2c], edx
jmp 0x494204
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
test byte [edx + eax + 0xe], 2
jne 0x4942da
mov eax, dword [edx + eax]
xor esi, esi
mov dword [esp + 0x40], eax
test ebx, ebx
js 0x49446e
mov edi, dword [esp + 0x14]
add edi, 0x18
nop word [eax + eax]
mov ebx, dword [edi]
mov edx, eax
mov ecx, ebx
call fcn.00493ec0
test eax, eax
js 0x49424b
mov ecx, dword [ebx + 4]
add eax, eax
test byte [ecx + eax*8 + 0xe], 2
je 0x494261
mov ebx, dword [esp + 0x1c]
inc esi
add edi, 0x48
cmp esi, ebx
jg 0x494461
mov eax, dword [esp + 0x40]
jmp 0x494230
mov esi, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x28]
push 0
call fcn.00476750
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4942d2
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x49428b
xor esi, esi
jmp 0x4942c9
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494290
sub ecx, edx
push 0
lea edi, [ecx + 1]
mov ecx, dword [esi]
push edi
test ecx, ecx
je 0x4942ac
call fcn.004190c0
jmp 0x4942b1
call fcn.00418960
mov esi, eax
add esp, 8
test esi, esi
je 0x4942c5
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 0x494200
mov edx, dword [esp + 0x18]
test ecx, ecx
je 0x494308
or dword [edx], 0x1400
mov dword [edx + 8], ecx
cmp dword [esi + 0x24], 0
jne 0x494817
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
test dword [edx], 0x400
mov ecx, dword [edx + 8]
je 0x4947a6
cmp dword [ecx], 0
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], 0
jle 0x4947e6
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.00493ec0
mov dword [esp + 0x48], eax
test eax, eax
js 0x494823
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.00493f70
add esp, 0x14
test eax, eax
je 0x494823
mov esi, dword [esp + 0x24]
mov edx, edi
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
push esi
push ebx
call fcn.00458c40
mov edx, dword [esp + 0x1c]
lea ecx, [ebx + ebx*8]
add esp, 8
mov edi, eax
test dword [edx + ecx*8 + 0x30], 0x2000
je 0x4943d7
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 0x4946dd
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.00493f70
add esp, 0x14
test eax, eax
je 0x494649
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 0x49452b
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x38]
call fcn.00476900
test eax, eax
js 0x49452b
test esi, esi
jne 0x494477
mov eax, dword [esp + 0x10]
mov edx, edi
mov ecx, dword [eax]
call fcn.0045d400
mov esi, eax
jmp 0x4944b4
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
jmp 0x4942d6
mov esi, dword [esp + 0x10]
jmp 0x4942da
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x494496
mov eax, dword [esp + 0x10]
mov edx, esi
push edi
mov ecx, dword [eax]
call fcn.0045d470
add esp, 4
mov esi, eax
jmp 0x4944b4
movups xmm0, xmmword [0x55b010]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x55b020]
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.00458c40
add esp, 8
mov edi, eax
test dword [ebx + 0x30], 0x2000
je 0x4944e9
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.00493f70
add esp, 0x14
test eax, eax
jne 0x494420
mov ebx, dword [esp + 0x10]
jmp 0x494541
push dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
push str.ambiguous_reference_to__s_in_USING__
push ebx
call fcn.0041c7c0
add esp, 0xc
test esi, esi
je 0x494645
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x494564
mov ecx, dword [ebx]
mov edx, esi
push edi
call fcn.0045d470
add esp, 4
mov esi, eax
jmp 0x494582
movups xmm0, xmmword [0x55b010]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x55b020]
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.004190c0
mov edi, eax
add esp, 8
test edi, edi
je 0x4946c9
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 + 0x55b5b8], 0
jge 0x4945f3
cmp dl, 0x22
mov eax, 0x4000000
mov edx, 0x4000080
cmove eax, edx
or dword [edi + 4], eax
call fcn.0041c850
mov ebx, dword [esp + 0x10]
mov eax, str.coalesce
mov dword [edi + 0x18], 1
sub eax, dword [ebx + 0xf4]
mov dword [edi + 0x24], eax
test esi, esi
je 0x494635
mov ecx, dword [ebx]
mov eax, dword [esi]
cmp eax, dword [ecx + 0x90]
jle 0x494635
cmp byte [ebx + 0x12], 0
jne 0x494635
push 0x55f9f0
push str.too_many_arguments_on_function__T
push ebx
call fcn.0041c7c0
add esp, 0xc
or dword [edi + 4], 8
mov edx, edi
mov ecx, ebx
mov dword [edi + 0x14], esi
call fcn.0045b870
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.00458c40
mov ebx, eax
add esp, 8
mov eax, dword [esp + 0x18]
test dword [eax], 0x2000
je 0x49467e
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.004190c0
mov esi, eax
add esp, 8
test esi, esi
je 0x49473b
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 0x4946e4
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 0x4946e9
test esi, esi
je 0x4946d6
mov edx, esi
mov ecx, ebx
call fcn.0045d940
xor edi, edi
jmp 0x494645
mov ebx, edx
jmp 0x494649
mov ecx, 1
mov dword [esi + 0x18], ecx
mov edx, ecx
test edi, edi
je 0x49470d
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 0x49470d
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 0x49472c
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.0041c7c0
add esp, 0xc
mov eax, dword [esp + 0x44]
or dword [esi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x24], eax
jmp 0x49475f
test edi, edi
je 0x49474e
mov edx, edi
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
call fcn.0045c540
jmp 0x494752
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x49475f
mov ecx, dword [edi]
mov edx, ebx
call fcn.0045c540
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [ebx + 0x24]
call fcn.0045bdd0
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 0x494350
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x4947e6
test ecx, ecx
je 0x4947e6
mov edx, dword [edx + 4]
push eax
call fcn.00494010
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.0045bdd0
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 0x49483e
mov ecx, dword [esp + 0x3c]
jmp 0x494190
push 0
push str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
push esi
call fcn.0041c7c0
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.0041c7c0
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