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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
movzx ecx, word [edx]
push ebx
push esi
push edi
cmp cx, 0x40
jle 0x4bceae
push 0x40
push str.at_most__d_tables_in_a_join
push eax
call fcn.0046e510
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x18], 0x80
je 0x4bcebe
mov dword [esp + 0x14], 1
jmp 0x4bcec5
movsx ecx, cx
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x14]
mov esi, dword [eax]
shl edi, 6
add edi, 0x27
and edi, 0xfffffff8
lea ebx, [edi + 0x264]
mov ecx, ebx
mov dword [esp + 0x28], esi
call fcn.0046c560
mov dword [esp + 0x20], eax
test eax, eax
je 0x4bcef9
push ebx
push 0
push eax
call fcn.00530110
add esp, 0xc
cmp byte [esi + 0x1e], 0
jne 0x4bd4c8
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], edx
mov dword [esi], ebx
call fcn.00481cd0
mov cx, word [ebp + 0x18]
add edi, esi
push 0x104
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], edi
mov word [esi + 4], cx
lea esi, [edi + 0x160]
push 0
push esi
mov dword [esp + 0x3c], edi
call fcn.00530110
xor eax, eax
mov dword [edi], ebx
mov dword [esp + 0x6c], ebx
mov ebx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
lea edx, [edi + 0x20]
push ebx
push eax
mov dword [edi + 4], esi
mov dword [edi + 0x18], 8
mov dword [edi + 0x1c], edx
mov dword [esp + 0x60], 0x492e20
call fcn.0048d5c0
push 0x45
push ebx
push edi
call fcn.004b9330
add esp, 0x14
test ebx, ebx
je 0x4bcfc0
cmp dword [esp + 0x14], 0
je 0x4bcfa9
mov eax, ebx
call fcn.004906c0
test eax, eax
je 0x4bcfc0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
push 8
push edx
push ebx
push eax
call fcn.004935a0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x1c], 0
cmp dx, word [ecx]
jge 0x4bd018
lea ebx, [ecx + 0x14]
mov eax, dword [esi]
mov edx, dword [ebx + 0xc]
mov dword [esi + eax*4 + 4], edx
inc dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x4bd005
test byte [eax + 0x22], 0x10
je 0x4bd005
mov ecx, dword [esp + 0x1c]
mov eax, 1
xor edx, edx
call fcn.00535380
or dword [edi + 8], eax
or dword [edi + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
movsx edx, word [ecx]
inc eax
add ebx, 0x38
mov dword [esp + 0x1c], eax
cmp eax, edx
jl 0x4bcfd5
mov esi, dword [edi + 0x14]
dec esi
js 0x4bd02f
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
call fcn.004ba1c0
add esp, 0xc
dec esi
jns 0x4bd021
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x1e], 0
jne 0x4bd4c8
mov ebx, dword [esp + 0x20]
or eax, 0xffffffff
add ebx, 0x20
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ebx
mov esi, ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x14], eax
jle 0x4bd36c
fld qword [0x59ce78]
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
fstp qword [esp + 0x80]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x54], 1
lea ebx, [ebx]
cmp dword [esp + 0x24], 0
jge 0x4bd29c
xor eax, eax
cmp dword [esp + 0x54], eax
je 0x4bd0ed
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
jmp 0x4bd0fd
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov edi, dword [esp + 0x2c]
mov ecx, dword [ebp + 0xc]
lea eax, [edi*8]
sub eax, edi
mov esi, edi
mov dword [esp + 0x48], esi
lea ebx, [ecx + eax*8 + 8]
cmp edi, dword [esp + 0x14]
jge 0x4bd28a
mov eax, dword [esp + 0x20]
mov edx, edi
shl edx, 6
lea ecx, [edx + eax + 0x5c]
mov dword [esp + 0x50], ecx
test byte [ebx + 0x15], 0xa
mov eax, 0
setne al
mov dword [esp + 0x6c], eax
cmp esi, edi
je 0x4bd14e
test eax, eax
jne 0x4bd28a
mov eax, dword [esp + 0x30]
add eax, 0x160
xor ecx, ecx
mov dword [esp + 0x34], eax
cmp dword [eax], ecx
jle 0x4bd17b
mov edx, dword [ebx + 0x18]
add eax, 4
cmp dword [eax], edx
je 0x4bd19d
mov edi, dword [esp + 0x34]
inc ecx
add eax, 4
cmp ecx, dword [edi]
mov edi, dword [esp + 0x2c]
jl 0x4bd167
xor eax, eax
xor edx, edx
and eax, dword [esp + 0x38]
and edx, dword [esp + 0x3c]
or eax, edx
jne 0x4bd1ab
cmp esi, edi
jne 0x4bd273
inc edi
mov dword [esp + 0x2c], edi
jmp 0x4bd273
mov eax, 1
xor edx, edx
call fcn.00535380
jmp 0x4bd17f
cmp dword [esp + 0x1c], 0
jne 0x4bd1bd
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4bd1bd
mov eax, dword [eax]
jmp 0x4bd1bf
xor eax, eax
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
je 0x4bd1f4
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x9c]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [ebp + 8]
push ecx
push ebx
push edx
push eax
call fcn.004bb0c0
add esp, 0x20
jmp 0x4bd219
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [ebp + 8]
push eax
push ebx
push ecx
push edx
call fcn.004bb290
add esp, 0x1c
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
and eax, dword [esp + 0x38]
and ecx, dword [esp + 0x3c]
or eax, ecx
jne 0x4bd26c
cmp esi, edi
je 0x4bd24c
fld qword [esp + 0x80]
fcomp qword [esp + 0xa8]
fnstsw ax
test ah, 0x41
jne 0x4bd26c
mov eax, dword [esp + 0x48]
mov ecx, 0xa
lea esi, [esp + 0x98]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov esi, eax
cmp dword [esp + 0x6c], 0
jne 0x4bd28a
add dword [esp + 0x50], 0x40
inc esi
add ebx, 0x38
mov dword [esp + 0x48], esi
cmp esi, dword [esp + 0x14]
jl 0x4bd132
dec dword [esp + 0x54]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
jns 0x4bd0d0
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 8]
test eax, 0x1000000
je 0x4bd2b3
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov edx, dword [esp + 0x74]
and dword [esp + 0x4c], eax
mov dword [esi], eax
mov dword [esi + 4], edx
mov edx, dword [esp + 0x78]
mov ebx, eax
and ebx, 0xf0000
mov dword [esi + 8], edx
je 0x4bd2dc
mov eax, dword [ecx + 0x44]
mov dword [esi + 0x14], eax
inc dword [ecx + 0x44]
jmp 0x4bd2e3
mov dword [esi + 0x14], 0xffffffff
xor ecx, ecx
cmp dword [edi + 0x160], ecx
jle 0x4bd31b
mov edx, dword [esp + 0x24]
lea eax, [edx*8]
sub eax, edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + eax*8 + 0x20]
lea eax, [edi + 0x164]
cmp dword [eax], edx
je 0x4bd4a3
inc ecx
add eax, 4
cmp ecx, dword [edi + 0x160]
jl 0x4bd307
xor eax, eax
xor edx, edx
not eax
and dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
not edx
and dword [esp + 0x3c], edx
mov edx, dword [ebp + 0xc]
lea ecx, [eax*8]
sub ecx, eax
mov byte [esi + 0x28], al
mov eax, dword [edx + ecx*8 + 0x3c]
test eax, eax
je 0x4bd34e
test ebx, ebx
je 0x4bd4b4
mov eax, dword [esp + 0x1c]
inc eax
add esi, 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
cmp eax, dword [esp + 0x14]
jl 0x4bd071
mov ebx, dword [esp + 0x44]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x40], 0
jne 0x4bd4c8
mov edx, dword [esp + 0x28]
cmp byte [edx + 0x1e], 0
jne 0x4bd4c8
mov eax, dword [esp + 0x4c]
and eax, 0x4000000
je 0x4bd39f
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4bd39f
mov dword [ecx], 0
test byte [ebp + 0x18], 4
je 0x4bd3b7
test eax, eax
je 0x4bd3b7
mov eax, dword [esp + 0x20]
and dword [ebx], 0xff7fffff
mov byte [eax + 6], 1
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4bd3c3
mov esi, eax
cmp dword [esi + 0x15c], 0
jne 0x4bd407
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x4bd3f0
mov eax, dword [esi]
call fcn.004818c0
mov edi, eax
mov dword [esi + 0xc], eax
test edi, edi
je 0x4bd407
push 0x84
call fcn.00481a90
add esp, 4
push 0
push 0
push 1
mov eax, edi
call fcn.00481b50
add esp, 0xc
inc eax
mov dword [esi + 0x15c], eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
jle 0x4bd82d
mov edi, edi
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x1dc], 2
jne 0x4bd5fc
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + 0x28]
mov edx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x28]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*8 + 0xc]
lea edi, [edx + ecx*8 + 8]
push eax
push str.TABLE__s
push ebx
call fcn.0046d920
mov edi, dword [edi + 8]
add esp, 0xc
mov esi, eax
test edi, edi
je 0x4bd47b
push edi
push esi
push str._s_AS__s
push esi
push ebx
call fcn.0046d940
add esp, 0x14
mov esi, eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
test eax, 0xf0000
je 0x4bd4de
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push edx
push esi
push str._s_WITH_INDEX__s
push esi
push ebx
call fcn.0046d940
add esp, 0x14
jmp 0x4bd532
mov eax, 1
xor edx, edx
call fcn.00535380
jmp 0x4bd31f
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push eax
push str.cannot_use_index:__s
push ecx
call fcn.0046e510
add esp, 0xc
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
call fcn.004bcda0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x10000000
je 0x4bd4f7
push esi
push str._s_VIA_MULTI_INDEX_UNION
push esi
push ebx
call fcn.0046d940
add esp, 0x10
jmp 0x4bd532
test eax, 0x3000
je 0x4bd510
push esi
push str._s_USING_PRIMARY_KEY
push esi
push ebx
call fcn.0046d940
add esp, 0x10
jmp 0x4bd532
test eax, 0x8000000
je 0x4bd534
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
push ecx
push edx
push esi
push str._s_VIRTUAL_TABLE_INDEX__d:_s
push esi
push ebx
call fcn.0046d940
add esp, 0x18
mov esi, eax
test dword [edi], 0x1000000
je 0x4bd54e
push esi
push str._s_ORDER_BY
push esi
push ebx
call fcn.0046d940
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 0x28]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0xc]
cmp dword [ecx + 0x10], ebx
jg 0x4bd57a
mov edi, ecx
call fcn.004819b0
test eax, eax
je 0x4bd578
mov eax, 1
jmp 0x4bd5aa
mov ecx, edi
mov eax, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x86
mov byte [ecx + 0x62], dl
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x14]
mov edi, dword [ecx]
test ebx, ebx
je 0x4bd5f2
cmp byte [edi + 0x1e], 0
jne 0x4bd5f2
test eax, eax
jns 0x4bd5c5
mov eax, dword [ecx + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*4 + 0x10]
lea ebx, [ebx + eax*4]
movsx eax, byte [ebx + 1]
call fcn.00481f50
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x4bd5e9
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x4bd5fc
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x4bd5fc
mov ecx, esi
or eax, 0xffffffff
call fcn.00481f50
mov ecx, dword [esp + 0x18]
movzx eax, byte [ecx + 0x28]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + edx*8 + 0x14]
mov ebx, dword [esi + 0x44]
lea edi, [eax + edx*8 + 8]
mov eax, 0xfff0bdc0
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x4bd653
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x24], eax
test edx, edx
jle 0x4bd653
mov ecx, dword [ecx + 8]
add ecx, 0xc
cmp dword [ecx], ebx
je 0x4bd64f
inc eax
add ecx, 0x10
cmp eax, edx
jl 0x4bd643
mov dword [esp + 0x24], eax
test byte [esi + 0x22], 2
jne 0x4bd815
cmp dword [esi + 0x1c], 0
jne 0x4bd815
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
test ecx, 0x8000000
je 0x4bd745
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x4bd68f
mov eax, dword [esp + 0x28]
cmp dword [ebx], eax
je 0x4bd68f
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x4bd680
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov esi, dword [eax + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x44], edx
cmp dword [eax + 0x10], esi
jg 0x4bd6b8
mov edi, eax
call fcn.004819b0
test eax, eax
je 0x4bd6b8
mov eax, 1
jmp 0x4bd6e8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x44]
mov dword [eax + 4], edx
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x7c
mov byte [ecx + 0x62], dl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x14]
mov edi, dword [ecx]
test esi, esi
je 0x4bd7c8
cmp byte [edi + 0x1e], 0
jne 0x4bd7c8
test eax, eax
jns 0x4bd70d
mov eax, ecx
mov eax, dword [eax + 0xc]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.00481f50
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x4bd736
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x4bd7c8
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x4bd7c8
test ecx, 0x800000
jne 0x4bd7b2
test byte [ebp + 0x18], 0x10
jne 0x4bd7b2
mov ebx, dword [esp + 0x20]
xor edx, edx
cmp byte [ebx + 6], dl
setne dl
add edx, 0x26
push edx
push esi
push eax
mov eax, dword [edi + 0x18]
push eax
mov eax, dword [ebp + 8]
call fcn.004a39f0
add esp, 0x10
cmp byte [ebx + 6], 0
jne 0x4bd7c8
cmp dword [esi + 0xc], 0x40
jge 0x4bd7c8
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov esi, eax
xor ecx, ecx
or esi, edx
je 0x4bd79d
mov edi, edi
shrd eax, edx, 1
shr edx, 1
mov esi, eax
inc ecx
or esi, edx
jne 0x4bd790
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
push 0xfffffffffffffff2
dec eax
push edx
call fcn.00482200
add esp, 8
jmp 0x4bd7c8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.004979d0
add esp, 0x10
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
test dword [edi], 0xf0000
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x10], ecx
je 0x4bd809
mov esi, dword [edi + 8]
mov edx, dword [ebp + 8]
push esi
push edx
call fcn.0049cae0
mov ecx, dword [esi + 0x14]
mov edx, dword [edi + 0x14]
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push 0x26
call fcn.00481bb0
add esp, 0x20
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
call fcn.0049c540
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0x40
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x14]
jl 0x4bd420
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x20]
mov dword [edx + 0xc], ecx
xor esi, esi
or eax, 0xffffffff
or edx, 0xffffffff
cmp dword [esp + 0x14], esi
jle 0x4bd874
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
add edi, 0x40
push edx
push eax
mov eax, dword [ebp + 0x18]
push eax
push ebx
mov ecx, esi
call fcn.004bbd60
mov ecx, dword [edi]
inc esi
add esp, 0x10
add edi, 0x40
mov dword [ebx + 0x10], ecx
cmp esi, dword [esp + 0x14]
jl 0x4bd854
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret