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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, word [ebx]
cmp ax, 0x40
jle 0x1008f909
push 0x40
push str.at_most__d_tables_in_a_join
call fcn.10062232
pop ecx
pop ecx
xor eax, eax
jmp 0x10090016
cwde
shl eax, 6
mov ecx, edi
mov edi, dword [ecx]
add eax, 0x1e0
push eax
mov eax, edi
mov dword [esp + 0x1c], edi
call fcn.1006090b
cmp byte [edi + 0x1e], 0
mov esi, eax
pop ecx
mov dword [esp + 0x24], esi
jne 0x1008fcdb
movsx eax, word [ebx]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xc], ebx
call fcn.1006efae
test byte [ebp + 0x18], 8
mov dword [esi + 0x18], eax
je 0x1008f958
mov eax, dword [ebp + 0x1c]
jmp 0x1008f95b
or eax, 0xffffffff
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
shl eax, 6
lea edi, [eax + esi + 0x24]
movzx ax, byte [ebp + 0x18]
push 0x104
mov word [esi + 4], ax
lea eax, [edi + 0xb8]
push 0
push eax
mov dword [esp + 0x40], edi
mov dword [esi + 0x20], edi
call fcn.100c1480
mov ecx, dword [ebp + 8]
and dword [edi + 0xc], 0
and dword [esp + 0x50], 0
lea eax, [edi + 0xb8]
mov dword [edi + 4], eax
add esp, 0xc
push dword [ebp + 0x10]
lea eax, [edi + 0x18]
mov dword [edi + 0x14], eax
lea eax, [esp + 0x44]
push eax
mov dword [edi], ecx
mov dword [edi + 0x10], 4
mov dword [esp + 0x48], 0x100793d0
mov dword [esp + 0x50], ecx
call fcn.10075dcc
push 0x42
push dword [ebp + 0x10]
push edi
call fcn.1008d0e6
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x1008fa08
cmp word [ebx], 0
je 0x1008f9f5
push dword [ebp + 0x10]
push 3
pop eax
call fcn.10077cfc
pop ecx
test eax, eax
je 0x1008fa08
push 8
push dword [esi + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.10079770
add esp, 0x10
and dword [esp + 0xc], 0
xor eax, eax
cmp ax, word [ebx]
jge 0x1008fa41
lea eax, [ebx + 0x20]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
add dword [esp + 0x14], 0x38
lea eax, [edi + 0xb8]
mov ecx, dword [eax]
mov dword [eax + ecx*4 + 4], edx
inc dword [eax]
movsx eax, word [ebx]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], eax
jl 0x1008fa1b
push ebx
call fcn.1008d47b
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x1e], 0
pop ecx
jne 0x1008fcdb
movsx edx, word [ebx]
or dword [esp + 0x40], 0xffffffff
or dword [esp + 0x44], 0xffffffff
or dword [esp + 0x1c], 0xffffffff
and dword [esp + 0x10], 0
and dword [esp + 0xc], 0
lea eax, [esi + 0x24]
mov dword [esp + 0x14], eax
test edx, edx
jle 0x1008fcd1
and dword [esp + 0x54], 0
fld qword [0x10113148]
and dword [esp + 0x3c], 0
xor eax, eax
push 8
pop ecx
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
fstp qword [esp + 0x88]
mov eax, dword [esp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
imul eax, eax, 0x38
cmp dword [esp + 0x10], edx
lea esi, [eax + ebx + 8]
mov dword [esp + 0x28], esi
jge 0x1008fc3e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
shl eax, 6
lea eax, [eax + ecx + 0x60]
mov dword [esp + 0x38], eax
test byte [esi + 0x15], 0xa
push 0
pop eax
setne al
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x2c], eax
je 0x1008faf3
test eax, eax
jne 0x1008fc3e
mov eax, dword [esp + 0x34]
push dword [esi + 0x18]
add eax, 0xb8
call fcn.1008d125
and eax, dword [esp + 0x44]
and edx, dword [esp + 0x48]
pop ecx
or eax, edx
jne 0x1008fb28
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x10]
jne 0x1008fc21
inc dword [esp + 0x10]
jmp 0x1008fc21
mov eax, dword [esi + 0xc]
test byte [eax + 0x22], 0x10
je 0x1008fbad
test edi, edi
je 0x1008fb39
mov eax, dword [edi]
jmp 0x1008fb3b
xor eax, eax
push dword [esp + 0x38]
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
push ecx
push eax
push dword [esp + 0x50]
mov eax, dword [esp + 0x44]
push dword [esp + 0x50]
push esi
push dword [ebp + 8]
call fcn.1008e180
fstp qword [esp + 0x84]
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
add esp, 0x1c
mov dword [esp + 0x58], 0x8000000
mov dword [esp + 0x60], eax
test eax, eax
je 0x1008fb8d
cmp dword [eax + 0x20], 0
je 0x1008fb8d
mov dword [esp + 0x58], 0x9000000
fld qword [esp + 0x68]
and dword [esp + 0x5c], 0
fld qword [0x10113100]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x1008fbdb
fstp qword [esp + 0x68]
jmp 0x1008fbdd
xor eax, eax
cmp dword [esp + 0xc], eax
jne 0x1008fbbb
cmp edi, eax
je 0x1008fbbb
mov eax, dword [edi]
lea ecx, [esp + 0x58]
push ecx
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push esi
push dword [esp + 0x48]
push dword [ebp + 8]
call fcn.1008e431
add esp, 0x1c
jmp 0x1008fbdd
fstp st(0)
cmp dword [esp + 0x3c], 0
je 0x1008fbf6
fld qword [esp + 0x88]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
jne 0x1008fc1a
mov eax, dword [esp + 0x30]
push 8
pop ecx
lea esi, [esp + 0x58]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x14]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x54], eax
cmp dword [esp + 0x2c], 0
jne 0x1008fc3e
movsx eax, word [ebx]
inc dword [esp + 0x30]
add dword [esp + 0x38], 0x40
add esi, 0x38
cmp dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
jl 0x1008fad6
mov eax, dword [esp + 0x78]
test eax, 0x1000000
je 0x1008fc4c
and dword [edi], 0
mov ecx, dword [esp + 0x14]
and dword [esp + 0x1c], eax
lea esi, [esp + 0x78]
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
and edi, 0x70000
je 0x1008fc75
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov dword [ecx + 0x14], edx
inc dword [eax + 0x44]
jmp 0x1008fc79
or dword [ecx + 0x14], 0xffffffff
mov eax, dword [esp + 0x54]
imul eax, eax, 0x38
lea esi, [eax + ebx]
mov eax, dword [esp + 0x34]
push dword [esi + 0x20]
add eax, 0xb8
call fcn.1008d125
not eax
and dword [esp + 0x44], eax
mov al, byte [esp + 0x58]
pop ecx
mov ecx, dword [esp + 0x14]
not edx
and dword [esp + 0x44], edx
mov byte [ecx + 0x28], al
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x1008fcb7
test edi, edi
je 0x1008fced
movsx edx, word [ebx]
inc dword [esp + 0xc]
add dword [esp + 0x14], 0x40
cmp dword [esp + 0xc], edx
jl 0x1008fa81
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x1e], 0
je 0x1008fd00
push dword [esp + 0x18]
mov esi, dword [esp + 0x28]
call fcn.1008f872
jmp 0x1008f901
push dword [esi]
mov edi, dword [ebp + 8]
push str.cannot_use_index:__s
call fcn.10062232
pop ecx
pop ecx
jmp 0x1008fcdb
mov eax, dword [esp + 0x1c]
and eax, 0x4000000
je 0x1008fd15
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1008fd15
and dword [ecx], 0
test byte [ebp + 0x18], 4
je 0x1008fd2c
test eax, eax
je 0x1008fd2c
lea eax, [esi + 0x24]
and dword [eax], 0xff7fffff
mov byte [esi + 6], 1
mov eax, dword [ebp + 8]
or esi, 0xffffffff
call fcn.1007ee09
mov edi, dword [esp + 0x24]
and dword [esp + 0xc], 0
xor eax, eax
add edi, 0x24
cmp ax, word [ebx]
jge 0x1008ffca
mov eax, dword [ebp + 8]
cmp byte [eax + 0x168], 2
jne 0x1008fe41
movzx eax, byte [edi + 0x28]
mov esi, dword [esp + 0x18]
imul eax, eax, 0x38
lea eax, [eax + ebx + 8]
push dword [eax + 4]
mov dword [esp + 0x30], eax
push str.TABLE__s
call fcn.1006190a
pop ecx
pop ecx
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1008fd9d
push ecx
push eax
push str._s_AS__s
push eax
mov eax, esi
call fcn.10061917
add esp, 0x10
mov ecx, dword [edi]
test ecx, 0x70000
je 0x1008fdbf
mov ecx, dword [edi + 8]
push dword [ecx]
push eax
push str._s_WITH_INDEX__s
push eax
mov eax, esi
call fcn.10061917
add esp, 0x10
jmp 0x1008fe0c
test ecx, 0x10000000
je 0x1008fdcf
push eax
push str._s_VIA_MULTI_INDEX_UNION
jmp 0x1008fddd
test ecx, 0x3000
je 0x1008fdea
push eax
push str._s_USING_PRIMARY_KEY
push eax
mov eax, esi
call fcn.10061917
add esp, 0xc
jmp 0x1008fe0c
test ecx, 0x8000000
je 0x1008fe0c
mov ecx, dword [edi + 8]
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push eax
push str._s_VIRTUAL_TABLE_INDEX__d:_s
push eax
mov eax, esi
call fcn.10061917
add esp, 0x14
test dword [edi], 0x1000000
je 0x1008fe25
push eax
push str._s_ORDER_BY
push eax
mov eax, esi
call fcn.10061917
add esp, 0xc
push 0xffffffffffffffff
push eax
movzx eax, byte [edi + 0x28]
push 0
push eax
push dword [esp + 0x1c]
push 0x72
push dword [esp + 0x38]
call fcn.1006ef7e
add esp, 0x1c
movzx eax, byte [edi + 0x28]
imul eax, eax, 0x38
lea eax, [eax + ebx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call fcn.100859d5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
test byte [eax + 0x22], 2
jne 0x1008ffb6
cmp dword [eax + 0x1c], 0
jne 0x1008ffb6
mov eax, dword [edi]
test eax, 0x8000000
je 0x1008feb0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
push 0xfffffffffffffff6
push dword [eax + 0x3c]
push 0
push 0
push dword [esi + 0x18]
push 0x21
push dword [esp + 0x38]
call fcn.1006ef7e
add esp, 0x1c
jmp 0x1008ff52
test eax, 0x800000
jne 0x1008ff30
test byte [ebp + 0x18], 0x10
jne 0x1008ff30
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
xor eax, eax
cmp byte [ecx + 6], al
sete al
lea eax, [eax*4 + 0xa]
push eax
push dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push dword [esi + 0x18]
push dword [ebp + 8]
call fcn.1007f745
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp byte [eax + 6], 0
jne 0x1008ff52
mov eax, dword [esp + 0x10]
cmp dword [eax + 0xc], 0x40
jge 0x1008ff52
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
and dword [esp + 0x1c], 0
jmp 0x1008ff16
shrd eax, ecx, 1
shr ecx, 1
inc dword [esp + 0x1c]
mov edx, eax
or edx, ecx
jne 0x1008ff0c
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x1c]
dec eax
dec eax
call fcn.1006f223
jmp 0x1008ff52
mov eax, dword [esp + 0x10]
push dword [eax + 4]
mov ebx, dword [esp + 0x18]
mov esi, dword [ebp + 8]
push 0
push dword [eax + 0x18]
call fcn.1007b7a2
mov ebx, dword [ebp + 0xc]
mov esi, dword [esp + 0x34]
add esp, 0xc
test dword [edi], 0x70000
mov eax, dword [esi + 0x18]
mov dword [edi + 0x10], eax
je 0x1008ffaa
mov esi, dword [edi + 8]
push esi
push dword [ebp + 8]
call fcn.1007f0c5
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
push 0
inc eax
push eax
mov eax, dword [esp + 0x30]
push 0
push 0x66
call fcn.1006eee1
push 0xfffffffffffffff0
push dword [esp + 0x48]
push dword [esp + 0x34]
push dword [esi + 0x14]
push dword [esp + 0x44]
push 0xe
push dword [esp + 0x50]
call fcn.1006ef7e
add esp, 0x34
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 8]
call fcn.1007ee09
movsx eax, word [ebx]
inc dword [esp + 0xc]
add edi, 0x40
cmp dword [esp + 0xc], eax
jl 0x1008fd4e
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov esi, dword [esp + 0x24]
and dword [esp + 0xc], 0
mov dword [esi + 0x10], eax
or edx, 0xffffffff
xor ecx, ecx
cmp cx, word [ebx]
mov eax, edx
jge 0x10090014
lea edi, [esi + 0x44]
mov ecx, dword [esp + 0xc]
push edx
push eax
push dword [ebp + 0x18]
mov eax, esi
call fcn.1008ed51
mov ecx, dword [edi]
mov dword [esi + 0x14], ecx
movsx ecx, word [ebx]
add esp, 0xc
inc dword [esp + 0xc]
add edi, 0x40
cmp dword [esp + 0xc], ecx
jl 0x1008ffec
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret