Function at 0x5251c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x7c
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
push ebx
push ebp
mov eax, dword [ecx + 0xc]
push esi
mov dword [esp + 0x14], eax
mov ax, word [edx]
cmp ax, 0x40
push edi
jle 0x5251ff
push 0x40
push str.at_most__d_tables_in_a_join
push ecx
call fcn.00506650
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov esi, dword [ecx]
movsx eax, ax
shl eax, 6
add eax, 0x1e0
mov dword [esp + 0x20], esi
push eax
push esi
call fcn.004f8060
mov dword [esp + 0x18], eax
mov al, byte [esi + 0x1e]
add esp, 8
test al, al
jne 0x525645
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x90]
movsx ecx, word [ebp]
push edx
mov dword [esi + 0x1c], ecx
mov dword [esi], ebx
mov dword [esi + 0xc], ebp
call fcn.00510c10
mov cl, byte [esp + 0xa4]
add esp, 4
test cl, 8
mov dword [esi + 0x18], eax
je 0x52526c
mov eax, dword [esp + 0xa4]
jmp 0x52526f
or eax, 0xffffffff
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
shl eax, 6
movzx cx, cl
lea edx, [eax + esi + 0x24]
mov word [esi + 4], cx
mov ecx, 0x41
xor eax, eax
lea edi, [edx + 0xb8]
mov dword [esi + 0x20], edx
rep stosd dword es:[edi], eax
lea eax, [edx + 0xb8]
mov dword [esp + 0x1c], edx
push eax
push ebx
push edx
call fcn.00525ba0
mov edi, dword [esp + 0xa4]
push edi
push ebx
call fcn.00525a10
mov edx, dword [esp + 0x30]
push 0x42
push edi
push edx
call fcn.00525bd0
add esp, 0x20
test edi, edi
je 0x5252ee
cmp word [ebp], 0
je 0x5252de
push edi
call fcn.00525a00
add esp, 4
test eax, eax
je 0x5252ee
mov eax, dword [esi + 0x18]
push 8
push eax
push edi
push ebx
call fcn.00512fd0
add esp, 0x10
xor esi, esi
cmp word [ebp], si
jle 0x52531d
mov ebx, dword [esp + 0x1c]
lea edi, [ebp + 0x20]
mov ecx, dword [edi]
lea eax, [ebx + 0xb8]
push ecx
push eax
call fcn.00525d40
movsx edx, word [ebp]
add esp, 8
inc esi
add edi, 0x38
cmp esi, edx
jl 0x5252fd
jmp 0x525321
mov ebx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.00525d60
mov eax, dword [esp + 0x28]
add esp, 8
mov cl, byte [eax + 0x1e]
test cl, cl
jne 0x525645
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
movsx edx, word [edx]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], eax
xor eax, eax
lea edi, [ecx + 0x24]
cmp edx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], edi
jle 0x52563a
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x6c]
mov esi, dword [esp + 0x94]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
lea ecx, [eax*8]
mov dword [esp + 0x7c], 0xa2879f2e
sub ecx, eax
cmp eax, edx
mov dword [esp + 0x80], 0x547d42ae
mov dword [esp + 0x28], eax
lea ebp, [esi + ecx*8 + 8]
jge 0x525563
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
shl eax, 6
lea ebx, [eax + edx + 0x60]
mov al, byte [ebp + 0x15]
mov ecx, dword [esp + 0x30]
and al, 0xa
neg al
sbb eax, eax
neg eax
test ecx, ecx
mov dword [esp + 0x3c], eax
je 0x5253f4
test eax, eax
jne 0x52555f
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [ecx + 0xb8]
push eax
call fcn.00525d00
and eax, edi
and edx, esi
add esp, 8
or eax, edx
jne 0x52542d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp edx, eax
jne 0x52553e
inc eax
mov dword [esp + 0x24], eax
jmp 0x52553e
mov eax, dword [ebp + 0xc]
test byte [eax + 0x22], 0x10
je 0x5254c1
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x525449
mov eax, dword [eax]
jmp 0x52544b
xor eax, eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
test edx, edx
mov edx, dword [esp + 0x1c]
push ebx
sete cl
push ecx
push eax
mov eax, dword [esp + 0x9c]
push esi
push edi
push ebp
push edx
push eax
call fcn.00526c00
mov eax, dword [ebx]
add esp, 0x20
fstp qword [esp + 0x5c]
test eax, eax
mov dword [esp + 0x4c], 0x8000000
mov dword [esp + 0x54], eax
je 0x525496
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x525496
mov dword [esp + 0x4c], 0x9000000
fld qword [0x5befc8]
fcomp qword [esp + 0x5c]
mov dword [esp + 0x50], 0
fnstsw ax
test ah, 1
je 0x5254f8
mov dword [esp + 0x5c], 0xa2879f2e
mov dword [esp + 0x60], 0x546d42ae
jmp 0x5254f8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5254d8
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x5254d8
mov eax, dword [eax]
jmp 0x5254da
xor eax, eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
push eax
mov eax, dword [esp + 0x98]
push esi
push edi
push ebp
push edx
push eax
call fcn.00526ee0
add esp, 0x1c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x52550f
fld qword [esp + 0x5c]
fcomp qword [esp + 0x7c]
fnstsw ax
test ah, 1
je 0x525536
mov ecx, 8
lea esi, [esp + 0x4c]
lea edi, [esp + 0x6c]
mov dword [esp + 0x30], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x52555f
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x28]
inc eax
add ebx, 0x40
movsx ecx, word [edx]
add ebp, 0x38
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x5253d5
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
test eax, 0x1000000
je 0x52557b
mov edx, dword [esp + 0x9c]
mov dword [edx], 0
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x70]
and ecx, eax
mov ebp, eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x2c]
mov edx, ecx
and ebp, 0x70000
mov dword [edx], eax
mov dword [edx + 4], esi
mov esi, dword [esp + 0x74]
mov dword [edx + 8], esi
je 0x5255bb
mov eax, dword [esp + 0x90]
mov edx, dword [eax + 0x44]
mov dword [ecx + 0x14], edx
mov ecx, dword [eax + 0x44]
inc ecx
mov dword [eax + 0x44], ecx
jmp 0x5255c2
mov dword [ecx + 0x14], 0xffffffff
mov edi, dword [esp + 0x94]
mov edx, dword [esp + 0x1c]
lea eax, [ebx*8]
sub eax, ebx
mov ecx, dword [edi + eax*8 + 0x20]
lea esi, [edi + eax*8]
lea eax, [edx + 0xb8]
push ecx
push eax
call fcn.00525d00
mov ecx, dword [esp + 0x4c]
add esp, 8
not eax
and ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x48]
not edx
mov byte [eax + 0x28], bl
mov esi, dword [esi + 0x3c]
and ecx, edx
test esi, esi
mov dword [esp + 0x48], ecx
je 0x525617
test ebp, ebp
je 0x525661
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add edx, 0x40
inc eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], eax
movsx edx, word [edi]
cmp eax, edx
jl 0x525374
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov cl, byte [eax + 0x1e]
test cl, cl
je 0x52567b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.00528bb0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esi]
mov edx, dword [esp + 0x90]
push ecx
push str.cannot_use_index:__s
push edx
call fcn.00506650
add esp, 0xc
jmp 0x525645
mov eax, dword [esp + 0x38]
and eax, 0x4000000
je 0x525697
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x525697
mov dword [ecx], 0
test byte [esp + 0xa0], 4
je 0x5256b8
test eax, eax
je 0x5256b8
mov eax, dword [edi]
mov ebx, dword [esp + 0x10]
and eax, 0xff7fffff
mov byte [ebx + 6], 1
mov dword [edi], eax
jmp 0x5256bc
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x90]
push 0xffffffffffffffff
push eax
call fcn.00518b50
mov ebp, dword [esp + 0x9c]
add esp, 8
mov dword [esp + 0x14], 0
cmp word [ebp], 0
jle 0x5259a7
mov ebx, dword [esp + 0x20]
jmp 0x5256f9
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
cmp byte [ecx + 0x168], 2
jne 0x5257f7
xor eax, eax
mov al, byte [edi + 0x28]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + edx*8 + 0xc]
push eax
push str.TABLE__s
lea esi, [ebp + edx*8 + 8]
push ebx
call fcn.004fa820
mov esi, dword [esi + 8]
add esp, 0xc
test esi, esi
je 0x52574a
push esi
push eax
push str._s_AS__s
push eax
push ebx
call fcn.0050a7e0
add esp, 0x14
mov ecx, dword [edi]
test ecx, 0x70000
je 0x52576c
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push edx
push eax
push str._s_WITH_INDEX__s
push eax
push ebx
call fcn.0050a7e0
add esp, 0x14
jmp 0x5257c0
test ecx, 0x10000000
je 0x525786
push eax
push str._s_VIA_MULTI_INDEX_UNION
push eax
push ebx
call fcn.0050a7e0
add esp, 0x10
jmp 0x5257c0
test ch, 0x30
je 0x52579d
push eax
push str._s_USING_PRIMARY_KEY
push eax
push ebx
call fcn.0050a7e0
add esp, 0x10
jmp 0x5257c0
test ecx, 0x8000000
je 0x5257c0
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x14]
push edx
push ecx
push eax
push str._s_VIRTUAL_TABLE_INDEX__d:_s
push eax
push ebx
call fcn.0050a7e0
add esp, 0x18
test dword [edi], 0x1000000
je 0x5257d8
push eax
push str._s_ORDER_BY
push eax
push ebx
call fcn.0050a7e0
add esp, 0x10
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dl, byte [edi + 0x28]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1c]
push 0
push edx
push eax
push 0x72
push ecx
call fcn.0050fb10
add esp, 0x1c
xor eax, eax
mov al, byte [edi + 0x28]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x94]
mov esi, dword [eax + edx*8 + 0x14]
lea ebp, [eax + edx*8 + 8]
mov edx, dword [esp + 0x90]
mov ecx, dword [esi + 0x48]
mov eax, dword [edx]
push ecx
push eax
call fcn.0050ae10
mov ebx, eax
mov al, byte [esi + 0x22]
add esp, 8
mov dword [esp + 0x38], ebx
test al, 2
jne 0x525983
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x525983
mov eax, dword [edi]
test eax, 0x8000000
je 0x525871
mov ecx, dword [esi + 0x3c]
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x18]
push 0xfffffffffffffff6
push ecx
push 0
push 0
push edx
push 0x21
push eax
call fcn.0050fb10
add esp, 0x1c
jmp 0x52591a
test eax, 0x800000
jne 0x5258ff
test byte [esp + 0xa0], 0x10
jne 0x5258ff
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x18]
mov dl, byte [ecx + 6]
mov ecx, dword [esp + 0x90]
neg dl
sbb edx, edx
and edx, 0xfffffffc
add edx, 0xe
push edx
push esi
push ebx
push eax
push ecx
call fcn.00519420
mov edx, dword [esp + 0x24]
add esp, 0x14
mov al, byte [edx + 6]
test al, al
jne 0x52591a
cmp dword [esi + 0xc], 0x40
jge 0x52591a
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov ecx, eax
xor esi, esi
or ecx, edx
je 0x5258de
mov ecx, 1
call fcn.005705c0
mov ecx, eax
inc esi
or ecx, edx
jne 0x5258cd
mov edx, dword [esp + 0x18]
push esi
push edx
call fcn.00510c90
add esp, 4
sub eax, 2
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00506990
add esp, 0xc
jmp 0x52591a
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x90]
push ecx
push 0
push edx
push ebx
push eax
call fcn.005154e0
add esp, 0x14
mov eax, dword [edi]
mov ecx, dword [ebp + 0x18]
test eax, 0x70000
mov dword [edi + 0x10], ecx
je 0x525972
mov esi, dword [edi + 8]
mov edx, dword [esp + 0x90]
push esi
push edx
call fcn.00518e50
mov ecx, dword [esp + 0x20]
mov ebp, eax
mov eax, dword [esi + 4]
mov ebx, dword [edi + 0x14]
inc eax
push eax
push 0
push 0x66
push ecx
call fcn.005107e0
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x30]
push 0xfffffffffffffff0
push ebp
push edx
push eax
push ebx
push 0xe
push ecx
call fcn.0050fb10
mov ebx, dword [esp + 0x6c]
add esp, 0x34
mov edx, dword [esp + 0x90]
push ebx
push edx
call fcn.00518b50
add esp, 8
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x14]
inc eax
add edi, 0x40
movsx edx, word [ecx]
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x5256ee
mov ebx, dword [esp + 0x10]
mov ebp, ecx
mov eax, dword [esp + 0x18]
push eax
call fcn.00510c90
mov dword [ebx + 0x10], eax
xor esi, esi
add esp, 4
or eax, 0xffffffff
or edx, 0xffffffff
cmp word [ebp], si
jle 0x5259ed
lea edi, [ebx + 0x44]
mov ecx, dword [esp + 0xa0]
push edx
push eax
push ecx
push esi
push ebx
call fcn.00527b40
mov ecx, dword [edi]
add esp, 0x14
mov dword [ebx + 0x14], ecx
inc esi
movsx ecx, word [ebp]
add edi, 0x40
cmp esi, ecx
jl 0x5259c8
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x7c
ret