Function at 0x1008ac70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
mov eax, edx
xor ebx, ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x20]
mov esi, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov eax, dword [edi]
dec eax
mov dword [esp + 0x18], ebx
test eax, eax
jle 0x1008b216
lea ebp, [edi + 0x78]
lea edx, [edi + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], edx
nop
cmp dword [edx], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x28], eax
je 0x1008b1f8
test eax, eax
je 0x1008b1f8
mov al, byte [ebp - 4]
and al, 0x20
movzx eax, al
neg eax
sbb eax, eax
add eax, 2
test byte [ebp - 4], 4
mov dword [esp + 0x40], eax
je 0x1008adba
xor ebx, ebx
test dword [ebp], 0x400
mov dword [esp + 0x34], ebx
jne 0x1008b220
cmp dword [ebp + 8], ebx
jne 0x1008b220
mov eax, dword [esp + 0x28]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x38], edx
cmp cx, word [eax + 0x22]
jge 0x1008ada4
mov dword [esp + 0x24], ecx
jmp 0x1008ad24
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xe], 2
jne 0x1008ad79
mov ebp, dword [eax + ecx]
xor esi, esi
cmp dword [esp + 0x18], esi
jl 0x1008af7f
add edi, 0x18
mov ebx, dword [edi]
mov edx, ebp
mov ecx, ebx
call fcn.1008aa10
test eax, eax
js 0x1008ad5f
mov ecx, dword [ebx + 4]
add eax, eax
test byte [ecx + eax*8 + 0xe], 2
je 0x1008af06
inc esi
add edi, 0x48
cmp esi, dword [esp + 0x18]
jle 0x1008ad40
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add ecx, 0x10
inc dword [esp + 0x38]
mov dword [esp + 0x24], ecx
movsx eax, word [eax + 0x22]
cmp dword [esp + 0x38], eax
jl 0x1008ad20
mov ebp, dword [esp + 0x1c]
test ebx, ebx
je 0x1008ada4
or dword [ebp], 0x1400
mov dword [ebp + 8], ebx
cmp dword [esi + 0x24], 0
jne 0x1008b230
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
test dword [ebp], 0x400
mov ecx, dword [ebp + 8]
je 0x1008b1bb
cmp dword [ecx], 0
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0
jle 0x1008b1f8
lea eax, [ecx + 8]
mov dword [esp + 0x24], eax
nop dword [eax]
mov ebp, dword [eax]
mov edx, ebp
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], ebp
call fcn.1008aa10
mov dword [esp + 0x48], eax
test eax, eax
js 0x1008b23d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
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 ebp
push ebx
call fcn.1008aab0
add esp, 0x14
test eax, eax
je 0x1008b23d
mov esi, dword [esp + 0x2c]
mov edx, edi
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
push esi
push ebx
call fcn.10054470
mov edi, eax
lea ecx, [ebx + ebx*8]
mov eax, dword [esp + 0x18]
add esp, 8
test dword [eax + ecx*8 + 0x30], 0x2000
je 0x1008ae78
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 0x1008b111
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 1]
mov ebx, dword [esp + 0x10]
xor esi, esi
mov ecx, ebx
mov eax, dword [eax]
shr eax, 0xc
and eax, 1
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call fcn.1008aab0
add esp, 0x14
test eax, eax
je 0x1008b115
nop dword [eax]
mov eax, dword [esp + 0x20]
lea eax, [eax + eax*8]
test dword [ebx + eax*8 + 0x30], 0x400
lea ebx, [ebx + eax*8]
je 0x1008b040
mov ecx, dword [ebx + 0x38]
mov edx, ebp
call fcn.100700e0
test eax, eax
js 0x1008b040
test esi, esi
jne 0x1008af88
mov eax, dword [esp + 0x14]
mov edx, edi
mov ecx, dword [eax]
call fcn.100585e0
mov esi, eax
jmp 0x1008afc5
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x34]
push 0
call fcn.1006ff10
mov ebx, eax
add esp, 4
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x1008ad71
test ebp, ebp
jne 0x1008af38
mov eax, dword [ebx]
xor esi, esi
mov dword [ebx + eax*8], esi
jmp 0x1008ad6d
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008af40
sub ecx, edx
push 0
lea edi, [ecx + 1]
mov ecx, dword [esi]
push edi
test ecx, ecx
je 0x1008af5c
call fcn.1001d1c0
jmp 0x1008af61
call fcn.1001cb50
mov esi, eax
add esp, 8
test esi, esi
je 0x1008af75
push edi
push ebp
push esi
call fcn.10107750
add esp, 0xc
mov eax, dword [ebx]
mov dword [ebx + eax*8], esi
jmp 0x1008ad6d
mov esi, dword [esp + 0x14]
jmp 0x1008ad79
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x1008afa7
mov eax, dword [esp + 0x14]
mov edx, esi
push edi
mov ecx, dword [eax]
call fcn.10058650
add esp, 4
mov esi, eax
jmp 0x1008afc5
movups xmm0, xmmword [0x1012b330]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x1012b340]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edi
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
push ebp
push dword [esp + 0x24]
call fcn.10054470
add esp, 8
mov edi, eax
test dword [ebx + 0x30], 0x2000
je 0x1008affd
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x1c]
lea eax, [ebp*4]
add eax, ebp
or dword [ecx + eax*4 + 0x14], 0x40
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x10]
mov ecx, ebx
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 + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call fcn.1008aab0
add esp, 0x14
test eax, eax
jne 0x1008aec0
mov ebp, dword [esp + 0x14]
jmp 0x1008b057
push ebp
mov ebp, dword [esp + 0x18]
push str.ambiguous_reference_to__s_in_USING__
push ebp
call fcn.10020b80
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test esi, esi
je 0x1008b115
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x1008b07b
mov ecx, dword [ebp]
mov edx, esi
push edi
call fcn.10058650
add esp, 4
mov esi, eax
jmp 0x1008b099
movups xmm0, xmmword [0x1012b330]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x1012b340]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edi
mov ebx, dword [ebp]
mov edx, 0xac
push 1
push 0x1013107c
mov ecx, ebx
call fcn.10056eb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1008b0c9
test esi, esi
je 0x1008b0c5
mov edx, esi
mov ecx, ebx
call fcn.10058aa0
xor edi, edi
jmp 0x1008b111
mov eax, dword [str.coalesce]
sub eax, dword [ebp + 0xf0]
mov dword [edi + 0x24], eax
test esi, esi
je 0x1008b101
mov ecx, dword [ebp]
mov eax, dword [esi]
cmp eax, dword [ecx + 0x90]
jle 0x1008b101
cmp byte [ebp + 0x12], 0
jne 0x1008b101
push 0x1013107c
push str.too_many_arguments_on_function__T
push ebp
call fcn.10020b80
add esp, 0xc
or dword [edi + 4], 8
mov edx, edi
mov ecx, ebp
mov dword [edi + 0x14], esi
call fcn.10056dd0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, ebx
mov ebp, dword [esp + 0x48]
inc eax
mov ecx, dword [esp + 0x38]
push ebp
push eax
call fcn.10054470
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x1c]
test dword [eax], 0x2000
je 0x1008b150
mov ecx, dword [eax - 0x14]
mov edx, dword [ecx + 0x1c]
lea ecx, [ebp*4]
add ecx, ebp
or dword [edx + ecx*4 + 0x14], 0x40
mov ecx, dword [esp + 0x14]
mov edx, 0x35
push esi
push edi
call fcn.10057140
add esp, 8
test eax, eax
je 0x1008b174
mov ecx, dword [esp + 0x40]
or dword [eax + 4], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x24], ecx
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov ecx, esi
push eax
mov edx, dword [ebx + 0x24]
call fcn.10057320
mov ecx, dword [esp + 0x38]
add esp, 4
mov edx, dword [esp + 0x4c]
inc ecx
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
cmp ecx, dword [edx]
jl 0x1008adf0
mov ebp, dword [esp + 0x1c]
jmp 0x1008b1f4
test ecx, ecx
je 0x1008b1f8
mov edx, dword [ebp + 4]
push eax
call fcn.1008ab50
mov eax, dword [esp + 0x40]
add esp, 4
mov ecx, esi
push dword [ebp + 8]
mov edx, dword [eax + 0x24]
call fcn.10057320
mov ecx, dword [esp + 0x40]
add esp, 4
mov dword [ecx + 0x24], eax
or dword [ebp], 0x800
mov dword [ebp + 8], 0
mov edx, dword [esp + 0x30]
mov eax, dword [edi]
inc ebx
add ebp, 0x48
mov dword [esp + 0x18], ebx
add edx, 0x48
mov dword [esp + 0x1c], ebp
dec eax
mov dword [esp + 0x30], edx
cmp ebx, eax
jl 0x1008acb0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
push esi
call fcn.10020b80
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
push str.cannot_join_using_column__s___column_not_present_in_both_tables
push esi
call fcn.10020b80
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret