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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
push 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], edi
mov ecx, dword [edi + 0xc]
movzx eax, word [eax]
mov dword [esp + 0x34], ecx
pop ecx
cmp ax, cx
jle 0x4a6e92
push ecx
push str.at_most__d_tables_in_a_join
push edi
call fcn.00473d54
add esp, 0xc
jmp 0x4a7332
test byte [ebp + 0x10], 0x80
je 0x4a6e9d
xor ecx, ecx
inc ecx
jmp 0x4a6ea0
movsx ecx, ax
mov eax, dword [edi]
mov esi, ecx
shl esi, 6
add esi, 0x27
mov dword [esp + 0x18], ecx
and esi, 0xfffffff8
mov dword [esp + 0x14], eax
mov ecx, eax
lea edx, [esi + 0x264]
call fcn.0047249d
mov edx, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp byte [edx + 0x1e], 0
jne 0x4a7327
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0xc]
mov dword [ebx], edi
mov dword [ebx + 8], eax
call fcn.00481239
mov dword [ebx + 0x14], eax
add esi, ebx
mov eax, dword [ebp + 0x10]
mov word [ebx + 4], ax
mov dword [ebx + 0x1c], esi
xor ebx, ebx
push 0x104
lea eax, [esi + 0x160]
mov dword [esp + 0x3c], esi
push ebx
push eax
mov dword [esp + 0x50], eax
call fcn.004db6f0
add esp, 0xc
lea eax, [esi + 0x160]
mov edx, edi
mov ecx, esi
push eax
call fcn.004a3ee8
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x6c]
add esp, 4
mov dword [esp + 0x68], 0x48e0b9
mov edx, esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], edi
call fcn.0048a4e7
mov ecx, dword [esp + 0x38]
mov edx, esi
push 0x45
call fcn.004a4027
pop ecx
test esi, esi
je 0x4a6f8b
cmp dword [esp + 0x18], ebx
je 0x4a6f74
push 3
pop edx
mov ecx, esi
call fcn.0048c7a3
test eax, eax
je 0x4a6f8b
mov esi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [ebp + 8]
push 8
push dword [esi + 0x14]
call fcn.0048e527
pop ecx
pop ecx
jmp 0x4a6f8f
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
xor eax, eax
cmp ax, word [edx]
jge 0x4a6ffd
lea edi, [edx + 0x14]
mov esi, ebx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax]
mov eax, dword [edi + 0xc]
mov dword [edx + ecx*4 + 4], eax
mov eax, edx
mov edx, dword [esp + 0xc]
inc dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x4a6fea
test byte [eax + 0x22], 0x10
je 0x4a6fea
xor ecx, ecx
lea eax, [ebx + esi]
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0x38]
cmovae edx, ecx
or dword [eax + 8], ecx
or dword [eax + 0xc], edx
mov edx, dword [esp + 0xc]
movsx eax, word [edx]
inc esi
add edi, 0x38
cmp esi, eax
jl 0x4a6f9f
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x14]
dec eax
mov dword [esp + 0x24], eax
js 0x4a7031
mov esi, dword [esp + 0xc]
mov edi, eax
mov ebx, dword [esp + 0x38]
push edi
mov edx, ebx
mov ecx, esi
call fcn.004a4af1
dec edi
pop ecx
jns 0x4a7015
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x1e], 0
jne 0x4a7323
or ecx, 0xffffffff
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x18], 0
lea eax, [esi + 0x20]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
jle 0x4a72d6
movsd xmm0, qword [0x52c138]
lea edi, [esp + 0xa0]
mov dword [esp + 0x20], ecx
xor eax, eax
push 0xa
pop ecx
rep stosd dword es:[edi], eax
inc eax
movsd qword [esp + 0xb0], xmm0
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], 0
jge 0x4a7234
test eax, eax
je 0x4a70be
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
jmp 0x4a70ce
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
imul ecx, eax, 0x38
mov dword [esp + 0x4c], eax
add ecx, 8
add ecx, edx
mov dword [esp + 0x54], ecx
cmp eax, edi
jge 0x4a7225
mov edx, eax
shl eax, 6
add eax, 0x5c
add eax, esi
mov esi, edx
mov dword [esp + 0x50], eax
test byte [ecx + 0x15], 0xa
push 0
pop eax
setne al
mov dword [esp + 0x58], eax
cmp esi, edx
je 0x4a7118
test eax, eax
jne 0x4a721d
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x44]
call fcn.004a4064
and eax, dword [esp + 0x40]
and edx, dword [esp + 0x48]
or eax, edx
jne 0x4a7146
mov edx, dword [esp + 0x2c]
cmp esi, edx
jne 0x4a7200
inc edx
mov dword [esp + 0x2c], edx
jmp 0x4a7200
cmp dword [esp + 0x60], 0
jne 0x4a7158
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4a7158
mov ecx, dword [eax]
jmp 0x4a715a
mov ecx, ebx
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 0xc]
test byte [eax + 0x22], 0x10
lea eax, [esp + 0x78]
je 0x4a718c
push dword [esp + 0x50]
push eax
push ecx
push dword [esp + 0x70]
mov ecx, dword [esp + 0x44]
push dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x50]
call fcn.004a5680
add esp, 0x18
jmp 0x4a71a7
push eax
push ecx
push dword [esp + 0x6c]
mov ecx, dword [esp + 0x40]
push dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x4c]
call fcn.004a5831
add esp, 0x14
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
and ecx, dword [esp + 0x40]
and eax, dword [esp + 0x48]
or ecx, eax
mov edx, dword [esp + 0x2c]
jne 0x4a71f9
cmp esi, edx
je 0x4a71dd
movsd xmm0, qword [esp + 0xb0]
comisd xmm0, xmmword [esp + 0x88]
jbe 0x4a71f9
push 0xa
pop ecx
lea esi, [esp + 0x78]
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
cmp dword [esp + 0x58], 0
jne 0x4a721d
mov ecx, dword [esp + 0x54]
inc esi
add dword [esp + 0x50], 0x40
add ecx, 0x38
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ecx
cmp esi, edi
jl 0x4a70fe
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jns 0x4a7094
mov eax, dword [esp + 0xa0]
test eax, 0x1000000
je 0x4a7247
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x3c]
lea esi, [esp + 0xa0]
and dword [esp + 0x28], eax
mov edi, ecx
and eax, 0xf0000
mov dword [esp + 0x58], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x34]
je 0x4a7275
mov eax, dword [edi + 0x44]
mov dword [ecx + 0x14], eax
inc dword [edi + 0x44]
jmp 0x4a7279
or dword [ecx + 0x14], 0xffffffff
imul esi, dword [esp + 0x20], 0x38
mov ecx, dword [esp + 0x44]
mov edx, dword [esi + edx + 0x20]
call fcn.004a4064
mov ecx, dword [esp + 0x3c]
not edx
and dword [esp + 0x48], edx
not eax
and dword [esp + 0x40], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov byte [ecx + 0x28], al
mov eax, dword [esi + edx + 0x3c]
test eax, eax
je 0x4a72b5
cmp dword [esp + 0x58], 0
je 0x4a7313
mov eax, dword [esp + 0x60]
add ecx, 0x40
mov esi, dword [esp + 0x10]
inc eax
mov dword [esp + 0x3c], ecx
or ecx, 0xffffffff
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x18]
jl 0x4a706c
cmp dword [edi + 0x40], ebx
jne 0x4a7323
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x1e], 0
jne 0x4a7323
mov eax, dword [esp + 0x28]
and eax, 0x4000000
je 0x4a72f9
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4a72f9
mov dword [edx], ebx
test byte [ebp + 0x10], 4
je 0x4a733b
test eax, eax
je 0x4a733b
mov byte [esi + 6], 1
mov esi, dword [esp + 0x1c]
and dword [esi], 0xff7fffff
jmp 0x4a733f
push dword [eax]
push str.cannot_use_index:__s
push edi
call fcn.00473d54
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, ebx
call fcn.004a6dea
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x1c]
mov edx, ecx
mov ecx, edi
call fcn.00493bf3
cmp dword [esp + 0x18], 0
mov dword [esp + 0x28], ebx
jle 0x4a754e
cmp byte [edi + 0x1dc], 2
jne 0x4a745c
movzx eax, byte [esi + 0x28]
imul esi, eax, 0x38
mov eax, dword [esp + 0xc]
push dword [esi + eax + 0xc]
push str.TABLE__s
push dword [esp + 0x1c]
call fcn.00473441
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0xc]
mov eax, dword [esi + eax + 0x10]
test eax, eax
je 0x4a73a8
push eax
push ecx
push str._s_AS__s
push ecx
push dword [esp + 0x24]
call fcn.00473456
add esp, 0x14
mov ecx, eax
mov esi, dword [esp + 0x1c]
test dword [esi], 0xf0000
je 0x4a73ce
mov eax, dword [esi + 8]
push dword [eax]
push ecx
push str._s_WITH_INDEX__s
push ecx
push dword [esp + 0x24]
call fcn.00473456
add esp, 0x14
jmp 0x4a741f
test dword [esi], 0x10000000
je 0x4a73eb
push ecx
push str._s_VIA_MULTI_INDEX_UNION
push ecx
push dword [esp + 0x20]
call fcn.00473456
add esp, 0x10
jmp 0x4a741f
test dword [esi], 0x3000
je 0x4a73fb
push ecx
push str._s_USING_PRIMARY_KEY
jmp 0x4a73dc
test dword [esi], 0x8000000
je 0x4a7421
mov eax, dword [esi + 8]
push dword [eax + 0x18]
push dword [eax + 0x14]
push ecx
push str._s_VIRTUAL_TABLE_INDEX__d:_s
push ecx
push dword [esp + 0x28]
call fcn.00473456
add esp, 0x18
mov ecx, eax
test dword [esi], 0x1000000
je 0x4a743e
push ecx
push str._s_ORDER_BY
push ecx
push dword [esp + 0x20]
call fcn.00473456
add esp, 0x10
mov ecx, eax
movzx eax, byte [esi + 0x28]
mov edx, 0x86
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x38]
push ebx
push eax
push dword [esp + 0x38]
call fcn.004811d6
add esp, 0x14
movzx eax, byte [esi + 0x28]
imul ecx, eax, 0x38
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + eax + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov edx, dword [eax + 0x44]
call fcn.0049c0d2
mov ecx, dword [esp + 0x24]
mov edx, eax
mov dword [esp + 0x3c], edx
test byte [ecx + 0x22], 2
jne 0x4a7534
cmp dword [ecx + 0x1c], ebx
jne 0x4a7534
test dword [esi], 0x8000000
je 0x4a7592
mov edx, ecx
mov ecx, dword [esp + 0x14]
call fcn.004a32fe
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push ebx
push ebx
push dword [edx + eax + 0x20]
push 0x7c
pop edx
call fcn.00481184
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov edx, eax
push 0xfffffffffffffff6
push esi
call fcn.004815b4
pop ecx
pop ecx
mov esi, dword [esp + 0x1c]
test dword [esi], 0xf0000
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + eax + 0x20]
mov dword [esi + 0x10], eax
je 0x4a7529
mov esi, dword [esi + 8]
mov ecx, edi
mov edx, esi
call fcn.00493f04
mov ecx, dword [esp + 0x30]
push 0xfffffffffffffff0
push eax
push dword [esp + 0x44]
push dword [esi + 0x14]
mov esi, dword [esp + 0x2c]
push dword [esi + 0x14]
push 0x26
pop edx
call fcn.004811d6
add esp, 0x14
mov edx, dword [esp + 0x3c]
mov ecx, edi
call fcn.00493bf3
mov eax, dword [esp + 0x28]
add esi, 0x40
inc eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x18]
jl 0x4a7357
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
or eax, 0xffffffff
cmp dword [esp + 0x18], 0
mov edx, eax
jle 0x4a758b
lea edi, [esi + 0x40]
push edx
push eax
push dword [ebp + 0x10]
mov edx, ebx
mov ecx, esi
call fcn.004a6137
mov ecx, dword [edi]
add esp, 0xc
inc ebx
mov dword [esi + 0x10], ecx
lea edi, [edi + 0x40]
cmp ebx, dword [esp + 0x18]
jl 0x4a756b
mov eax, esi
jmp 0x4a7334
test dword [esi], 0x800000
jne 0x4a7612
test byte [ebp + 0x10], 0x10
jne 0x4a7612
mov esi, dword [esp + 0x10]
xor eax, eax
cmp byte [esi + 6], al
setne al
add eax, 0x26
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [edx + eax + 0x20]
call fcn.00497894
add esp, 0xc
cmp byte [esi + 6], 0
jne 0x4a74e2
mov eax, dword [esp + 0x24]
cmp dword [eax + 0xc], 0x40
jge 0x4a74e2
mov eax, dword [esp + 0xc]
mov esi, ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + eax + 0x30]
mov ecx, dword [ecx + eax + 0x34]
jmp 0x4a75fb
shrd edx, ecx, 1
shr ecx, 1
inc esi
mov eax, edx
or eax, ecx
jne 0x4a75f4
mov eax, dword [esp + 0x30]
mov ecx, eax
push 0xfffffffffffffff2
mov edx, dword [eax + 0xc]
dec edx
jmp 0x4a74da
push dword [ecx + 4]
push ebx
push dword [ecx + 0x18]
mov ecx, edi
call fcn.004908d9
add esp, 0xc
jmp 0x4a74e6